PS2SDK
PS2 Homebrew Libraries
|
#include <usbd.h>
Go to the source code of this file.
Macros | |
#define | sceUsbdIsochronousTransfer(epID, dataptr, len, delta, doneCB, arg) sceUsbdTransferPipe((epID), (dataptr), (len), (void *)(delta), (doneCB), (arg)) |
#define | sceUsbdBulkTransfer(epID, dataptr, len, doneCB, arg) sceUsbdTransferPipe((epID), (dataptr), (len), NULL, (doneCB), (arg)) |
#define | sceUsbdInterruptTransfer(epID, dataptr, len, doneCB, arg) sceUsbdTransferPipe((epID), (dataptr), (len), NULL, (doneCB), (arg)) |
#define | sceUsbdClearDeviceFeature(epID, feature, doneCB, arg) |
#define | sceUsbdSetDeviceFeature(epID, feature, doneCB, arg) |
#define | sceUsbdGetConfiguration(epID, dataptr, doneCB, arg) |
#define | sceUsbdSetConfiguration(epID, config, doneCB, arg) sceUsbdControlTransfer((epID), USB_DIR_OUT | USB_RECIP_DEVICE, USB_REQ_SET_CONFIGURATION, (config), 0, 0, NULL, (doneCB), (arg)) |
#define | sceUsbdGetDescriptor(epID, type, index, language, dataptr, len, doneCB, arg) |
#define | sceUsbdSetDeviceDescriptor(epID, type, index, language, dataptr, len, doneCB, arg) |
#define | sceUsbdGetDeviceStatus(epID, dataptr, doneCB, arg) |
#define | sceUsbdSetAddress(epID, address, doneCB, arg) |
#define | sceUsbdClearInterfaceFeature(epID, feature, interface, doneCB, arg) |
#define | sceUsbdSetInterfaceFeature(epID, feature, interface, doneCB, arg) |
#define | sceUsbdGetInterface(epID, interface, dataptr, doneCB, arg) |
#define | sceUsbdSetInterface(epID, interface, alt_setting, doneCB, arg) |
#define | sceUsbdGetInterfaceDescriptor(epID, type, index, language, dataptr, len, doneCB, arg) |
#define | sceUsbdSetInterfaceDescriptor(epID, type, index, language, dataptr, len, doneCB, arg) |
#define | sceUsbdGetInterfaceStatus(epID, interface, dataptr, doneCB, arg) |
#define | sceUsbdClearEndpointFeature(epID, feature, endpoint, doneCB, arg) |
#define | sceUsbdSetEndpointFeature(epID, feature, endpoint, doneCB, arg) |
#define | sceUsbdGetEndpointStatus(epID, endpoint, dataptr, doneCB, arg) |
#define | sceUsbdGetEndpointDescriptor(epID, type, index, language, dataptr, len, doneCB, arg) |
#define | sceUsbdSetEndpointDescriptor(epID, type, index, language, dataptr, len, doneCB, arg) |
#define | sceUsbdSynchFrame(epID, endpoint, pfn, doneCB, arg) |
#define | UsbControlTransfer sceUsbdControlTransfer |
#define | UsbIsochronousTransfer sceUsbdIsochronousTransfer |
#define | UsbBulkTransfer sceUsbdBulkTransfer |
#define | UsbInterruptTransfer sceUsbdInterruptTransfer |
#define | UsbClearDeviceFeature sceUsbdClearDeviceFeature |
#define | UsbSetDeviceFeature sceUsbdSetDeviceFeature |
#define | UsbGetDeviceConfiguration sceUsbdGetConfiguration |
#define | UsbSetDeviceConfiguration sceUsbdSetConfiguration |
#define | UsbGetDeviceDescriptor sceUsbdGetDescriptor |
#define | UsbSetDeviceDescriptor sceUsbdSetDeviceDescriptor |
#define | UsbGetDeviceStatus sceUsbdGetDeviceStatus |
#define | UsbSetDeviceAddress sceUsbdSetAddress |
#define | UsbClearInterfaceFeature sceUsbdClearInterfaceFeature |
#define | UsbSetInterfaceFeature sceUsbdSetInterfaceFeature |
#define | UsbGetInterface sceUsbdGetInterface |
#define | UsbSetInterface sceUsbdSetInterface |
#define | UsbGetInterfaceDescriptor sceUsbdGetInterfaceDescriptor |
#define | UsbSetInterfaceDescriptor sceUsbdSetInterfaceDescriptor |
#define | UsbGetInterfaceStatus sceUsbdGetInterfaceStatus |
#define | UsbClearEndpointFeature sceUsbdClearEndpointFeature |
#define | UsbSetEndpointFeature sceUsbdSetEndpointFeature |
#define | UsbGetEndpointStatus sceUsbdGetEndpointStatus |
#define | UsbGetEndpointDescriptor sceUsbdGetEndpointDescriptor |
#define | UsbSetEndpointDescriptor sceUsbdSetEndpointDescriptor |
#define | UsbSynchEndpointFrame sceUsbdSynchFrame |
Functions | |
static int | sceUsbdControlTransfer (int epID, int reqtyp, int req, int val, int index, int leng, void *dataptr, void *doneCB, void *arg) |
USB Driver function prototypes and constants.
Definition in file usbd_macro.h.
#define sceUsbdIsochronousTransfer | ( | epID, | |
dataptr, | |||
len, | |||
delta, | |||
doneCB, | |||
arg | |||
) | sceUsbdTransferPipe((epID), (dataptr), (len), (void *)(delta), (doneCB), (arg)) |
Definition at line 33 of file usbd_macro.h.
#define sceUsbdBulkTransfer | ( | epID, | |
dataptr, | |||
len, | |||
doneCB, | |||
arg | |||
) | sceUsbdTransferPipe((epID), (dataptr), (len), NULL, (doneCB), (arg)) |
Definition at line 36 of file usbd_macro.h.
#define sceUsbdInterruptTransfer | ( | epID, | |
dataptr, | |||
len, | |||
doneCB, | |||
arg | |||
) | sceUsbdTransferPipe((epID), (dataptr), (len), NULL, (doneCB), (arg)) |
Definition at line 39 of file usbd_macro.h.
#define sceUsbdClearDeviceFeature | ( | epID, | |
feature, | |||
doneCB, | |||
arg | |||
) |
Definition at line 44 of file usbd_macro.h.
#define sceUsbdSetDeviceFeature | ( | epID, | |
feature, | |||
doneCB, | |||
arg | |||
) |
Definition at line 48 of file usbd_macro.h.
#define sceUsbdGetConfiguration | ( | epID, | |
dataptr, | |||
doneCB, | |||
arg | |||
) |
Definition at line 52 of file usbd_macro.h.
#define sceUsbdSetConfiguration | ( | epID, | |
config, | |||
doneCB, | |||
arg | |||
) | sceUsbdControlTransfer((epID), USB_DIR_OUT | USB_RECIP_DEVICE, USB_REQ_SET_CONFIGURATION, (config), 0, 0, NULL, (doneCB), (arg)) |
Definition at line 56 of file usbd_macro.h.
#define sceUsbdGetDescriptor | ( | epID, | |
type, | |||
index, | |||
language, | |||
dataptr, | |||
len, | |||
doneCB, | |||
arg | |||
) |
Definition at line 59 of file usbd_macro.h.
#define sceUsbdSetDeviceDescriptor | ( | epID, | |
type, | |||
index, | |||
language, | |||
dataptr, | |||
len, | |||
doneCB, | |||
arg | |||
) |
Definition at line 63 of file usbd_macro.h.
#define sceUsbdGetDeviceStatus | ( | epID, | |
dataptr, | |||
doneCB, | |||
arg | |||
) |
Definition at line 67 of file usbd_macro.h.
#define sceUsbdSetAddress | ( | epID, | |
address, | |||
doneCB, | |||
arg | |||
) |
Definition at line 71 of file usbd_macro.h.
#define sceUsbdClearInterfaceFeature | ( | epID, | |
feature, | |||
interface, | |||
doneCB, | |||
arg | |||
) |
Definition at line 75 of file usbd_macro.h.
#define sceUsbdSetInterfaceFeature | ( | epID, | |
feature, | |||
interface, | |||
doneCB, | |||
arg | |||
) |
Definition at line 79 of file usbd_macro.h.
#define sceUsbdGetInterface | ( | epID, | |
interface, | |||
dataptr, | |||
doneCB, | |||
arg | |||
) |
Definition at line 83 of file usbd_macro.h.
#define sceUsbdSetInterface | ( | epID, | |
interface, | |||
alt_setting, | |||
doneCB, | |||
arg | |||
) |
Definition at line 87 of file usbd_macro.h.
#define sceUsbdGetInterfaceDescriptor | ( | epID, | |
type, | |||
index, | |||
language, | |||
dataptr, | |||
len, | |||
doneCB, | |||
arg | |||
) |
Definition at line 91 of file usbd_macro.h.
#define sceUsbdSetInterfaceDescriptor | ( | epID, | |
type, | |||
index, | |||
language, | |||
dataptr, | |||
len, | |||
doneCB, | |||
arg | |||
) |
Definition at line 95 of file usbd_macro.h.
#define sceUsbdGetInterfaceStatus | ( | epID, | |
interface, | |||
dataptr, | |||
doneCB, | |||
arg | |||
) |
Definition at line 99 of file usbd_macro.h.
#define sceUsbdClearEndpointFeature | ( | epID, | |
feature, | |||
endpoint, | |||
doneCB, | |||
arg | |||
) |
Definition at line 103 of file usbd_macro.h.
#define sceUsbdSetEndpointFeature | ( | epID, | |
feature, | |||
endpoint, | |||
doneCB, | |||
arg | |||
) |
Definition at line 107 of file usbd_macro.h.
#define sceUsbdGetEndpointStatus | ( | epID, | |
endpoint, | |||
dataptr, | |||
doneCB, | |||
arg | |||
) |
Definition at line 111 of file usbd_macro.h.
#define sceUsbdGetEndpointDescriptor | ( | epID, | |
type, | |||
index, | |||
language, | |||
dataptr, | |||
len, | |||
doneCB, | |||
arg | |||
) |
Definition at line 115 of file usbd_macro.h.
#define sceUsbdSetEndpointDescriptor | ( | epID, | |
type, | |||
index, | |||
language, | |||
dataptr, | |||
len, | |||
doneCB, | |||
arg | |||
) |
Definition at line 119 of file usbd_macro.h.
#define sceUsbdSynchFrame | ( | epID, | |
endpoint, | |||
pfn, | |||
doneCB, | |||
arg | |||
) |
Definition at line 123 of file usbd_macro.h.
#define UsbControlTransfer sceUsbdControlTransfer |
Definition at line 128 of file usbd_macro.h.
#define UsbIsochronousTransfer sceUsbdIsochronousTransfer |
Definition at line 129 of file usbd_macro.h.
#define UsbBulkTransfer sceUsbdBulkTransfer |
Definition at line 130 of file usbd_macro.h.
#define UsbInterruptTransfer sceUsbdInterruptTransfer |
Definition at line 131 of file usbd_macro.h.
#define UsbClearDeviceFeature sceUsbdClearDeviceFeature |
Definition at line 132 of file usbd_macro.h.
#define UsbSetDeviceFeature sceUsbdSetDeviceFeature |
Definition at line 133 of file usbd_macro.h.
#define UsbGetDeviceConfiguration sceUsbdGetConfiguration |
Definition at line 134 of file usbd_macro.h.
#define UsbSetDeviceConfiguration sceUsbdSetConfiguration |
Definition at line 135 of file usbd_macro.h.
#define UsbGetDeviceDescriptor sceUsbdGetDescriptor |
Definition at line 136 of file usbd_macro.h.
#define UsbSetDeviceDescriptor sceUsbdSetDeviceDescriptor |
Definition at line 137 of file usbd_macro.h.
#define UsbGetDeviceStatus sceUsbdGetDeviceStatus |
Definition at line 138 of file usbd_macro.h.
#define UsbSetDeviceAddress sceUsbdSetAddress |
Definition at line 139 of file usbd_macro.h.
#define UsbClearInterfaceFeature sceUsbdClearInterfaceFeature |
Definition at line 140 of file usbd_macro.h.
#define UsbSetInterfaceFeature sceUsbdSetInterfaceFeature |
Definition at line 141 of file usbd_macro.h.
#define UsbGetInterface sceUsbdGetInterface |
Definition at line 142 of file usbd_macro.h.
#define UsbSetInterface sceUsbdSetInterface |
Definition at line 143 of file usbd_macro.h.
#define UsbGetInterfaceDescriptor sceUsbdGetInterfaceDescriptor |
Definition at line 144 of file usbd_macro.h.
#define UsbSetInterfaceDescriptor sceUsbdSetInterfaceDescriptor |
Definition at line 145 of file usbd_macro.h.
#define UsbGetInterfaceStatus sceUsbdGetInterfaceStatus |
Definition at line 146 of file usbd_macro.h.
#define UsbClearEndpointFeature sceUsbdClearEndpointFeature |
Definition at line 147 of file usbd_macro.h.
#define UsbSetEndpointFeature sceUsbdSetEndpointFeature |
Definition at line 148 of file usbd_macro.h.
#define UsbGetEndpointStatus sceUsbdGetEndpointStatus |
Definition at line 149 of file usbd_macro.h.
#define UsbGetEndpointDescriptor sceUsbdGetEndpointDescriptor |
Definition at line 150 of file usbd_macro.h.
#define UsbSetEndpointDescriptor sceUsbdSetEndpointDescriptor |
Definition at line 151 of file usbd_macro.h.
#define UsbSynchEndpointFrame sceUsbdSynchFrame |
Definition at line 152 of file usbd_macro.h.
|
static |
Definition at line 21 of file usbd_macro.h.