Type Alias 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§

pub 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.