embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module composite

Module composite 

Source
Expand description

Composite HID multi-report descriptor and report ID wrappers.

Allows combining Keyboard, Mouse, Consumer Control, and Gamepad reports on a single HID endpoint using distinct Report IDs.

Structs§

IdConsumerReport
Composite report for Consumer Control, prefixed with REPORT_ID_CONSUMER (3 bytes).
IdGamepadReport
Composite report for a Gamepad, prefixed with REPORT_ID_GAMEPAD (8 bytes).
IdKeyboardReport
Composite report for a Keyboard, prefixed with REPORT_ID_KEYBOARD (9 bytes).
IdMouseReport
Composite report for a Mouse, prefixed with REPORT_ID_MOUSE (5 bytes).

Constants§

COMPOSITE_DESCRIPTOR
Standard composite HID report descriptor defining Keyboard, Mouse, Consumer Control, and Gamepad under a single interface using Report IDs 1, 2, 3, and 4.
REPORT_ID_CONSUMER
Report ID for the Consumer Control (media keys) report within COMPOSITE_DESCRIPTOR.
REPORT_ID_GAMEPAD
Report ID for the Gamepad report within COMPOSITE_DESCRIPTOR.
REPORT_ID_KEYBOARD
Report ID for the Keyboard report within COMPOSITE_DESCRIPTOR.
REPORT_ID_MOUSE
Report ID for the Mouse report within COMPOSITE_DESCRIPTOR.