#[repr(C, packed)]
pub struct usb_device_descriptor {
Show 14 fields pub bLength: u8, pub bDescriptorType: u8, pub bcdUSB: u16, pub bDeviceClass: u8, pub bDeviceSubClass: u8, pub bDeviceProtocol: u8, pub bMaxPacketSize0: u8, pub idVendor: u16, pub idProduct: u16, pub bcdDevice: u16, pub iManufacturer: u8, pub iProduct: u8, pub iSerialNumber: u8, pub bNumConfigurations: u8,
}
Expand description

\brief Represents a USB device descriptor \details A device descriptor describes general information about a USB device. It includes information that applies globally to the device and all of the device’s configurations. A USB device has only one device descriptor. A high-speed capable device that has different device information for full-speed and high-speed must also have a \ref usb_qualifier_descriptor.

Fields§

§bLength: u8

<\brief Size of the descriptor, in bytes.

§bDescriptorType: u8

<\brief \ref USB_DTYPE_DEVICE Device descriptor.

§bcdUSB: u16

<\brief BCD of the supported USB specification.

§bDeviceClass: u8

<\brief USB device class.

§bDeviceSubClass: u8

<\brief USB device subclass.

§bDeviceProtocol: u8

<\brief USB device protocol.

§bMaxPacketSize0: u8

<\brief Size of the control endpoint’s bank in bytes.

§idVendor: u16

<\brief Vendor ID for the USB product.

§idProduct: u16

<\brief Unique product ID for the USB product.

§bcdDevice: u16

<\brief Product release (version) number.

§iManufacturer: u8

<\brief String index for the manufacturer’s name.

§iProduct: u8

<\brief String index for the product name/details.

§iSerialNumber: u8

<\brief String index for the product serial number.

§bNumConfigurations: u8

<\brief Total number of configurations supported by the device.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.