libusb_config_descriptor

A structure representing the standard USB configuration descriptor. This descriptor is documented in section 9.6.3 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.

Members

Variables

MaxPower
ubyte MaxPower;

Maximum power consumption of the USB device from this bus in this * configuration when the device is fully opreation. Expressed in units * of 2 mA.

bConfigurationValue
ubyte bConfigurationValue;

Identifier value for this configuration

bDescriptorType
ubyte bDescriptorType;

Descriptor type. Will have value * \ref libusb_descriptor_type::LIBUSB_DT_CONFIG LIBUSB_DT_CONFIG * in this context.

bLength
ubyte bLength;

Size of this descriptor (in bytes)

bNumInterfaces
ubyte bNumInterfaces;

Number of interfaces supported by this configuration

bmAttributes
ubyte bmAttributes;

Configuration characteristics

extra
char* extra;

Extra descriptors. If libusbx encounters unknown configuration * descriptors, it will store them here, should you wish to parse them.

extra_length
int extra_length;

Length of the extra descriptors, in bytes.

iConfiguration
ubyte iConfiguration;

Index of string descriptor describing this configuration

iface
libusb_interface* iface;

Array of interfaces supported by this configuration. The length of * this array is determined by the bNumInterfaces field.

wTotalLength
ushort wTotalLength;

Total length of data returned for this configuration

Meta