diff options
Diffstat (limited to 'include/user/udcd.h')
-rw-r--r-- | include/user/udcd.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/include/user/udcd.h b/include/user/udcd.h index 2915312..fefb048 100644 --- a/include/user/udcd.h +++ b/include/user/udcd.h @@ -20,6 +20,13 @@ typedef enum SceUdcdStatus { SCE_UDCD_STATUS_UNKNOWN_2000 = 0x2000 } SceUdcdStatus; +/** USB Driver status + */ +typedef enum SceUdcdStatusDriver { + SCE_UDCD_STATUS_DRIVER_STARTED = 0x01, + SCE_UDCD_STATUS_DRIVER_REGISTERED = 0x02 +} SceUdcdStatusDriver; + typedef struct { uint8_t info[64]; } SceUdcdDeviceInfo; @@ -61,6 +68,15 @@ int sceUdcdGetDeviceState(SceUdcdDeviceState *state); int sceUdcdGetDeviceInfo(SceUdcdDeviceInfo *devInfo); /** + * Get state of a specific USB driver + * + * @param driverName - name of USB driver to get status from + * + * @return SCE_UDCD_STATUS_DRIVER_STARTED if the driver has been started, SCE_UDCD_STATUS_DRIVER_REGISTERED if it is stopped + */ +int sceUdcdGetDrvState(const char *driverName); + +/** * Register callback * * @param[in] cbid - Callback UID @@ -83,11 +99,11 @@ int sceUdcdUnregisterCallback(SceUID cbid); * Wait for state * * @param[in] waitParam - Wait parameter - * @param[in] state - State + * @param[in] timeout - Timeout * * @return 0 on success, < 0 on error. */ -int sceUdcdWaitState(SceUdcdWaitParam *waitParam, int state); +int sceUdcdWaitState(SceUdcdWaitParam *waitParam, unsigned int timeout); #ifdef __cplusplus } |