vitasdk
Documentation of the vitasdk
udcd.h
Go to the documentation of this file.
1 
7 #ifndef _PSP2_UDCD_H_
8 #define _PSP2_UDCD_H_
9 
10 #include <vitasdk/build_utils.h>
11 #include <psp2/types.h>
12 #include <psp2common/udcd.h>
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 typedef struct SceUdcdDeviceState {
19  int unk_00;
20  int state;
21  int cable;
24  int unk_14;
27 
36 
45 
53 int sceUdcdGetDrvState(const char *driverName);
54 
63 int sceUdcdRegisterCallback(SceUID cbid, int state);
64 
73 
82 int sceUdcdWaitState(SceUdcdWaitParam *waitParam, unsigned int timeout);
83 
84 #ifdef __cplusplus
85 }
86 #endif
87 
88 #endif /* _PSP2_UDCD_H_ */
int SceUID
UIDs are used to describe many different kernel objects.
Definition: types.h:90
Definition: udcd.h:37
Definition: udcd.h:42
int state
Definition: udcd.h:20
int unk_14
Definition: udcd.h:24
int unk_00
Definition: udcd.h:19
int cable
Definition: udcd.h:21
int sceUdcdGetDrvState(const char *driverName)
Get state of a specific USB driver.
int sceUdcdRegisterCallback(SceUID cbid, int state)
Register callback.
int sceUdcdGetDeviceState(SceUdcdDeviceState *state)
Get device state.
int sceUdcdWaitState(SceUdcdWaitParam *waitParam, unsigned int timeout)
Wait for state.
VITASDK_BUILD_ASSERT_EQ(0x18, SceUdcdDeviceState)
int sceUdcdGetDeviceInfo(SceUdcdDeviceInfo *devInfo)
Get device information.
int use_usb_charging
Definition: udcd.h:23
int sceUdcdUnregisterCallback(SceUID cbid)
Unregister callback.
int connection
Definition: udcd.h:22
Definition: udcd.h:18