| USBD ROM Stack 1.0 ROM based USB device stack

Data Fields
USB_SETUP_PACKET Struct Reference
USB Core Layer

`#include <mw_usbd/mw_usbd.h>`

## Data Fields
REQUEST_TYPE | bmRequestType
uint8_t | bRequest
WORD_BYTE | wValue
WORD_BYTE | wIndex
uint16_t | wLength

## Detailed Description

USB Default Control Pipe Setup Packet

## Field Documentation

## ◆ bmRequestType

REQUEST_TYPE USB_SETUP_PACKET::bmRequestType

This bitmapped field identifies the characteristics of the specific request.

See also
  _BM_T.

## ◆ bRequest

uint8_t USB_SETUP_PACKET::bRequest

This field specifies the particular request. The Type bits in the bmRequestType field modify the meaning of this field.

See also
  USBD_REQUEST.

## ◆ wValue

WORD_BYTE USB_SETUP_PACKET::wValue

Used to pass a parameter to the device, specific to the request.

## ◆ wIndex

WORD_BYTE USB_SETUP_PACKET::wIndex

Used to pass a parameter to the device, specific to the request. The wIndex field is often used in requests to specify an endpoint or an interface.

## ◆ wLength

uint16_t USB_SETUP_PACKET::wLength

This field specifies the length of the data transferred during the second phase of the control transfer.

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

- mw_usbd/mw_usbd.h