USB control endpoint request definitions. More...
#include <stdint.h>
Data Structures | |
struct | USB_Request_Header_t |
Standard USB Control Request. More... | |
Defines | |
#define | CONTROL_REQTYPE_DIRECTION 0x80 |
#define | CONTROL_REQTYPE_TYPE 0x60 |
#define | CONTROL_REQTYPE_RECIPIENT 0x1F |
#define | REQDIR_HOSTTODEVICE (0 << 7) |
#define | REQDIR_DEVICETOHOST (1 << 7) |
#define | REQTYPE_STANDARD (0 << 5) |
#define | REQTYPE_CLASS (1 << 5) |
#define | REQTYPE_VENDOR (2 << 5) |
#define | REQREC_DEVICE (0 << 0) |
#define | REQREC_INTERFACE (1 << 0) |
#define | REQREC_ENDPOINT (2 << 0) |
#define | REQREC_OTHER (3 << 0) |
#define | FEATURE_ENDPOINT_HALT 0x00 |
#define | FEATURE_REMOTE_WAKEUP 0x01 |
Enumerations | |
enum | USB_Control_Request_t { REQ_GetStatus = 0, REQ_ClearFeature = 1, REQ_SetFeature = 3, REQ_SetAddress = 5, REQ_GetDescriptor = 6, REQ_SetDescriptor = 7, REQ_GetConfiguration = 8, REQ_SetConfiguration = 9, REQ_GetInterface = 10, REQ_SetInterface = 11, REQ_SynchFrame = 12 } |
This file contains structures and macros for the easy creation and parsing of standard USB control requests.