pub struct SAMDHost<'a, F> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<F> USBHost for SAMDHost<'_, F>
impl<F> USBHost for SAMDHost<'_, F>
Source§fn control_transfer(
&mut self,
ep: &mut dyn Endpoint,
bm_request_type: RequestType,
b_request: RequestCode,
w_value: WValue,
w_index: u16,
buf: Option<&mut [u8]>,
) -> Result<usize, TransferError>
fn control_transfer( &mut self, ep: &mut dyn Endpoint, bm_request_type: RequestType, b_request: RequestCode, w_value: WValue, w_index: u16, buf: Option<&mut [u8]>, ) -> Result<usize, TransferError>
Issue a control transfer with an optional data stage to
ep. The data stage direction is determined by the direction
of bm_request_type. Read moreSource§fn in_transfer(
&mut self,
ep: &mut dyn Endpoint,
buf: &mut [u8],
) -> Result<usize, TransferError>
fn in_transfer( &mut self, ep: &mut dyn Endpoint, buf: &mut [u8], ) -> Result<usize, TransferError>
Issue a transfer from
ep to the host. Read moreSource§fn out_transfer(
&mut self,
ep: &mut dyn Endpoint,
buf: &[u8],
) -> Result<usize, TransferError>
fn out_transfer( &mut self, ep: &mut dyn Endpoint, buf: &[u8], ) -> Result<usize, TransferError>
Issue a transfer from the host to
ep. Read moreAuto Trait Implementations§
impl<'a, F> !Freeze for SAMDHost<'a, F>
impl<'a, F> !RefUnwindSafe for SAMDHost<'a, F>
impl<'a, F> Send for SAMDHost<'a, F>where
F: Sync,
impl<'a, F> !Sync for SAMDHost<'a, F>
impl<'a, F> Unpin for SAMDHost<'a, F>
impl<'a, F> !UnwindSafe for SAMDHost<'a, F>
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