UsbDeviceDescriptor

Overview

Defines standard device descriptors, which correspond to Standard Device Descriptor in the USB protocol.

Since

10

Related Modules

UsbDdk

Summary

Member Variables

Name Description
bLength Size of the descriptor, in bytes.
bDescriptorType Descriptor type.
bcdUSB USB protocol release number.
bDeviceClass Interface class code allocated by the USB-IF.
bDeviceSubClass Device subclass code allocated by USB-IF. The value is limited by that of bDeviceClass.
bDeviceProtocol Protocol code allocated by USB-IF. The value is limited by that of bDeviceClass and bDeviceSubClass.
bMaxPacketSize0 Maximum packet size of endpoint 0. Only values 8, 16, 32, and 64 are valid.
idVendor Vendor ID allocated by USB-IF.
idProduct Product ID allocated by the vendor.
bcdDevice Device release number.
iManufacturer Index of the string descriptor that describes the vendor.
iProduct Index of the string descriptor that describes the product.
iSerialNumber Index of the string descriptor that describes the device SN.
bNumConfigurations Configuration quantity.

Member Variable Description

bcdDevice

uint16_t UsbDeviceDescriptor::bcdDevice

Description

Device release number.

bcdUSB

uint16_t UsbDeviceDescriptor::bcdUSB

Description

USB protocol release number.

bDescriptorType

uint8_t UsbDeviceDescriptor::bDescriptorType

Description

Descriptor type.

bDeviceClass

uint8_t UsbDeviceDescriptor::bDeviceClass

Description

Interface class code allocated by the USB-IF.

bDeviceProtocol

uint8_t UsbDeviceDescriptor::bDeviceProtocol

Description

Protocol code allocated by USB-IF. The value is limited by that of bDeviceClass and bDeviceSubClass.

bDeviceSubClass

uint8_t UsbDeviceDescriptor::bDeviceSubClass

Description

Device subclass code allocated by USB-IF. The value is limited by that of bDeviceClass.

bLength

uint8_t UsbDeviceDescriptor::bLength

Description

Size of the descriptor, in bytes.

bMaxPacketSize0

uint8_t UsbDeviceDescriptor::bMaxPacketSize0

Description

Maximum packet size of endpoint 0. Only values 8, 16, 32, and 64 are valid.

bNumConfigurations

uint8_t UsbDeviceDescriptor::bNumConfigurations

Description

Configuration quantity.

idProduct

uint16_t UsbDeviceDescriptor::idProduct

Description

Product ID allocated by the vendor.

idVendor

uint16_t UsbDeviceDescriptor::idVendor

Description

Vendor ID allocated by USB-IF.

iManufacturer

uint8_t UsbDeviceDescriptor::iManufacturer

Description

Index of the string descriptor that describes the vendor.

iProduct

uint8_t UsbDeviceDescriptor::iProduct

Description

Index of the string descriptor that describes the product.

iSerialNumber

uint8_t UsbDeviceDescriptor::iSerialNumber

Description

Index of the string descriptor that describes the device SN.