1# UsbConfigDescriptor
2
3
4## Overview
5
6Defines standard configuration descriptors, which correspond to **Standard Configuration Descriptor** in the USB protocol.
7
8**Since**
9
1010
11
12**Related Modules**
13
14[USB DDK](_usb_ddk.md)
15
16
17## Summary
18
19
20### Member Variables
21
22| Name| Description|
23| -------- | -------- |
24| [bLength](#blength) | Size of the descriptor, in bytes.|
25| [bDescriptorType](#bdescriptortype) | Descriptor type.|
26| [wTotalLength](#wtotallength) | Total length of the configuration descriptor, including the configuration, interface, endpoint, and class- or vendor-specific descriptors.|
27| [bNumInterfaces](#bnuminterfaces) | Number of interfaces supported by the configuration.|
28| [bConfigurationValue](#bconfigurationvalue) | Configuration index, which is used to select the configuration.|
29| [iConfiguration](#iconfiguration) | Index of the string descriptor that describes the configuration.|
30| [bmAttributes](#bmattributes) | Configuration attributes, including the power mode and remote wakeup.|
31| [bMaxPower](#bmaxpower) | Maximum power consumption of the bus-powered USB device, in 2 mA.|
32
33
34## Member Variable Description
35
36
37### bConfigurationValue
38
39
40```
41uint8_t UsbConfigDescriptor::bConfigurationValue
42```
43
44**Description**
45
46Configuration index, which is used to select the configuration.
47
48
49### bDescriptorType
50
51
52```
53uint8_t UsbConfigDescriptor::bDescriptorType
54```
55
56**Description**
57
58Descriptor type.
59
60
61### bLength
62
63
64```
65uint8_t UsbConfigDescriptor::bLength
66```
67
68**Description**
69
70Size of the descriptor, in bytes.
71
72
73### bmAttributes
74
75
76```
77uint8_t UsbConfigDescriptor::bmAttributes
78```
79
80**Description**
81
82Configuration attributes, including the power mode and remote wakeup.
83
84
85### bMaxPower
86
87
88```
89uint8_t UsbConfigDescriptor::bMaxPower
90```
91
92**Description**
93
94Maximum power consumption of the bus-powered USB device, in 2 mA.
95
96
97### bNumInterfaces
98
99
100```
101uint8_t UsbConfigDescriptor::bNumInterfaces
102```
103
104**Description**
105
106Number of interfaces supported by the configuration.
107
108
109### iConfiguration
110
111
112```
113uint8_t UsbConfigDescriptor::iConfiguration
114```
115
116**Description**
117
118Index of the string descriptor that describes the configuration.
119
120
121### wTotalLength
122
123
124```
125uint16_t UsbConfigDescriptor::wTotalLength
126```
127
128**Description**
129
130Total length of the configuration descriptor, including the configuration, interface, endpoint, and class- or vendor-specific descriptors.
131