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
bLength: uint8_t
Size of this descriptor (in bytes)
bDescriptorType: uint8_t
Descriptor type. Will have value * \ref libusb_descriptor_type::LIBUSB_DT_DEVICE LIBUSB_DT_DEVICE in this * context.
bcdUSB: uint16_t
USB specification release number in binary-coded decimal. A value of * 0x0200 indicates USB 2.0, 0x0110 indicates USB 1.1, etc.
bDeviceClass: uint8_t
USB-IF class code for the device. See \ref libusb_class_code.
bDeviceSubClass: uint8_t
USB-IF subclass code for the device, qualified by the bDeviceClass * value
bDeviceProtocol: uint8_t
USB-IF protocol code for the device, qualified by the bDeviceClass and * bDeviceSubClass values
bMaxPacketSize0: uint8_t
Maximum packet size for endpo0: c_int
idVendor: uint16_t
USB-IF vendor ID
idProduct: uint16_t
USB-IF product ID
bcdDevice: uint16_t
Device release number in binary-coded decimal
iManufacturer: uint8_t
Index of string descriptor describing manufacturer
iProduct: uint8_t
Index of string descriptor describing product
iSerialNumber: uint8_t
Index of string descriptor containing device serial number
bNumConfigurations: uint8_t
Number of possible configurations
Trait Implementations
impl Copy for libusb_device_descriptor
[src]
impl Clone for libusb_device_descriptor
[src]
fn clone(&self) -> libusb_device_descriptor
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more