1# UsbControlRequestSetup 2 3 4## 概述 5 6控制传输setup包,对应USB协议中的Setup Data。 7 8**起始版本:** 9 1010 11 12**相关模块:** 13 14[USB DDK](_usb_ddk.md) 15 16**所在头文件:** [usb_ddk_types.h](usb__ddk__types_8h.md) 17 18 19## 汇总 20 21 22### 成员变量 23 24| 名称 | 描述 | 25| -------- | -------- | 26| [bmRequestType](#bmrequesttype) | 请求类型。 | 27| [bRequest](#brequest) | 具体的请求,其代表的含义不一样。 | 28| [wValue](#wvalue) | 具体的请求不同。 | 29| [wIndex](#windex) | 具体的请求不同,其代表的含义不一样,通常用来传递索引或者偏移量。 | 30| [wLength](#wlength) | 如果有数据阶段的传输,其代表传输的字节个数。 | 31 32 33## 结构体成员变量说明 34 35 36### wIndex 37 38 39``` 40uint16_t UsbControlRequestSetup::wIndex 41``` 42 43**描述:** 44 45具体的请求不同,其代表的含义不一样,通常用来传递索引或者偏移量。 46 47 48### wLength 49 50 51``` 52uint16_t UsbControlRequestSetup::wLength 53``` 54 55**描述:** 56 57如果有数据阶段的传输,其代表传输的字节个数。 58 59 60### bRequest 61 62 63``` 64uint8_t UsbControlRequestSetup::bRequest 65``` 66 67**描述:** 68 69具体的请求。 70 71 72### bmRequestType 73 74 75``` 76uint8_t UsbControlRequestSetup::bmRequestType 77``` 78 79**描述:** 80 81请求类型。 82 83 84### wValue 85 86 87``` 88uint16_t UsbControlRequestSetup::wValue 89``` 90 91**描述:** 92 93具体的请求不同,其代表的含义不一样。 94