Definitions of constants as described by the USB 2.0 standard. More...
Go to the source code of this file.
Data Structures | |
struct | usb_setup_packet_t |
Enumerations | |
enum | usb_pid_t { PID_OUT = 0x1, PID_IN = 0x9, PID_SOF = 0x5, PID_SETUP = 0xD, PID_DATA0 = 0x3, PID_DATA1 = 0xB, PID_DATA2 = 0x7, PID_MDATA = 0xF, PID_ACK = 0x2, PID_NAK = 0xA, PID_STALL = 0xE, PIT_NYET = 0x6, PID_PRE = 0xC, PID_ERR = 0xC, PID_SPLIT = 0x8, PID_PING = 0x4 } |
USB packet IDs. | |
enum | usb_request_code_t { GET_STATUS = 0, CLEAR_FEATURE = 1, SET_FEATURE = 3, SET_ADDRESS = 5, GET_DESCRIPTOR = 6, SET_DESCRIPTOR = 7, GET_CONFIGURATION = 8, SET_CONFIGURATION = 9, GET_INTERFACE = 10, SET_INTERFACE = 11, SYNCH_FRAME = 12 } |
enum | usb_feature_t { ENDPOINT_HALT = 0, REMOTE_WAKEUP = 1, TEST_MODE = 2 } |
Definitions of constants as described by the USB 2.0 standard.
A few types, constants and macros used by the USB subsystem.
enum usb_feature_t |
enum usb_request_code_t |
USB request codes defined in §9.4 of the specification. Not all requests are currently supported.
Enumerator | |
---|---|
GET_STATUS | Get device or endpoint status. |
CLEAR_FEATURE | Turn device or endpoint feature off. See usb_feature_t. |
SET_FEATURE | Turn device or endpoint feature on. See usb_feature_t. |
SET_ADDRESS | Set device address. |
GET_DESCRIPTOR | Get USB descriptor. |
SET_DESCRIPTOR | Set USB descriptor, not supported. |
GET_CONFIGURATION | Get currently selected configuration index. |
SET_CONFIGURATION | Set device configuration. |
GET_INTERFACE | Get currently selected interface, not supported. |
SET_INTERFACE | Select interface, not supported. |
SYNCH_FRAME | Device synchronisation for isochronous configurations, not supported. |