Struct usb::libusb::libusb_device_descriptor [] [src]

#[repr(C)]
pub struct libusb_device_descriptor { pub bLength: uint8_t, pub bDescriptorType: uint8_t, pub bcdUSB: uint16_t, pub bDeviceClass: uint8_t, pub bDeviceSubClass: uint8_t, pub bDeviceProtocol: uint8_t, pub bMaxPacketSize0: uint8_t, pub idVendor: uint16_t, pub idProduct: uint16_t, pub bcdDevice: uint16_t, pub iManufacturer: uint8_t, pub iProduct: uint8_t, pub iSerialNumber: uint8_t, pub bNumConfigurations: uint8_t, }

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.

Fields

Size of this descriptor (in bytes)

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

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

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

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

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

Maximum packet size for endpo0: c_int

USB-IF vendor ID

USB-IF product ID

Device release number in binary-coded decimal

Index of string descriptor describing manufacturer

Index of string descriptor describing product

Index of string descriptor containing device serial number

Number of possible configurations

Trait Implementations

impl Copy for libusb_device_descriptor
[src]

impl Clone for libusb_device_descriptor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for libusb_device_descriptor
[src]

Formats the value using the given formatter.