UsbDeviceDescriptor
typedef struct UsbDeviceDescriptor {...} __attribute__((aligned(8))) UsbDeviceDescriptor
Overview
Defines standard device descriptors, which correspond to Standard Device Descriptor in the USB protocol.
Since: 10
Related module: UsbDdk
Header file: usb_ddk_types.h
Summary
Member Variables
| Name | Description |
|---|---|
| uint8_t bLength | Size of the descriptor, in bytes. |
| uint8_t bDescriptorType | Descriptor type. |
| uint16_t bcdUSB | Version of the USB protocol. |
| uint8_t bDeviceClass | Device class code allocated by the USB-IF. |
| uint8_t bDeviceSubClass | Device subclass code allocated by the USB-IF. The value is limited by that of bDeviceClass. |
| uint8_t bDeviceProtocol | Device protocol code allocated by the USB-IF. The value is limited by that of bDeviceClass and bDeviceSubClass. |
| uint8_t bMaxPacketSize0 | Maximum packet size of endpoint 0. Only values 8, 16, 32, and 64 are valid. |
| uint16_t idVendor | Vendor ID allocated by USB-IF. |
| uint16_t idProduct | Product ID allocated by the vendor. |
| uint16_t bcdDevice | Device version number. |
| uint8_t iManufacturer | Index of the string descriptor that describes the vendor. |
| uint8_t iProduct | Index of the string descriptor that describes the product. |
| uint8_t iSerialNumber | Index of the string descriptor that describes the device SN. |
| uint8_t bNumConfigurations | Configuration quantity. |