LUFA Library  120219
USB_Descriptor_Configuration_Header_t Struct Reference

Standard USB Configuration Descriptor (LUFA naming conventions). More...

#include <StdDescriptors.h>

Data Fields

USB_Descriptor_Header_t Header
uint16_t TotalConfigurationSize
uint8_t TotalInterfaces
uint8_t ConfigurationNumber
uint8_t ConfigurationStrIndex
uint8_t ConfigAttributes
uint8_t MaxPowerConsumption

Detailed Description

Type define for a standard Configuration Descriptor header. This structure uses LUFA-specific element names to make each element's purpose clearer.

See also:
USB_StdDescriptor_Configuration_Header_t for the version of this type with standard element names.
Note:
Regardless of CPU architecture, these values should be stored as little endian.

Field Documentation

Configuration attributes, comprised of a mask of USB_CONFIG_ATTR_* masks. On all devices, this should include USB_CONFIG_ATTR_RESERVED at a minimum.

Configuration index of the current configuration.

Index of a string descriptor describing the configuration.

Descriptor header, including type and size.

Maximum power consumption of the device while in the current configuration, calculated by the USB_CONFIG_POWER_MA() macro.

Size of the configuration descriptor header, and all sub descriptors inside the configuration.

Total number of interfaces in the configuration.


The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines