summaryrefslogtreecommitdiff
path: root/include/user/udcd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/user/udcd.h')
-rw-r--r--include/user/udcd.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/include/user/udcd.h b/include/user/udcd.h
index 789d717..2915312 100644
--- a/include/user/udcd.h
+++ b/include/user/udcd.h
@@ -5,20 +5,20 @@
extern "C" {
#endif
-/*
- * USB Status
- */
-#define SCE_UDCD_STATUS_CONNECTION_NEW 0x0001
-#define SCE_UDCD_STATUS_CONNECTION_ESTABLISHED 0x0002
-#define SCE_UDCD_STATUS_CONNECTION_SUSPENDED 0x0004
-#define SCE_UDCD_STATUS_CABLE_DISCONNECTED 0x0010
-#define SCE_UDCD_STATUS_CABLE_CONNECTED 0x0020
-#define SCE_UDCD_STATUS_DEACTIVATED 0x0100
-#define SCE_UDCD_STATUS_ACTIVATED 0x0200
-#define SCE_UDCD_STATUS_IS_CHARGING 0x0400
-#define SCE_UDCD_STATUS_USE_USB_CHARGING 0x0800
-#define SCE_UDCD_STATUS_UNKNOWN_1000 0x1000
-#define SCE_UDCD_STATUS_UNKNOWN_2000 0x2000
+/** USB Status */
+typedef enum SceUdcdStatus {
+ SCE_UDCD_STATUS_CONNECTION_NEW = 0x0001,
+ SCE_UDCD_STATUS_CONNECTION_ESTABLISHED = 0x0002,
+ SCE_UDCD_STATUS_CONNECTION_SUSPENDED = 0x0004,
+ SCE_UDCD_STATUS_CABLE_DISCONNECTED = 0x0010,
+ SCE_UDCD_STATUS_CABLE_CONNECTED = 0x0020,
+ SCE_UDCD_STATUS_DEACTIVATED = 0x0100,
+ SCE_UDCD_STATUS_ACTIVATED = 0x0200,
+ SCE_UDCD_STATUS_IS_CHARGING = 0x0400,
+ SCE_UDCD_STATUS_USE_USB_CHARGING = 0x0800,
+ SCE_UDCD_STATUS_UNKNOWN_1000 = 0x1000,
+ SCE_UDCD_STATUS_UNKNOWN_2000 = 0x2000
+} SceUdcdStatus;
typedef struct {
uint8_t info[64];