LMS 2012
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
libusb_config_descriptor Struct Reference

#include <libusb.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 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 2.0 specification. All multiple-byte fields are represented in host-endian format.

Definition at line 469 of file libusb.h.

Field Documentation

uint8_t bConfigurationValue

Identifier value for this configuration

Definition at line 485 of file libusb.h.

uint8_t bDescriptorType

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

Definition at line 476 of file libusb.h.

uint8_t bLength

Size of this descriptor (in bytes)

Definition at line 471 of file libusb.h.

uint8_t bmAttributes

Configuration characteristics

Definition at line 491 of file libusb.h.

uint8_t bNumInterfaces

Number of interfaces supported by this configuration

Definition at line 482 of file libusb.h.

const unsigned char* extra

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

Definition at line 504 of file libusb.h.

int extra_length

Length of the extra descriptors, in bytes.

Definition at line 507 of file libusb.h.

uint8_t iConfiguration

Index of string descriptor describing this configuration

Definition at line 488 of file libusb.h.

const struct libusb_interface* interface

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

Definition at line 500 of file libusb.h.

uint8_t 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.

Definition at line 496 of file libusb.h.

uint16_t wTotalLength

Total length of data returned for this configuration

Definition at line 479 of file libusb.h.


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