| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Enumerations
StdRequestType.h File Reference
`#include "../../../Common/Common.h"`
`#include "USBMode.h"`

Go to the source code of this file.

## Macros
#define | CONTROL_REQTYPE_DIRECTION 0x80
#define | CONTROL_REQTYPE_TYPE 0x60
#define | CONTROL_REQTYPE_RECIPIENT 0x1F
Control Request Data Direction Masks
#define | REQDIR_HOSTTODEVICE (0 << 7)
#define | REQDIR_DEVICETOHOST (1 << 7)
Control Request Type Masks
#define | REQTYPE_STANDARD (0 << 5)
#define | REQTYPE_CLASS (1 << 5)
#define | REQTYPE_VENDOR (2 << 5)
Control Request Recipient Masks
#define | REQREC_DEVICE (0 << 0)
#define | REQREC_INTERFACE (1 << 0)
#define | REQREC_ENDPOINT (2 << 0)
#define | REQREC_OTHER (3 << 0)

## Typedefs
struct {
uint8_t bmRequestType
uint8_t bRequest
uint16_t wValue
uint16_t wIndex
uint16_t wLength
} | USB_Request_Header_t

## 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 }
enum | USB_Feature_Selectors_t { FEATURE_SEL_EndpointHalt = 0x00, FEATURE_SEL_DeviceRemoteWakeup = 0x01, FEATURE_SEL_TestMode = 0x02 }

## Variable Documentation

uint8_t bmRequestType

Type of the request.

Definition at line 160 of file StdRequestType.h.

uint8_t bRequest

Request command code.

Definition at line 161 of file StdRequestType.h.

uint16_t wIndex

wIndex parameter of the request.

Definition at line 163 of file StdRequestType.h.

uint16_t wLength

Length of the data to transfer in bytes.

Definition at line 164 of file StdRequestType.h.

uint16_t wValue

wValue parameter of the request.

Definition at line 162 of file StdRequestType.h.