• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# UsbControlRequestSetup
2<!--Kit: Driver Development Kit-->
3<!--Subsystem: Driver-->
4<!--Owner: @lixinsheng2-->
5<!--Designer: @w00373942-->
6<!--Tester: @dong-dongzhen-->
7<!--Adviser: @w_Machine_cc-->
8
9## Overview
10
11Setup data for control transfer. It corresponds to <b>Setup Data</b> in the USB protocol.
12
13**Since**: 10
14
15**Related module**: [UsbDDK](capi-usbddk.md)
16
17**Header file:** [usb_ddk_types.h](capi-usb-ddk-types-h.md)
18
19## Summary
20
21### Member Variables
22
23| Name| Description|
24| -- | -- |
25| uint8_t bmRequestType | Request type.|
26| uint8_t bRequest | Specific request.|
27| uint16_t wValue | Value corresponding to **wValue** in the USB protocol. Its meaning varies according to the request.|
28| 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. |
29| uint16_t wLength | Data length corresponding to **wLength** in the USB protocol. If data is transferred, this field indicates the number of transferred bytes.|
30