usbps: XUsbPs_SetupData Struct Reference

| usbps Xilinx SDK Drivers API Documentation

- Overview
- Data Structures
- APIs
- File List
- Examples

- Data Structures
- Data Fields

Data Fields
XUsbPs_SetupData Struct Reference

The following structure is used by the user to receive Setup Data from an endpoint. More...

## Data Fields
u8 | bmRequestType
| bmRequestType in setup data More...
u8 | bRequest
| bRequest in setup data More...
u16 | wValue
| wValue in setup data More...
u16 | wIndex
| wIndex in setup data More...
u16 | wLength
| wLength in setup data More...

## Detailed Description

The following structure is used by the user to receive Setup Data from an endpoint.

Using this structure simplifies the process of interpreting the setup data in the core's data fields.

The naming scheme for the members of this structure is different from the naming scheme found elsewhere in the code. The members of this structure are defined in the Chapter 9 USB reference guide. Using this naming scheme makes it easier for people familiar with the standard to read the code.

## Field Documentation

u8 XUsbPs_SetupData::bmRequestType

bmRequestType in setup data

Referenced by XUsbPs_Ch9HandleSetupPacket(), and XUsbPs_EpGetSetupData().

u8 XUsbPs_SetupData::bRequest

bRequest in setup data

Referenced by XUsbPs_Ch9HandleSetupPacket(), XUsbPs_ClassReq(), and XUsbPs_EpGetSetupData().

u16 XUsbPs_SetupData::wIndex

wIndex in setup data

Referenced by XUsbPs_EpGetSetupData().

u16 XUsbPs_SetupData::wLength

wLength in setup data

Referenced by XUsbPs_EpGetSetupData().

u16 XUsbPs_SetupData::wValue

wValue in setup data

Referenced by XUsbPs_EpGetSetupData().