USB Configuration Descriptor.
Public Attributes#
Size of this descriptor in bytes
Constant CONFIGURATION Descriptor Type
Total length of data returned for this configuration.
Number of interfaces supported by this configuration
Value to use as an argument to the SetConfiguration request to select this configuration.
Index of string descriptor describing this configuration.
Configuration characteristics.
Maximum power consumption of the USB device, unit is 2mA per LSB
Public Attribute Documentation#
bDescriptorType#
uint8_t USB_ConfigurationDescriptor_TypeDef::bDescriptorType
Constant CONFIGURATION Descriptor Type
wTotalLength#
uint16_t USB_ConfigurationDescriptor_TypeDef::wTotalLength
Total length of data returned for this configuration.
Includes the combined length of all descriptors (configuration, interface, endpoint, and class- or vendor-specific) returned for this configuration.
bNumInterfaces#
uint8_t USB_ConfigurationDescriptor_TypeDef::bNumInterfaces
Number of interfaces supported by this configuration
bConfigurationValue#
uint8_t USB_ConfigurationDescriptor_TypeDef::bConfigurationValue
Value to use as an argument to the SetConfiguration request to select this configuration.
iConfiguration#
uint8_t USB_ConfigurationDescriptor_TypeDef::iConfiguration
Index of string descriptor describing this configuration.
bmAttributes#
uint8_t USB_ConfigurationDescriptor_TypeDef::bmAttributes
Configuration characteristics.
D7: Reserved (set to one) D6: Self-powered D5: Remote Wakeup D4...0: Reserved (reset to zero)
bMaxPower#
uint8_t USB_ConfigurationDescriptor_TypeDef::bMaxPower
Maximum power consumption of the USB device, unit is 2mA per LSB