Interface ConfigDescriptor

A structure representing the standard USB configuration descriptor

interface ConfigDescriptor {
    bConfigurationValue: number;
    bDescriptorType: number;
    bLength: number;
    bMaxPower: number;
    bNumInterfaces: number;
    bmAttributes: number;
    extra: Buffer;
    iConfiguration: number;
    interfaces: InterfaceDescriptor[][];
    wTotalLength: number;
}

Properties

bConfigurationValue: number

Identifier value for this configuration.

bDescriptorType: number

Descriptor type.

bLength: number

Size of this descriptor (in bytes)

bMaxPower: number

Maximum power consumption of the USB device from this bus in this configuration when the device is fully operation.

bNumInterfaces: number

Number of interfaces supported by this configuration.

bmAttributes: number

Configuration characteristics.

extra: Buffer

Extra descriptors.

iConfiguration: number

Index of string descriptor describing this configuration.

interfaces: InterfaceDescriptor[][]

Array of interfaces supported by this configuration.

wTotalLength: number

Total length of data returned for this configuration.