pspusbbus.h File Reference

Go to the source code of this file.

Data Structures

struct  UsbInterface
 USB driver interface. More...
struct  UsbEndpoint
 USB driver endpoint. More...
struct  StringDescriptor
 USB string descriptor. More...
struct  DeviceDescriptor
 USB device descriptor. More...
struct  ConfigDescriptor
 USB configuration descriptor. More...
struct  InterfaceDescriptor
 USB Interface descriptor. More...
struct  EndpointDescriptor
 USB endpoint descriptor. More...
struct  UsbInterfaces
 USB driver interfaces structure. More...
struct  UsbConfiguration
 USB driver configuration. More...
struct  UsbData
 Padded data structure, padding is required otherwise the USB hardware crashes. More...
struct  UsbData::Config
struct  UsbData::ConfDesc
struct  UsbData::Interfaces
struct  UsbData::InterDesc
struct  UsbData::Endp
struct  DeviceRequest
 USB EP0 Device Request. More...
struct  UsbDriver
 USB driver structure used by sceUsbbdRegisterDriver and sceUsbbdUnregisterDriver. More...
struct  UsbdDeviceReq
 USB device request, used by sceUsbbdReqSend and sceUsbbdReqRecv. More...

Functions

int sceUsbbdRegister (struct UsbDriver *drv)
 Register a USB driver.
int sceUsbbdUnregister (struct UsbDriver *drv)
 Unregister a USB driver.
int sceUsbbdClearFIFO (struct UsbEndpoint *endp)
 Clear the FIFO on an endpoint.
int sceUsbbdReqCancelAll (struct UsbEndpoint *endp)
 Cancel any pending requests on an endpoint.
int sceUsbbdStall (struct UsbEndpoint *endp)
 Stall an endpoint.
int sceUsbbdReqSend (struct UsbdDeviceReq *req)
 Queue a send request (IN from host pov).
int sceUsbbdReqRecv (struct UsbdDeviceReq *req)
 Queue a receive request (OUT from host pov).

Variables

StringDescriptor packed
 USB string descriptor.
DeviceDescriptor packed
 USB device descriptor.
ConfigDescriptor packed
 USB configuration descriptor.
InterfaceDescriptor packed
 USB Interface descriptor.
EndpointDescriptor packed
 USB endpoint descriptor.
UsbData packed
 Padded data structure, padding is required otherwise the USB hardware crashes.
DeviceRequest packed
 USB EP0 Device Request.


Function Documentation

int sceUsbbdClearFIFO ( struct UsbEndpoint endp  ) 

Clear the FIFO on an endpoint.

Parameters:
endp - The endpoint to clear
Returns:
0 on success, < 0 on error

int sceUsbbdRegister ( struct UsbDriver drv  ) 

Register a USB driver.

Parameters:
drv - Pointer to a filled out USB driver
Returns:
0 on success, < 0 on error

int sceUsbbdReqCancelAll ( struct UsbEndpoint endp  ) 

Cancel any pending requests on an endpoint.

Parameters:
endp - The endpoint to cancel
Returns:
0 on success, < 0 on error

int sceUsbbdReqRecv ( struct UsbdDeviceReq req  ) 

Queue a receive request (OUT from host pov).

Parameters:
req - Pointer to a filled out UsbdDeviceReq structure
Returns:
0 on success, < 0 on error

int sceUsbbdReqSend ( struct UsbdDeviceReq req  ) 

Queue a send request (IN from host pov).

Parameters:
req - Pointer to a filled out UsbdDeviceReq structure.
Returns:
0 on success, < 0 on error

int sceUsbbdStall ( struct UsbEndpoint endp  ) 

Stall an endpoint.

Parameters:
endp - The endpoint to stall
Returns:
0 on success, < 0 on error

int sceUsbbdUnregister ( struct UsbDriver drv  ) 

Unregister a USB driver.

Parameters:
drv - Pointer to a filled out USB driver
Returns:
0 on success, < 0 on error


Variable Documentation

struct DeviceRequest packed

USB EP0 Device Request.

struct UsbData packed

Padded data structure, padding is required otherwise the USB hardware crashes.

struct EndpointDescriptor packed

USB endpoint descriptor.

struct InterfaceDescriptor packed

USB Interface descriptor.

struct ConfigDescriptor packed

USB configuration descriptor.

struct DeviceDescriptor packed

USB device descriptor.

struct StringDescriptor packed

USB string descriptor.


Generated on Tue Jul 24 15:21:25 2007 for PSPSDK-Rev2272 by  doxygen 1.5.2