Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
usb_setup_packet Struct Reference

USB Setup Data packet. More...

#include <zephyr/usb/usb_ch9.h>

Data Fields

union { 
   uint8_t   bmRequestType 
 Raw request type value. More...
   struct usb_req_type_field   RequestType 
 Request type bit fields. More...
}; 
 Request type union providing raw and structured access.
uint8_t bRequest
 Request code.
uint16_t wValue
 Request-specific value.
uint16_t wIndex
 Request-specific index.
uint16_t wLength
 Expected data length.

Detailed Description

USB Setup Data packet.

See Table 9-2 of the specification.

Field Documentation

◆ [union]

union { ... } usb_setup_packet

Request type union providing raw and structured access.

◆ bmRequestType

uint8_t usb_setup_packet::bmRequestType

Raw request type value.

◆ bRequest

uint8_t usb_setup_packet::bRequest

Request code.

◆ RequestType

struct usb_req_type_field usb_setup_packet::RequestType

Request type bit fields.

◆ wIndex

uint16_t usb_setup_packet::wIndex

Request-specific index.

◆ wLength

uint16_t usb_setup_packet::wLength

Expected data length.

◆ wValue

uint16_t usb_setup_packet::wValue

Request-specific value.


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