pub trait InterfaceClass<'a> {
Show 13 methods // Required methods fn report_descriptor(&self) -> &[u8]; fn id(&self) -> InterfaceNumber; fn write_descriptors(&self, writer: &mut DescriptorWriter<'_>) -> Result<()>; fn get_string(&self, index: StringIndex, _lang_id: u16) -> Option<&str>; fn reset(&mut self); fn set_report(&mut self, data: &[u8]) -> Result<()>; fn get_report(&mut self, data: &mut [u8]) -> Result<usize>; fn get_report_ack(&mut self) -> Result<()>; fn set_idle(&mut self, report_id: u8, value: u8); fn get_idle(&self, report_id: u8) -> u8; fn set_protocol(&mut self, protocol: HidProtocol); fn get_protocol(&self) -> HidProtocol; // Provided method fn hid_descriptor_body(&self) -> [u8; 7] { ... }
}

Required Methods§

source

fn report_descriptor(&self) -> &[u8]

source

fn id(&self) -> InterfaceNumber

source

fn write_descriptors(&self, writer: &mut DescriptorWriter<'_>) -> Result<()>

source

fn get_string(&self, index: StringIndex, _lang_id: u16) -> Option<&str>

source

fn reset(&mut self)

source

fn set_report(&mut self, data: &[u8]) -> Result<()>

source

fn get_report(&mut self, data: &mut [u8]) -> Result<usize>

source

fn get_report_ack(&mut self) -> Result<()>

source

fn set_idle(&mut self, report_id: u8, value: u8)

source

fn get_idle(&self, report_id: u8) -> u8

source

fn set_protocol(&mut self, protocol: HidProtocol)

source

fn get_protocol(&self) -> HidProtocol

Provided Methods§

Implementors§

source§

impl<'a, B> InterfaceClass<'a> for BootKeyboardInterface<'a, B>where B: UsbBus,

source§

impl<'a, B> InterfaceClass<'a> for NKROBootKeyboardInterface<'a, B>where B: UsbBus,

source§

impl<'a, B: UsbBus> InterfaceClass<'a> for ConsumerControlFixedInterface<'a, B>

source§

impl<'a, B: UsbBus> InterfaceClass<'a> for ConsumerControlInterface<'a, B>

source§

impl<'a, B: UsbBus> InterfaceClass<'a> for RawFidoInterface<'a, B>

source§

impl<'a, B: UsbBus> InterfaceClass<'a> for BootMouseInterface<'a, B>

source§

impl<'a, B: UsbBus> InterfaceClass<'a> for WheelMouseInterface<'a, B>

source§

impl<'a, B: UsbBus> InterfaceClass<'a> for RawInterface<'a, B>

source§

impl<'a, B: UsbBus, R> InterfaceClass<'a> for ManagedInterface<'a, B, R>where R: Copy + Eq,