LUFA Library  151115
USB_HID_StdDescriptor_HID_t Struct Reference

HID class-specific HID Descriptor (USB-IF naming conventions). More...

#include <HIDClassCommon.h>

Data Fields

uint16_t bcdHID
uint8_t bCountryCode
uint8_t bDescriptorType
uint8_t bDescriptorType2
uint8_t bLength
uint8_t bNumDescriptors
uint16_t wDescriptorLength

Detailed Description

Type define for the HID class-specific HID descriptor, to describe the HID device's specifications. Refer to the HID specification for details on the structure elements.

See also
USB_HID_Descriptor_HID_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

uint16_t USB_HID_StdDescriptor_HID_t::bcdHID

BCD encoded version that the HID descriptor and device complies to.

See also
VERSION_BCD() utility macro.
uint8_t USB_HID_StdDescriptor_HID_t::bCountryCode

Country code of the localized device, or zero if universal.

uint8_t USB_HID_StdDescriptor_HID_t::bDescriptorType

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

uint8_t USB_HID_StdDescriptor_HID_t::bDescriptorType2

Type of HID report, set to HID_DTYPE_Report.

uint8_t USB_HID_StdDescriptor_HID_t::bLength

Size of the descriptor, in bytes.

uint8_t USB_HID_StdDescriptor_HID_t::bNumDescriptors

Total number of HID report descriptors for the interface.

uint16_t USB_HID_StdDescriptor_HID_t::wDescriptorLength

Length of the associated HID report descriptor, in bytes.

The documentation for this struct was generated from the following file: