Interface InterfaceDescriptor

A structure representing the standard USB interface descriptor

interface InterfaceDescriptor {
    bAlternateSetting: number;
    bDescriptorType: number;
    bInterfaceClass: number;
    bInterfaceNumber: number;
    bInterfaceProtocol: number;
    bInterfaceSubClass: number;
    bLength: number;
    bNumEndpoints: number;
    endpoints: EndpointDescriptor[];
    extra: Buffer;
    iInterface: number;
}

Properties

bAlternateSetting: number

Value used to select this alternate setting for this interface.

bDescriptorType: number

Descriptor type.

bInterfaceClass: number

USB-IF class code for this interface.

bInterfaceNumber: number

Number of this interface.

bInterfaceProtocol: number

USB-IF protocol code for this interface, qualified by the bInterfaceClass and bInterfaceSubClass values.

bInterfaceSubClass: number

USB-IF subclass code for this interface, qualified by the bInterfaceClass value.

bLength: number

Size of this descriptor (in bytes)

bNumEndpoints: number

Number of endpoints used by this interface (excluding the control endpoint).

endpoints: EndpointDescriptor[]

Array of endpoint descriptors.

extra: Buffer

Extra descriptors.

iInterface: number

Index of string descriptor describing this interface.