diff options
author | Sergi Granell | 2017-02-08 14:25:51 +0100 |
---|---|---|
committer | Sergi Granell | 2017-02-08 14:25:51 +0100 |
commit | 9422248518be3a924d1f849aa13bc965a2bbf27c (patch) | |
tree | a146374c280147d05321f7976ddaa6c35998df84 /include/user/usbd.h | |
parent | Add SceUsbdForUser NIDs (diff) | |
download | vds-libraries-9422248518be3a924d1f849aa13bc965a2bbf27c.tar.gz |
Added more SceUsbdForUser NIDs
Add initial psp2/usbd.h
Diffstat (limited to 'include/user/usbd.h')
-rw-r--r-- | include/user/usbd.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/include/user/usbd.h b/include/user/usbd.h new file mode 100644 index 0000000..97e78fb --- /dev/null +++ b/include/user/usbd.h @@ -0,0 +1,56 @@ +#ifndef _PSP2_USBD_H_ +#define _PSP2_USBD_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#define SCE_USBD_ERROR_ACCESS 0x80240003 +#define SCE_USBD_ERROR_BUSY 0x80240006 +#define SCE_USBD_ERROR_FATAL 0x802400ff +#define SCE_USBD_ERROR_INTERRUPTED 0x8024000a +#define SCE_USBD_ERROR_INVALID_ARG 0x80240002 +#define SCE_USBD_ERROR_IO 0x80240001 +#define SCE_USBD_ERROR_NO_DEVICE 0x80240004 +#define SCE_USBD_ERROR_NO_MEM 0x8024000b +#define SCE_USBD_ERROR_NOT_FOUND 0x80240005 +#define SCE_USBD_ERROR_NOT_SUPPORTED 0x8024000c +#define SCE_USBD_ERROR_OVERFLOW 0x80240008 +#define SCE_USBD_ERROR_PIPE 0x80240009 +#define SCE_USBD_ERROR_TIMEOUT 0x80240007 + +int sceUsbdInit(int *); +int sceUsbdEnd(); + +int sceUsbdRegisterCallback(SceUID cbid, int); +int sceUsbdUnregisterCallback(SceUID cbid); + +int sceUsbdResetDevice(); +int sceUsbdAttach(); + +int sceUsbdOpenDefaultPipe(); +int sceUsbdOpenPipe(); +int sceUsbdClosePipe(); + +int sceUsbdGetDeviceList(); +int sceUsbdGetDescriptor(); +int sceUsbdGetDescriptorSize(); +int sceUsbdGetDeviceLocation(); +int sceUsbdGetDeviceSpeed(); +int sceUsbdGetTransferStatus(); +int sceUsbdGetIsochTransferStatus(); + +int sceUsbdTransferData(); +int sceUsbdIsochTransferData(); +int sceUsbdReceiveEvent(); + +int sceUsbdRegisterLdd(); +int sceUsbdUnregisterLdd(); +int sceUsbdRegisterCompositeLdd(); +int sceUsbdAttachCompositeLdd(); + +#ifdef __cplusplus +} +#endif + +#endif /* _PSP2_USBD_H_ */ |