HID settings

USB Library ›› Device ›› Settings reference ››
… visits
Parent Previous Next

Select the HID profile that matches your job. The usage fields below describe HID Data. Standard profiles provide their own descriptors; a custom descriptor provides its own usages.

HID data settings with Vendor-defined usage page, input and output usages, HID version 1.11, and feature reports disabled.

The HID data defaults describe your own small messages. The usage numbers label the report; they are not extra bytes added to your data.

Setting

Meaning and generic default

USB_HID_PROFILE

0 HID Data, 1 boot keyboard, 2 boot mouse, 3 joystick, 4 consumer control, 5 custom descriptor. Default 0.

USB_HID_USAGE_PAGE

Category of HID usages, 0–65535; default $FF00, vendor-defined. Other named choices include Generic Desktop, Keyboard/Keypad, LEDs, Buttons and Consumer.

USB_HID_USAGE

Application collection usage, 0–65535; default $01.

USB_HID_INPUT_USAGE

Input-report usage, 0–65535; default $02.

USB_HID_OUTPUT_USAGE

Output-report usage, 0–65535; default $03.

USB_HID_FEATURE_USAGE

Feature-report usage when enabled, 0–65535; default $04.

USB_HID_BCD

HID specification revision, 0.00–99.99; normal default 1.11.

USB_HID_COUNTRY

HID hardware localization code, 0–35; choose the named entry. Default 0, not localized. Separate from string language and PC keyboard layout.

USB_HID_FEATURE_SIZE

HID Data/custom Feature report size, 0–64; default 0, disabled. This is separate from IN and OUT reports.

USB_HID_CUSTOM_DATA

Profile 5 descriptor bytes entered as hexadecimal. The starter describes 64-byte input/output reports. Generated code supplies the descriptor macro.

USB_HID_CUSTOM_LEN

Calculated descriptor byte count, excluding assembler padding; starter 27. Recalculated from the entered bytes.

See also

Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor