Interface EndpointDescriptor

A structure representing the standard USB endpoint descriptor

interface EndpointDescriptor {
    bDescriptorType: number;
    bEndpointAddress: number;
    bInterval: number;
    bLength: number;
    bRefresh: number;
    bSynchAddress: number;
    bmAttributes: number;
    extra: Buffer;
    wMaxPacketSize: number;
}

Properties

bDescriptorType: number

Descriptor type.

bEndpointAddress: number

The address of the endpoint described by this descriptor.

bInterval: number

Interval for polling endpoint for data transfers.

bLength: number

Size of this descriptor (in bytes)

bRefresh: number

For audio devices only: the rate at which synchronization feedback is provided.

bSynchAddress: number

For audio devices only: the address if the synch endpoint.

bmAttributes: number

Attributes which apply to the endpoint when it is configured using the bConfigurationValue.

extra: Buffer

Extra descriptors.

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

wMaxPacketSize: number

Maximum packet size this endpoint is capable of sending/receiving.