UsbControlRequestSetup

typedef struct UsbControlRequestSetup {...} __attribute__((aligned(8))) UsbControlRequestSetup

Overview

Setup data for control transfer. It corresponds to Setup Data in the USB protocol.

Since: 10

Related module: UsbDdk

Header file: usb_ddk_types.h

Summary

Member Variables

Name Description
uint8_t bmRequestType Request type.
uint8_t bRequest Specific request.
uint16_t wValue Value corresponding to wValue in the USB protocol. Its meaning varies according to the request.
uint16_t wIndex Index corresponding to wIndex in the USB protocol. It is usually used to pass the index or offset. Its meaning varies according to the request.
uint16_t wLength Data length corresponding to wLength in the USB protocol. If data is transferred, this field indicates the number of transferred bytes.