pub struct Transfer<State, I: Instance> { /* private fields */ }Expand description
An SPI/DMA transfer
Since the SPI peripheral is capable of sending and receiving at the same
time, using the same buffer, it needs this bespoke Transfer struct, which
wraps and manages two dma::Transfer structs under the hood.
Implementations§
Auto Trait Implementations§
impl<State, I> Freeze for Transfer<State, I>
impl<State, I> RefUnwindSafe for Transfer<State, I>where
I: RefUnwindSafe,
State: RefUnwindSafe,
<I as Instance>::RxChannel: RefUnwindSafe,
<I as Instance>::TxChannel: RefUnwindSafe,
<<I as Instance>::RxChannel as Instance>::Cfg: RefUnwindSafe,
<<I as Instance>::RxChannel as Instance>::Xfercfg: RefUnwindSafe,
<<I as Instance>::TxChannel as Instance>::Cfg: RefUnwindSafe,
<<I as Instance>::TxChannel as Instance>::Xfercfg: RefUnwindSafe,
impl<State, I> !Send for Transfer<State, I>
impl<State, I> !Sync for Transfer<State, I>
impl<State, I> Unpin for Transfer<State, I>
impl<State, I> !UnwindSafe for Transfer<State, 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