LUFA Library  120219
USB_StdDescriptor_Configuration_Header_t Struct Reference

Standard USB Configuration Descriptor (USB-IF naming conventions). More...

#include <StdDescriptors.h>

Data Fields

uint8_t bLength
uint8_t bDescriptorType
uint16_t wTotalLength
uint8_t bNumInterfaces
uint8_t bConfigurationValue
uint8_t iConfiguration
uint8_t bmAttributes
uint8_t bMaxPower

Detailed Description

Type define for a standard Configuration Descriptor header. This structure uses the relevant standard's given element names to ensure compatibility with the standard.

See also:
USB_Descriptor_Device_t for the version of this type with non-standard LUFA specific element names.
Regardless of CPU architecture, these values should be stored as little endian.

Field Documentation

Configuration index of the current configuration.

Type of the descriptor, either a value in USB_DescriptorTypes_t or a value given by the specific class.

Size of the descriptor, in bytes.

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

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

Total number of interfaces in the configuration.

Index of a string descriptor describing the configuration.

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

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