EFM32 Happy Gecko Software Documentation  efm32hg-doc-5.1.2
USB_Setup_TypeDef Struct Reference

Detailed Description

USB Setup request package.

Definition at line 377 of file em_usb.h.

#include <em_usb.h>

Data Fields

union {
   struct {
      union {
         struct {
            uint8_t   Direction: 1
 
            uint8_t   Recipient: 5
 
            uint8_t   Type: 2
 
         } 
 
         uint8_t   bmRequestType
 
      } 
 
      uint8_t   bRequest
 
      uint16_t   wIndex
 
      uint16_t   wLength
 
      uint16_t   wValue
 
   } 
 
   uint32_t   dw [2]
 
}; 
 

Field Documentation

uint8_t USB_Setup_TypeDef::bmRequestType

Request characteristics.

Definition at line 391 of file em_usb.h.

Referenced by USBX_SetupCmdCb().

uint8_t USB_Setup_TypeDef::bRequest

Request code.

Definition at line 393 of file em_usb.h.

Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), MSDD_SetupCmd(), and USBX_SetupCmdCb().

uint8_t USB_Setup_TypeDef::Direction

Transfer direction of SETUP data phase.

Definition at line 389 of file em_usb.h.

Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), and MSDD_SetupCmd().

uint8_t USB_Setup_TypeDef::Recipient

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

Definition at line 387 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 388 of file em_usb.h.

Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), MSDD_SetupCmd(), and USBX_SetupCmdCb().

uint16_t USB_Setup_TypeDef::wIndex

Index or offset, varies according to request.

Definition at line 395 of file em_usb.h.

Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), MSDD_SetupCmd(), and USBX_SetupCmdCb().

uint16_t USB_Setup_TypeDef::wLength

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

Definition at line 396 of file em_usb.h.

Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), MSDD_SetupCmd(), and USBX_SetupCmdCb().

uint16_t USB_Setup_TypeDef::wValue

Varies according to request.

Definition at line 394 of file em_usb.h.

Referenced by CDC_SetupCmd(), HIDKBD_SetupCmd(), MSDD_SetupCmd(), and USBX_SetupCmdCb().


The documentation for this struct was generated from the following file: