Interface DeviceDescriptor

A structure representing the standard USB device descriptor

interface DeviceDescriptor {
    bcdDevice: number;
    bcdUSB: number;
    bDescriptorType: number;
    bDeviceClass: number;
    bDeviceProtocol: number;
    bDeviceSubClass: number;
    bLength: number;
    bMaxPacketSize0: number;
    bNumConfigurations: number;
    idProduct: number;
    idVendor: number;
    iManufacturer: number;
    iProduct: number;
    iSerialNumber: number;
}

Properties

bcdDevice: number

Device release number in binary-coded decimal.

bcdUSB: number

USB specification release number in binary-coded decimal.

bDescriptorType: number

Descriptor type.

bDeviceClass: number

USB-IF class code for the device.

bDeviceProtocol: number

USB-IF protocol code for the device, qualified by the bDeviceClass and bDeviceSubClass values.

bDeviceSubClass: number

USB-IF subclass code for the device, qualified by the bDeviceClass value.

bLength: number

Size of this descriptor (in bytes)

bMaxPacketSize0: number

Maximum packet size for endpoint 0.

bNumConfigurations: number

Number of possible configurations.

idProduct: number

USB-IF product ID.

idVendor: number

USB-IF vendor ID.

iManufacturer: number

Index of string descriptor describing manufacturer.

iProduct: number

Index of string descriptor describing product.

iSerialNumber: number

Index of string descriptor containing device serial number.