aboutsummaryrefslogtreecommitdiff
path: root/include/usbstd.h
diff options
context:
space:
mode:
authorMartin Mueller2010-11-04 00:41:49 +0100
committerMartin Mueller2010-11-04 00:44:47 +0100
commitd6eacce827a8ebffb5e82b48d4c88eb097594c1e (patch)
treed8991b96fc575925ee6f632bf7e5925d46b5cfc3 /include/usbstd.h
parent6e090ccee16582f0c152c95238753562732788e3 (diff)
add standard request
Diffstat (limited to 'include/usbstd.h')
-rw-r--r--include/usbstd.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/usbstd.h b/include/usbstd.h
index 81316b8..7c4cd37 100644
--- a/include/usbstd.h
+++ b/include/usbstd.h
@@ -45,6 +45,10 @@ struct usb_setup_data {
#define USB_REQ_TYPE_INTERFACE 0x01
#define USB_REQ_TYPE_ENDPOINT 0x02
+#define USB_REQ_TYPE_DIRECTION 0x80
+#define USB_REQ_TYPE_TYPE 0x60
+#define USB_REQ_TYPE_RECIPIENT 0x1F
+
/* USB Standard Request Codes - Table 9-4 */
#define USB_REQ_GET_STATUS 0
#define USB_REQ_CLEAR_FEATURE 1
@@ -71,9 +75,9 @@ struct usb_setup_data {
#define USB_DT_INTERFACE_POWER 8
/* USB Standard Feature Selectors - Table 9-6 */
-#define USB_FEAT_DEVICE_REMOTE_WAKEUP 1
#define USB_FEAT_ENDPOINT_HALT 0
-#define USB_FEAT_TEST_MOED 2
+#define USB_FEAT_DEVICE_REMOTE_WAKEUP 1
+#define USB_FEAT_TEST_MODE 2
/* Information Returned by a GetStatus() Request to a Device - Figure 9-4 */
#define USB_DEV_STATUS_SELF_POWERED 0x01