Type Alias usb_ids::Hid

source ·
pub type Hid = UsbId<HID_TAG, u8>;
Expand description

Represents a HID descriptor type in the USB database.

use usb_ids::{Hid, FromId};
let hid = Hid::from_id(0x22).unwrap();
assert_eq!(hid.name(), "Report");

Aliased Type§

struct Hid { /* private fields */ }

Trait Implementations§

source§

impl FromId<u8> for Hid

source§

fn from_id(id: u8) -> Option<&'static Self>

Returns the entity corresponding to id, or None if none exists.