LUFA Library  120219
USB_StdDescriptor_Device_t Struct Reference

Standard USB Device Descriptor (USB-IF naming conventions). More...

#include <StdDescriptors.h>

Data Fields

uint8_t bLength
uint8_t bDescriptorType
uint16_t bcdUSB
uint8_t bDeviceClass
uint8_t bDeviceSubClass
uint8_t bDeviceProtocol
uint8_t bMaxPacketSize0
uint16_t idVendor
uint16_t idProduct
uint16_t bcdDevice
uint8_t iManufacturer
uint8_t iProduct
uint8_t iSerialNumber
uint8_t bNumConfigurations

Detailed Description

Type define for a standard Device Descriptor. This structure uses the relevant standard's given element names to ensure compatibility with the standard.

See also:
USB_Descriptor_Device_t for the version of this type with non-standard LUFA specific element names.
Regardless of CPU architecture, these values should be stored as little endian.

Field Documentation

Product release (version) number.

BCD of the supported USB specification.

Type of the descriptor, either a value in USB_DescriptorTypes_t or a value given by the specific class.

USB device class.

USB device protocol.

USB device subclass.

Size of the descriptor, in bytes.

Size of the control (address 0) endpoint's bank in bytes.

Total number of configurations supported by the device.

Unique product ID for the USB product.

Vendor ID for the USB product.

String index for the manufacturer's name. The host will request this string via a separate control request for the string descriptor.

If no string supplied, use NO_DESCRIPTOR.

String index for the product name/details.

See also:
ManufacturerStrIndex structure entry.

String index for the product's globally unique hexadecimal serial number, in uppercase Unicode ASCII.

On some microcontroller models, there is an embedded serial number in the chip which can be used for the device serial number. To use this serial number, set this to USE_INTERNAL_SERIAL. On unsupported devices, this will evaluate to 0 and will cause the host to generate a pseudo-unique value for the device upon insertion.
See also:
ManufacturerStrIndex structure entry.

The documentation for this struct was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines