summaryrefslogtreecommitdiff
path: root/include/user/udcd.h
diff options
context:
space:
mode:
authorRinnegatamante2017-06-15 11:36:33 +0200
committerSunguk Lee2017-06-15 18:36:33 +0900
commitb5646d6867a3c279e0a7f5b3db42678f84d7ff15 (patch)
treeb625c863cf3657b5901523e438bddb8330c10a74 /include/user/udcd.h
parentRemoved next entry (diff)
downloadvds-libraries-b5646d6867a3c279e0a7f5b3db42678f84d7ff15.tar.gz
Named anonymous enums in psp2. (#179)
* Named anonymous enums in psp2. Named anonymous enums in psp2. * Properly sorted enums. * Several modifications (see desc) Added some missing info, fixed identation in some places, aligned all enums and comments with spaces as delimiters, replaced decimal negative errorcode in location.h with hexadecimal one, added some comments and fixed some documentation comments. * Minor fixes in identation. * Yet another minor identation fix. * Fixed enums in structs. * Reverted SceBool changes. * SceBool fix. * Fix for compilation with g++- * Added some doc references in jpegenc. * Fixed some references.
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];