vitasdk
Documentation of the vitasdk
|
Go to the source code of this file.
Data Structures | |
struct | SceUsbdDriver |
struct | SceUsbdCompositeDriver |
struct | SceUsbdDeviceRequest |
struct | ksceUsbdIsochPswLen |
struct | ksceUsbdIsochTransfer |
Typedefs | |
typedef void(* | ksceUsbdDoneCallback) (int32_t result, int32_t count, void *arg) |
typedef void(* | ksceUsbdIsochDoneCallback) (int32_t result, ksceUsbdIsochTransfer *req, void *arg) |
Enumerations | |
enum | SceUsbdReqtype { SCE_USBD_REQTYPE_DIR_BITS = 0x80 , SCE_USBD_REQTYPE_DIR_TO_DEVICE = 0x00 , SCE_USBD_REQTYPE_DIR_TO_HOST = 0x80 , SCE_USBD_REQTYPE_TYPE_BITS = 0x60 , SCE_USBD_REQTYPE_TYPE_STANDARD = 0x00 , SCE_USBD_REQTYPE_TYPE_CLASS = 0x20 , SCE_USBD_REQTYPE_TYPE_VENDOR = 0x40 , SCE_USBD_REQTYPE_TYPE_RESERVED = 0x60 , SCE_USBD_REQTYPE_RECIP_BITS = 0x1f , SCE_USBD_REQTYPE_RECIP_DEVICE = 0x00 , SCE_USBD_REQTYPE_RECIP_INTERFACE = 0x01 , SCE_USBD_REQTYPE_RECIP_ENDPOINT = 0x02 , SCE_USBD_REQTYPE_RECIP_OTHER = 0x03 } |
enum | SceUsbdRequest { SCE_USBD_REQUEST_GET_STATUS = 0x00 , SCE_USBD_REQUEST_CLEAR_FEATURE = 0x01 , SCE_USBD_REQUEST_SET_FEATURE = 0x03 , SCE_USBD_REQUEST_SET_ADDRESS = 0x05 , SCE_USBD_REQUEST_GET_DESCRIPTOR = 0x06 , SCE_USBD_REQUEST_SET_DESCRIPTOR = 0x07 , SCE_USBD_REQUEST_GET_CONFIGURATION = 0x08 , SCE_USBD_REQUEST_SET_CONFIGURATION = 0x09 , SCE_USBD_REQUEST_GET_INTERFACE = 0x0a , SCE_USBD_REQUEST_SET_INTERFACE = 0x0b , SCE_USBD_REQUEST_SYNCH_FRAME = 0x0c } |
Functions | |
VITASDK_BUILD_ASSERT_EQ (0x10, SceUsbdDriver) | |
VITASDK_BUILD_ASSERT_EQ (0x10, SceUsbdCompositeDriver) | |
VITASDK_BUILD_ASSERT_EQ (8, SceUsbdDeviceRequest) | |
VITASDK_BUILD_ASSERT_EQ (2, ksceUsbdIsochPswLen) | |
VITASDK_BUILD_ASSERT_EQ (0x1C, ksceUsbdIsochTransfer) | |
int | ksceUsbdRegisterDriver (const SceUsbdDriver *driver) |
Register USB driver. More... | |
int | ksceUsbdRegisterCompositeLdd (const SceUsbdCompositeDriver *driver) |
Register USB driver for composite devices. More... | |
int | ksceUsbdUnregisterDriver (const SceUsbdDriver *driver) |
De-register USB driver. More... | |
int | ksceUsbdUnregisterCompositeLdd (const SceUsbdCompositeDriver *driver) |
De-register USB driver for composite devices. More... | |
void * | ksceUsbdScanStaticDescriptor (SceUID device_id, void *start, SceUsbdDescriptorType type) |
Return usb descriptor. More... | |
SceUID | ksceUsbdOpenPipe (int device_id, SceUsbdEndpointDescriptor *endpoint) |
Open communication pipe to endpoint. More... | |
int | ksceUsbdClosePipe (SceUID pipe_id) |
Close communication pipe to endpoint. More... | |
int | ksceUsbdControlTransfer (SceUID pipe_id, const SceUsbdDeviceRequest *req, unsigned char *buffer, ksceUsbdDoneCallback cb, void *user_data) |
Transfer data to/from endpoint. More... | |
int | ksceUsbdInterruptTransfer (SceUID pipe_id, unsigned char *buffer, SceSize length, ksceUsbdDoneCallback cb, void *user_data) |
Transfer data to/from interrupt endpoint. More... | |
int | ksceUsbdIsochronousTransfer (SceUID pipe_id, ksceUsbdIsochTransfer *transfer, ksceUsbdIsochDoneCallback cb, void *user_data) |
Transfer isochronous data to/from endpoint. More... | |
int | ksceUsbdBulkTransfer (SceUID pipe_id, unsigned char *buffer, unsigned int length, ksceUsbdDoneCallback cb, void *user_data) |
Transfer data to/from endpoint. More... | |
int | ksceUsbdBulkTransfer2 (int pipe_id, unsigned char *buffer, unsigned int length, ksceUsbdDoneCallback cb, void *user_data) |
Transfer data to/from endpoint. More... | |
int | ksceUsbdGetDeviceLocation (SceUID device_id, uint8_t *location) |
Get device location. More... | |
int | ksceUsbdSuspend (int port) |
int | ksceUsbdSuspendPhase2 (int port, int flag) |
int | ksceUsbdResume (int port) |
int | ksceUsbdHostStop (int port) |
int | ksceUsbdHostStart (int port) |
int | ksceUsbdGetDeviceSpeed (int device_id, uint8_t *speed) |
Get device speed. More... | |
int | ksceUsbd_05073925 (SceUID device_id, int *unk1, int *unk2) |
int | ksceUsbd_7938DAC7 (SceUID pipe_id) |