• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# UsbConfigDescriptor
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
11Defines standard configuration descriptors, which correspond to **Standard Configuration Descriptor** 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 bLength | Size of the descriptor, in bytes.|
26| uint8_t bDescriptorType | Descriptor type.|
27| uint16_t wTotalLength | Total length of the configuration descriptor, including the configuration, interface, endpoint, and class- or vendor-specific descriptors.|
28| uint8_t bNumInterfaces | Number of interfaces supported by the configuration.|
29| uint8_t bConfigurationValue | Configuration index, which is used to select the configuration.|
30| uint8_t iConfiguration | Index of the string descriptor that describes the configuration.|
31| uint8_t bmAttributes | Configuration attributes, including the power mode and remote wakeup.|
32| uint8_t bMaxPower | Maximum power consumption of the bus-powered USB device, in 2 mA.|
33