USB_Setup_TypeDef Struct Reference

USB Setup request package.

#include <em_usb.h>

Data Fields

union {
struct {
union {
struct {
uint8_t Recipient : 5
Request recipient (device, interface, endpoint or other).
uint8_t Type : 2
Request type (standard, class or vendor).
uint8_t Direction : 1
Transfer direction of SETUP data phase.
}
uint8_t bmRequestType
Request characteristics.
}
uint8_t bRequest
Request code.
uint16_t wValue
Varies according to request.
uint16_t wIndex
Index or offset, varies according to request.
uint16_t wLength
Number of bytes to transfer if there is a data stage.
}
uint32_t dw [2]
};

USB Setup request package.

Field Documentation

Recipient

uint8_t USB_Setup_TypeDef::Recipient

Request recipient (device, interface, endpoint or other).

Type

uint8_t USB_Setup_TypeDef::Type

Request type (standard, class or vendor).


Direction

uint8_t USB_Setup_TypeDef::Direction

Transfer direction of SETUP data phase.


bmRequestType

uint8_t USB_Setup_TypeDef::bmRequestType

Request characteristics.


bRequest

uint8_t USB_Setup_TypeDef::bRequest

Request code.


wValue

uint16_t USB_Setup_TypeDef::wValue

Varies according to request.


wIndex

uint16_t USB_Setup_TypeDef::wIndex

Index or offset, varies according to request.


wLength

uint16_t USB_Setup_TypeDef::wLength

Number of bytes to transfer if there is a data stage.