pub struct UsbHost<'d, I: Instance> { /* private fields */ }Expand description
USB host driver.
Implementations§
Trait Implementations§
Source§impl<'d, I: Instance> UsbHostDriver for UsbHost<'d, I>
impl<'d, I: Instance> UsbHostDriver for UsbHost<'d, I>
Source§type Channel<T: Type, D: Direction> = Channel<'d, I, D, T>
type Channel<T: Type, D: Direction> = Channel<'d, I, D, T>
Channel implementation of this UsbHostDriver
Source§fn alloc_channel<T: Type, D: Direction>(
&self,
addr: u8,
endpoint: &EndpointInfo,
pre: bool,
) -> Result<Self::Channel<T, D>, HostError>
fn alloc_channel<T: Type, D: Direction>( &self, addr: u8, endpoint: &EndpointInfo, pre: bool, ) -> Result<Self::Channel<T, D>, HostError>
Allocate channel for communication with device Read more
Source§async fn wait_for_device_event(&self) -> DeviceEvent
async fn wait_for_device_event(&self) -> DeviceEvent
Wait for device connect or disconnect Read more
Auto Trait Implementations§
impl<'d, I> Freeze for UsbHost<'d, I>
impl<'d, I> RefUnwindSafe for UsbHost<'d, I>where
I: RefUnwindSafe,
impl<'d, I> Send for UsbHost<'d, I>where
I: Send,
impl<'d, I> Sync for UsbHost<'d, I>where
I: Sync,
impl<'d, I> Unpin for UsbHost<'d, I>
impl<'d, I> !UnwindSafe for UsbHost<'d, I>
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