|
@@ -107,7 +107,7 @@
|
107
|
107
|
/**
|
108
|
108
|
* \brief Standard USB requests (bRequest)
|
109
|
109
|
*/
|
110
|
|
-enum usb_reqid : char {
|
|
110
|
+enum usb_reqid {
|
111
|
111
|
USB_REQ_GET_STATUS = 0,
|
112
|
112
|
USB_REQ_CLEAR_FEATURE = 1,
|
113
|
113
|
USB_REQ_SET_FEATURE = 3,
|
|
@@ -125,7 +125,7 @@ enum usb_reqid : char {
|
125
|
125
|
* \brief Standard USB device status flags
|
126
|
126
|
*
|
127
|
127
|
*/
|
128
|
|
-enum usb_device_status : char {
|
|
128
|
+enum usb_device_status {
|
129
|
129
|
USB_DEV_STATUS_BUS_POWERED = 0,
|
130
|
130
|
USB_DEV_STATUS_SELF_POWERED = 1,
|
131
|
131
|
USB_DEV_STATUS_REMOTEWAKEUP = 2
|
|
@@ -135,7 +135,7 @@ enum usb_device_status : char {
|
135
|
135
|
* \brief Standard USB Interface status flags
|
136
|
136
|
*
|
137
|
137
|
*/
|
138
|
|
-enum usb_interface_status : char {
|
|
138
|
+enum usb_interface_status {
|
139
|
139
|
USB_IFACE_STATUS_RESERVED = 0
|
140
|
140
|
};
|
141
|
141
|
|
|
@@ -143,7 +143,7 @@ enum usb_interface_status : char {
|
143
|
143
|
* \brief Standard USB endpoint status flags
|
144
|
144
|
*
|
145
|
145
|
*/
|
146
|
|
-enum usb_endpoint_status : char {
|
|
146
|
+enum usb_endpoint_status {
|
147
|
147
|
USB_EP_STATUS_HALTED = 1,
|
148
|
148
|
};
|
149
|
149
|
|
|
@@ -152,7 +152,7 @@ enum usb_endpoint_status : char {
|
152
|
152
|
*
|
153
|
153
|
* \note valid for SetFeature request.
|
154
|
154
|
*/
|
155
|
|
-enum usb_device_feature : char {
|
|
155
|
+enum usb_device_feature {
|
156
|
156
|
USB_DEV_FEATURE_REMOTE_WAKEUP = 1, //!< Remote wakeup enabled
|
157
|
157
|
USB_DEV_FEATURE_TEST_MODE = 2, //!< USB test mode
|
158
|
158
|
USB_DEV_FEATURE_OTG_B_HNP_ENABLE = 3,
|
|
@@ -165,7 +165,7 @@ enum usb_device_feature : char {
|
165
|
165
|
*
|
166
|
166
|
* \note valid for USB_DEV_FEATURE_TEST_MODE request.
|
167
|
167
|
*/
|
168
|
|
-enum usb_device_hs_test_mode : char {
|
|
168
|
+enum usb_device_hs_test_mode {
|
169
|
169
|
USB_DEV_TEST_MODE_J = 1,
|
170
|
170
|
USB_DEV_TEST_MODE_K = 2,
|
171
|
171
|
USB_DEV_TEST_MODE_SE0_NAK = 3,
|
|
@@ -176,14 +176,14 @@ enum usb_device_hs_test_mode : char {
|
176
|
176
|
/**
|
177
|
177
|
* \brief Standard USB endpoint feature/status flags
|
178
|
178
|
*/
|
179
|
|
-enum usb_endpoint_feature : char {
|
|
179
|
+enum usb_endpoint_feature {
|
180
|
180
|
USB_EP_FEATURE_HALT = 0,
|
181
|
181
|
};
|
182
|
182
|
|
183
|
183
|
/**
|
184
|
184
|
* \brief Standard USB Test Mode Selectors
|
185
|
185
|
*/
|
186
|
|
-enum usb_test_mode_selector : char {
|
|
186
|
+enum usb_test_mode_selector {
|
187
|
187
|
USB_TEST_J = 0x01,
|
188
|
188
|
USB_TEST_K = 0x02,
|
189
|
189
|
USB_TEST_SE0_NAK = 0x03,
|
|
@@ -194,7 +194,7 @@ enum usb_test_mode_selector : char {
|
194
|
194
|
/**
|
195
|
195
|
* \brief Standard USB descriptor types
|
196
|
196
|
*/
|
197
|
|
-enum usb_descriptor_type : char {
|
|
197
|
+enum usb_descriptor_type {
|
198
|
198
|
USB_DT_DEVICE = 1,
|
199
|
199
|
USB_DT_CONFIGURATION = 2,
|
200
|
200
|
USB_DT_STRING = 3,
|
|
@@ -212,7 +212,7 @@ enum usb_descriptor_type : char {
|
212
|
212
|
/**
|
213
|
213
|
* \brief USB Device Capability types
|
214
|
214
|
*/
|
215
|
|
-enum usb_capability_type : char {
|
|
215
|
+enum usb_capability_type {
|
216
|
216
|
USB_DC_USB20_EXTENSION = 0x02,
|
217
|
217
|
};
|
218
|
218
|
|
|
@@ -220,7 +220,7 @@ enum usb_capability_type : char {
|
220
|
220
|
* \brief USB Device Capability - USB 2.0 Extension
|
221
|
221
|
* To fill bmAttributes field of usb_capa_ext_desc_t structure.
|
222
|
222
|
*/
|
223
|
|
-enum usb_capability_extension_attr : char {
|
|
223
|
+enum usb_capability_extension_attr {
|
224
|
224
|
USB_DC_EXT_LPM = 0x00000002,
|
225
|
225
|
};
|
226
|
226
|
|
|
@@ -253,7 +253,7 @@ enum usb_capability_extension_attr : char {
|
253
|
253
|
/**
|
254
|
254
|
* \brief Standard USB endpoint transfer types
|
255
|
255
|
*/
|
256
|
|
-enum usb_ep_type : char {
|
|
256
|
+enum usb_ep_type {
|
257
|
257
|
USB_EP_TYPE_CONTROL = 0x00,
|
258
|
258
|
USB_EP_TYPE_ISOCHRONOUS = 0x01,
|
259
|
259
|
USB_EP_TYPE_BULK = 0x02,
|
|
@@ -264,7 +264,7 @@ enum usb_ep_type : char {
|
264
|
264
|
/**
|
265
|
265
|
* \brief Standard USB language IDs for string descriptors
|
266
|
266
|
*/
|
267
|
|
-enum usb_langid : char {
|
|
267
|
+enum usb_langid {
|
268
|
268
|
USB_LANGID_EN_US = 0x0409, //!< English (United States)
|
269
|
269
|
};
|
270
|
270
|
|