hid-types 0.1.1

Rust types for working with USB HID report descriptors
Documentation
1
2
3
4
5
6
#[test]
fn usage_value() {
    use hid_types::id::usage::generic_desktop::{KnownUsage, Usage};
    let usage_id = Usage::from(KnownUsage::Mouse);
    assert_eq!(usage_id.to_integer(), 0x0002);
}