libusb-1.0
Public Attributes | List of all members
libusb_config_descriptor Struct Reference

#include <libusb.h>

Collaboration diagram for libusb_config_descriptor:
Collaboration graph
[legend]

Public Attributes

uint8_t bLength
 
uint8_t bDescriptorType
 
uint16_t wTotalLength
 
uint8_t bNumInterfaces
 
uint8_t bConfigurationValue
 
uint8_t iConfiguration
 
uint8_t bmAttributes
 
uint8_t MaxPower
 
const struct libusb_interfaceinterface
 
const unsigned char * extra
 
int extra_length
 

Detailed Description

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.

Member Data Documentation

◆ bConfigurationValue

uint8_t libusb_config_descriptor::bConfigurationValue

Identifier value for this configuration

◆ bDescriptorType

uint8_t libusb_config_descriptor::bDescriptorType

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

◆ bLength

uint8_t libusb_config_descriptor::bLength

Size of this descriptor (in bytes)

◆ bmAttributes

uint8_t libusb_config_descriptor::bmAttributes

Configuration characteristics

◆ bNumInterfaces

uint8_t libusb_config_descriptor::bNumInterfaces

Number of interfaces supported by this configuration

◆ extra

const unsigned char* libusb_config_descriptor::extra

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

◆ extra_length

int libusb_config_descriptor::extra_length

Length of the extra descriptors, in bytes. Must be non-negative.

◆ iConfiguration

uint8_t libusb_config_descriptor::iConfiguration

Index of string descriptor describing this configuration

◆ interface

const struct libusb_interface* libusb_config_descriptor::interface

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

◆ MaxPower

uint8_t libusb_config_descriptor::MaxPower

Maximum power consumption of the USB device from this bus in this configuration when the device is fully operation. Expressed in units of 2 mA when the device is operating in high-speed mode and in units of 8 mA when the device is operating in super-speed mode.

◆ wTotalLength

uint16_t libusb_config_descriptor::wTotalLength

Total length of data returned for this configuration


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