Barrelfish
Data Fields
usb_config_descriptor Struct Reference

Data Fields

uint8_t bLength
 length of the descriptor in bytes
 
uint8_t bDescriptorType
 always USB_DESCRIPTOR_TYPE_CONFIG
 
uint16_t wTotalLength
 total length of this descritpor
 
uint8_t bNumInterfaces
 the number of interfaces in this config
 
uint8_t bConfigurationValue
 parameter for SetConfiguration()
 
uint8_t iConfiguration
 string index of this configuration
 
uint8_t bmAttributes
 configuration characteristics
 
uint8_t bMaxPower
 the maximum power consumption (2mA steps)
 

Detailed Description


USB Configuration Descriptor (USB Specification, Rev 2.0, Section 9.6.3)

This descriptor contains information about a specific device configuration. The bConfigurationValue is used as a parameter to SetConfiguration().

wTotalLength: the size of the entire configuration: config descriptor + interfaces + endpoints Each USB device has one or more configuration descriptors


The documentation for this struct was generated from the following file: