EFM32 Leopard Gecko Software Documentation
efm32lg-doc-4.2.1
|
USB Setup request package. More...
#include <em_usb.h>
Data Fields | |
union { | |
struct { | |
union { | |
struct { | |
uint8_t Recipient: 5 | |
uint8_t Type: 2 | |
uint8_t Direction: 1 | |
} | |
uint8_t bmRequestType | |
} | |
uint8_t bRequest | |
uint16_t wValue | |
uint16_t wIndex | |
uint16_t wLength | |
} | |
uint32_t dw [2] | |
}; | |
uint8_t USB_Setup_TypeDef::Recipient |
Request recipient (device, interface, endpoint or other).
Definition at line 385 of file em_usb.h.
Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), and MSDD_SetupCmd().
uint8_t USB_Setup_TypeDef::Type |
Request type (standard, class or vendor).
Definition at line 386 of file em_usb.h.
Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), and MSDD_SetupCmd().
uint8_t USB_Setup_TypeDef::Direction |
Transfer direction of SETUP data phase.
Definition at line 387 of file em_usb.h.
Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), and MSDD_SetupCmd().
uint8_t USB_Setup_TypeDef::bmRequestType |
uint8_t USB_Setup_TypeDef::bRequest |
Request code.
Definition at line 391 of file em_usb.h.
Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), MSDD_SetupCmd(), and USBH_ControlMsg().
uint16_t USB_Setup_TypeDef::wValue |
Varies according to request.
Definition at line 392 of file em_usb.h.
Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), MSDD_SetupCmd(), and USBH_ControlMsg().
uint16_t USB_Setup_TypeDef::wIndex |
Index or offset, varies according to request.
Definition at line 393 of file em_usb.h.
Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), MSDD_SetupCmd(), and USBH_ControlMsg().
uint16_t USB_Setup_TypeDef::wLength |
Number of bytes to transfer if there is a data stage.
Definition at line 394 of file em_usb.h.
Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), MSDD_SetupCmd(), and USBH_ControlMsg().