summaryrefslogtreecommitdiff
path: root/include/kernel/udcd.h
diff options
context:
space:
mode:
authorSergi Granell2017-01-05 14:25:28 +0100
committerSergi Granell2017-01-05 14:25:28 +0100
commit5936d38bec328e0610e21cfd4307fe17d1a62ed9 (patch)
tree24ab06d6ab78940db2ef46982032beae26598b92 /include/kernel/udcd.h
parentAdd psp2kern/udcd.h, some SceUdcdForDriver NIDs and ksceTouchSetRegion NID (diff)
downloadvds-libraries-5936d38bec328e0610e21cfd4307fe17d1a62ed9.tar.gz
Add more SceUdcd NIDs and defines (thanks to @TheOfficialFloW)
Diffstat (limited to 'include/kernel/udcd.h')
-rw-r--r--include/kernel/udcd.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/include/kernel/udcd.h b/include/kernel/udcd.h
index 4e26324..2b44ea6 100644
--- a/include/kernel/udcd.h
+++ b/include/kernel/udcd.h
@@ -75,13 +75,17 @@ extern "C" {
/*
* USB Status
*/
-#define SCE_UDCD_STATUS_ACTIVATED 0x200
-#define SCE_UDCD_STATUS_DEACTIVATED 0x100
-#define SCE_UDCD_STATUS_CABLE_CONNECTED 0x020
-#define SCE_UDCD_STATUS_CABLE_DISCONNECTED 0x010
-#define SCE_UDCD_STATUS_CONNECTION_SUSPENDED 0x004
-#define SCE_UDCD_STATUS_CONNECTION_ESTABLISHED 0x002
-#define SCE_UDCD_STATUS_CONNECTION_NEW 0x001
+#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 Driver status