LUFA Library  120219
USB_Descriptor_Device_t Struct Reference

Standard USB Device Descriptor (LUFA naming conventions). More...

#include <StdDescriptors.h>

Data Fields

USB_Descriptor_Header_t Header
uint16_t USBSpecification
uint8_t Class
uint8_t SubClass
uint8_t Protocol
uint8_t Endpoint0Size
uint16_t VendorID
uint16_t ProductID
uint16_t ReleaseNumber
uint8_t ManufacturerStrIndex
uint8_t ProductStrIndex
uint8_t SerialNumStrIndex
uint8_t NumberOfConfigurations

Detailed Description

Type define for a standard Device Descriptor. This structure uses LUFA-specific element names to make each element's purpose clearer.

See also:
USB_StdDescriptor_Device_t for the version of this type with standard element names.
Note:
Regardless of CPU architecture, these values should be stored as little endian.

Field Documentation

USB device class.

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

Descriptor header, including type and size.

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

Note:
If no string supplied, use NO_DESCRIPTOR.

Total number of configurations supported by the device.

Unique product ID for the USB product.

String index for the product name/details.

See also:
ManufacturerStrIndex structure entry.

USB device protocol.

Product release (version) number.

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

Note:
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.

USB device subclass.

BCD of the supported USB specification.

Vendor ID for the USB product.


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