Struct usb_config_descriptor
ClassList > usb_config_descriptor
USB device configuration descriptor. More...
#include <usb_std.h>
Public Attributes
Type | Name |
---|---|
uint8_t | bConfigurationValue Configuration index of the current configuration. |
uint8_t | bDescriptorType Configuration descriptor. |
uint8_t | bLength Size of the descriptor, in bytes. |
uint8_t | bMaxPower Maximum power consumption of the device. USB_CFG_POWER_MA() macro. |
uint8_t | bNumInterfaces Total number of interfaces in the configuration. |
uint8_t | bmAttributes Configuration attributes. |
uint8_t | iConfiguration Index of a string descriptor describing the configuration. |
uint16_t | wTotalLength Size of the configuration descriptor header, and all sub descriptors inside the configuration. |
Detailed Description
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.
Public Attributes Documentation
variable bConfigurationValue
uint8_t usb_config_descriptor::bConfigurationValue;
variable bDescriptorType
uint8_t usb_config_descriptor::bDescriptorType;
variable bLength
uint8_t usb_config_descriptor::bLength;
variable bMaxPower
uint8_t usb_config_descriptor::bMaxPower;
variable bNumInterfaces
uint8_t usb_config_descriptor::bNumInterfaces;
variable bmAttributes
Configuration attributes.
uint8_t usb_config_descriptor::bmAttributes;
Comprised of a mask of USB_CONFIG_ATTR_
masks. On all devices, this should include USB_CONFIG_ATTR_RESERVED at a minimum.
variable iConfiguration
uint8_t usb_config_descriptor::iConfiguration;
variable wTotalLength
uint16_t usb_config_descriptor::wTotalLength;
The documentation for this class was generated from the following file fw/rbcx-coprocessor/lib/libusb_stm32/include/usb_std.h