pub struct HidInfo {
pub interface_number: u8,
pub interrupt_in_ep: u8,
pub interrupt_in_mps: u16,
pub report_descriptor_len: u16,
}Expand description
Information about a HID interface found in a configuration descriptor.
Fields§
§interface_number: u8HID interface number.
interrupt_in_ep: u8Interrupt IN endpoint address (raw, with direction bit).
interrupt_in_mps: u16Interrupt IN max packet size.
report_descriptor_len: u16Length of the HID Report Descriptor in bytes (from the HID class descriptor).
Pass this to HidHost::fetch_report_descriptor as the buffer size.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HidInfo
impl RefUnwindSafe for HidInfo
impl Send for HidInfo
impl Sync for HidInfo
impl Unpin for HidInfo
impl UnwindSafe for HidInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more