diff options
Diffstat (limited to 'firmware/export/usb_ch9.h')
-rw-r--r-- | firmware/export/usb_ch9.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/export/usb_ch9.h b/firmware/export/usb_ch9.h index 560a737354..f05dbd3265 100644 --- a/firmware/export/usb_ch9.h +++ b/firmware/export/usb_ch9.h | |||
@@ -109,6 +109,24 @@ | |||
109 | #define USB_REQ_GET_INTERFACE 0x0A | 109 | #define USB_REQ_GET_INTERFACE 0x0A |
110 | #define USB_REQ_SET_INTERFACE 0x0B | 110 | #define USB_REQ_SET_INTERFACE 0x0B |
111 | #define USB_REQ_SYNCH_FRAME 0x0C | 111 | #define USB_REQ_SYNCH_FRAME 0x0C |
112 | /* | ||
113 | * USB feature flags are written using USB_REQ_{CLEAR,SET}_FEATURE, and | ||
114 | * are read as a bit array returned by USB_REQ_GET_STATUS. (So there | ||
115 | * are at most sixteen features of each type.) Hubs may also support a | ||
116 | * new USB_REQ_TEST_AND_SET_FEATURE to put ports into L1 suspend. | ||
117 | */ | ||
118 | #define USB_DEVICE_SELF_POWERED 0 /* (read only) */ | ||
119 | #define USB_DEVICE_REMOTE_WAKEUP 1 /* dev may initiate wakeup */ | ||
120 | #define USB_DEVICE_TEST_MODE 2 /* (wired high speed only) */ | ||
121 | #define USB_DEVICE_BATTERY 2 /* (wireless) */ | ||
122 | #define USB_DEVICE_B_HNP_ENABLE 3 /* (otg) dev may initiate HNP */ | ||
123 | #define USB_DEVICE_WUSB_DEVICE 3 /* (wireless)*/ | ||
124 | #define USB_DEVICE_A_HNP_SUPPORT 4 /* (otg) RH port supports HNP */ | ||
125 | #define USB_DEVICE_A_ALT_HNP_SUPPORT 5 /* (otg) other RH port does */ | ||
126 | #define USB_DEVICE_DEBUG_MODE 6 /* (special devices only) */ | ||
127 | |||
128 | #define USB_ENDPOINT_HALT 0 /* IN/OUT will STALL */ | ||
129 | |||
112 | 130 | ||
113 | /** | 131 | /** |
114 | * struct usb_ctrlrequest - SETUP data for a USB device control request | 132 | * struct usb_ctrlrequest - SETUP data for a USB device control request |