libusb_device_descriptor

A structure representing the standard USB device descriptor. This descriptor is documented in section 9.6.1 of the USB 3.0 specification. All multiple-byte fields are represented in host-endian format.

Members

Variables

bDescriptorType
ubyte bDescriptorType;

Descriptor type. Will have value * \ref libusb_descriptor_type::LIBUSB_DT_DEVICE LIBUSB_DT_DEVICE in this * context.

bDeviceClass
ubyte bDeviceClass;

USB-IF class code for the device. See \ref libusb_class_code.

bDeviceProtocol
ubyte bDeviceProtocol;

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

bDeviceSubClass
ubyte bDeviceSubClass;

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

bLength
ubyte bLength;

Size of this descriptor (in bytes)

bMaxPacketSize0
ubyte bMaxPacketSize0;

Maximum packet size for endpoint 0

bNumConfigurations
ubyte bNumConfigurations;

Number of possible configurations

bcdDevice
ushort bcdDevice;

Device release number in binary-coded decimal

bcdUSB
ushort bcdUSB;

USB specification release number in binary-coded decimal. A value of * 0x0200 indicates USB 2.0, 0x0110 indicates USB 1.1, etc.

iManufacturer
ubyte iManufacturer;

Index of string descriptor describing manufacturer

iProduct
ubyte iProduct;

Index of string descriptor describing product

iSerialNumber
ubyte iSerialNumber;

Index of string descriptor containing device serial number

idProduct
ushort idProduct;

USB-IF product ID

idVendor
ushort idVendor;

USB-IF vendor ID

Meta