Lightweight USB stack  1.0
usb_config_descriptor Struct Reference

USB device configuration descriptor. More...

#include <usb_std.h>

Data Fields

uint8_t bLength
 Size of the descriptor, in bytes.
 
uint8_t bDescriptorType
 Configuration descriptor.
 
uint16_t wTotalLength
 Size of the configuration descriptor header, and all sub descriptors inside the configuration.
 
uint8_t bNumInterfaces
 Total number of interfaces in the configuration.
 
uint8_t bConfigurationValue
 Configuration index of the current configuration.
 
uint8_t iConfiguration
 Index of a string descriptor describing the configuration.
 
uint8_t bmAttributes
 Configuration attributes. More...
 
uint8_t bMaxPower
 Maximum power consumption of the device. USB_CFG_POWER_MA() macro.
 

Detailed Description

USB device configuration descriptor.

The configuration descriptor describes information about a specific device configuration. The descriptor contains a bConfigurationValue field with a value that, when used as a parameter to the SetConfiguration() request, causes the device to assume the described configuration.

Definition at line 376 of file usb_std.h.

Field Documentation

◆ bmAttributes

uint8_t usb_config_descriptor::bmAttributes

Configuration attributes.

Comprised of a mask of USB_CONFIG_ATTR_ masks. On all devices, this should include USB_CONFIG_ATTR_RESERVED at a minimum.

Definition at line 384 of file usb_std.h.


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