Defined Constants and Types for the USB Standard Structure Definitions
More...
Defined Constants and Types for the USB Standard Structure Definitions
- Version
- 1.0.0
- Author
- © 2010 Gareth McMullin garet.nosp@m.h@bl.nosp@m.acksp.nosp@m.here.nosp@m..co.n.nosp@m.z
- Date
- 10 March 2013
A set of structure definitions for the USB control structures defined in chapter 9 of the "Universal Serial Bus Specification Revision 2.0" Available from the USB Implementers Forum - http://www.usb.org/
LGPL License Terms libopencm3 License
◆ USB_CLASS_VENDOR
#define USB_CLASS_VENDOR 0xFF |
◆ USB_CONFIG_ATTR_DEFAULT
#define USB_CONFIG_ATTR_DEFAULT 0x80 /** always required (USB2.0 table 9-10) */ |
◆ USB_CONFIG_ATTR_REMOTE_WAKEUP
#define USB_CONFIG_ATTR_REMOTE_WAKEUP 0x20 |
◆ USB_CONFIG_ATTR_SELF_POWERED
#define USB_CONFIG_ATTR_SELF_POWERED 0x40 |
◆ USB_DEV_STATUS_REMOTE_WAKEUP
#define USB_DEV_STATUS_REMOTE_WAKEUP 0x02 |
◆ USB_DEV_STATUS_SELF_POWERED
#define USB_DEV_STATUS_SELF_POWERED 0x01 |
◆ USB_DT_CONFIGURATION
#define USB_DT_CONFIGURATION 2 |
◆ USB_DT_CONFIGURATION_SIZE
#define USB_DT_CONFIGURATION_SIZE 9 |
◆ USB_DT_DEBUG
◆ USB_DT_DEVICE
◆ USB_DT_DEVICE_QUALIFIER
#define USB_DT_DEVICE_QUALIFIER 6 |
◆ USB_DT_DEVICE_SIZE
◆ USB_DT_ENDPOINT
#define USB_DT_ENDPOINT 5 |
◆ USB_DT_ENDPOINT_SIZE
#define USB_DT_ENDPOINT_SIZE 7 |
◆ USB_DT_INTERFACE
#define USB_DT_INTERFACE 4 |
◆ USB_DT_INTERFACE_ASSOCIATION
#define USB_DT_INTERFACE_ASSOCIATION 11 |
◆ USB_DT_INTERFACE_ASSOCIATION_SIZE
◆ USB_DT_INTERFACE_POWER
#define USB_DT_INTERFACE_POWER 8 |
◆ USB_DT_INTERFACE_SIZE
#define USB_DT_INTERFACE_SIZE 9 |
◆ USB_DT_OTG
◆ USB_DT_OTHER_SPEED_CONFIGURATION
#define USB_DT_OTHER_SPEED_CONFIGURATION 7 |
◆ USB_DT_STRING
◆ USB_ENDPOINT_ADDR_IN
#define USB_ENDPOINT_ADDR_IN |
( |
|
x | ) |
(0x80 | (x)) |
◆ USB_ENDPOINT_ADDR_OUT
#define USB_ENDPOINT_ADDR_OUT |
( |
|
x | ) |
(x) |
◆ USB_ENDPOINT_ATTR_ADAPTIVE
#define USB_ENDPOINT_ATTR_ADAPTIVE 0x08 |
◆ USB_ENDPOINT_ATTR_ASYNC
#define USB_ENDPOINT_ATTR_ASYNC 0x04 |
◆ USB_ENDPOINT_ATTR_BULK
#define USB_ENDPOINT_ATTR_BULK 0x02 |
◆ USB_ENDPOINT_ATTR_CONTROL
#define USB_ENDPOINT_ATTR_CONTROL 0x00 |
◆ USB_ENDPOINT_ATTR_DATA
#define USB_ENDPOINT_ATTR_DATA 0x00 |
◆ USB_ENDPOINT_ATTR_FEEDBACK
#define USB_ENDPOINT_ATTR_FEEDBACK 0x10 |
◆ USB_ENDPOINT_ATTR_IMPLICIT_FEEDBACK_DATA
#define USB_ENDPOINT_ATTR_IMPLICIT_FEEDBACK_DATA 0x20 |
◆ USB_ENDPOINT_ATTR_INTERRUPT
#define USB_ENDPOINT_ATTR_INTERRUPT 0x03 |
◆ USB_ENDPOINT_ATTR_ISOCHRONOUS
#define USB_ENDPOINT_ATTR_ISOCHRONOUS 0x01 |
◆ USB_ENDPOINT_ATTR_NOSYNC
#define USB_ENDPOINT_ATTR_NOSYNC 0x00 |
◆ USB_ENDPOINT_ATTR_SYNC
#define USB_ENDPOINT_ATTR_SYNC 0x0C |
◆ USB_ENDPOINT_ATTR_SYNCTYPE
#define USB_ENDPOINT_ATTR_SYNCTYPE 0x0C |
◆ USB_ENDPOINT_ATTR_TYPE
#define USB_ENDPOINT_ATTR_TYPE 0x03 |
◆ USB_ENDPOINT_ATTR_USAGETYPE
#define USB_ENDPOINT_ATTR_USAGETYPE 0x30 |
◆ USB_FEAT_DEVICE_REMOTE_WAKEUP
#define USB_FEAT_DEVICE_REMOTE_WAKEUP 1 |
◆ USB_FEAT_ENDPOINT_HALT
#define USB_FEAT_ENDPOINT_HALT 0 |
◆ USB_FEAT_TEST_MODE
#define USB_FEAT_TEST_MODE 2 |
◆ USB_REQ_CLEAR_FEATURE
#define USB_REQ_CLEAR_FEATURE 1 |
◆ USB_REQ_GET_CONFIGURATION
#define USB_REQ_GET_CONFIGURATION 8 |
◆ USB_REQ_GET_DESCRIPTOR
#define USB_REQ_GET_DESCRIPTOR 6 |
◆ USB_REQ_GET_INTERFACE
#define USB_REQ_GET_INTERFACE 10 |
◆ USB_REQ_GET_STATUS
#define USB_REQ_GET_STATUS 0 |
◆ USB_REQ_SET_ADDRESS
#define USB_REQ_SET_ADDRESS 5 |
◆ USB_REQ_SET_CONFIGURATION
#define USB_REQ_SET_CONFIGURATION 9 |
◆ USB_REQ_SET_DESCRIPTOR
#define USB_REQ_SET_DESCRIPTOR 7 |
◆ USB_REQ_SET_FEATURE
#define USB_REQ_SET_FEATURE 3 |
◆ USB_REQ_SET_INTERFACE
#define USB_REQ_SET_INTERFACE 11 |
◆ USB_REQ_SET_SYNCH_FRAME
#define USB_REQ_SET_SYNCH_FRAME 12 |
◆ USB_REQ_TYPE_CLASS
#define USB_REQ_TYPE_CLASS 0x20 |
◆ USB_REQ_TYPE_DEVICE
#define USB_REQ_TYPE_DEVICE 0x00 |
◆ USB_REQ_TYPE_DIRECTION
#define USB_REQ_TYPE_DIRECTION 0x80 |
◆ USB_REQ_TYPE_ENDPOINT
#define USB_REQ_TYPE_ENDPOINT 0x02 |
◆ USB_REQ_TYPE_IN
#define USB_REQ_TYPE_IN 0x80 |
◆ USB_REQ_TYPE_INTERFACE
#define USB_REQ_TYPE_INTERFACE 0x01 |
◆ USB_REQ_TYPE_OTHER
#define USB_REQ_TYPE_OTHER 0x03 |
◆ USB_REQ_TYPE_OUT
#define USB_REQ_TYPE_OUT 0x0 |
◆ USB_REQ_TYPE_RECIPIENT
#define USB_REQ_TYPE_RECIPIENT 0x1F |
◆ USB_REQ_TYPE_STANDARD
#define USB_REQ_TYPE_STANDARD 0x00 |
◆ USB_REQ_TYPE_TYPE
#define USB_REQ_TYPE_TYPE 0x60 |
◆ USB_REQ_TYPE_VENDOR
#define USB_REQ_TYPE_VENDOR 0x40 |
◆ usb_language_id
Enumerator |
---|
USB_LANGID_ENGLISH_US | |
Definition at line 272 of file usbstd.h.