#hid #no-std #usb-device

no-std usbd-hid

A HID class for use with usb-device

23 releases

0.6.1 Oct 15, 2022
0.6.0 Apr 30, 2022
0.5.2 Sep 24, 2021
0.5.0 Feb 12, 2021
0.4.2 Mar 18, 2020

#64 in Hardware support

Download history 438/week @ 2023-02-06 477/week @ 2023-02-13 648/week @ 2023-02-20 340/week @ 2023-02-27 575/week @ 2023-03-06 465/week @ 2023-03-13 372/week @ 2023-03-20 558/week @ 2023-03-27 604/week @ 2023-04-03 1126/week @ 2023-04-10 596/week @ 2023-04-17 662/week @ 2023-04-24 594/week @ 2023-05-01 641/week @ 2023-05-08 576/week @ 2023-05-15 437/week @ 2023-05-22

2,369 downloads per month
Used in 8 crates (6 directly)

MIT/Apache

46KB
849 lines

usbd-hid

Crates.io usbd-hid

USB HID implementation for usb-device.

Also implements a cheeky procedural macro for generating HID descriptors.

Examples:


lib.rs:

HID report descriptor generation & USB HID class implementation

This crate implements components necessary to build a USB HID device. This includes generation of the report descriptor, serialization of input reports, and communicating with a host that implements USB HID.

Dependencies

~1.4–2MB
~43K SLoC