pub struct SpiLoopback {
cs: Cell<u8>,
val: Cell<u8>,
spi: &'static dyn SpiMasterDevice<'static>,
}
Fields§
§cs: Cell<u8>
§val: Cell<u8>
§spi: &'static dyn SpiMasterDevice<'static>
Implementations§
Source§impl SpiLoopback
impl SpiLoopback
pub fn new( spi: &'static dyn SpiMasterDevice<'static>, cs: u8, counter: u8, ) -> Self
Trait Implementations§
Source§impl SpiMasterClient for SpiLoopback
impl SpiMasterClient for SpiLoopback
Source§fn read_write_done(
&self,
write: SubSliceMut<'static, u8>,
read: Option<SubSliceMut<'static, u8>>,
status: Result<usize, ErrorCode>,
)
fn read_write_done( &self, write: SubSliceMut<'static, u8>, read: Option<SubSliceMut<'static, u8>>, status: Result<usize, ErrorCode>, )
Callback issued when a read/write operation finishes. Read more
Auto Trait Implementations§
impl !Freeze for SpiLoopback
impl !RefUnwindSafe for SpiLoopback
impl !Send for SpiLoopback
impl !Sync for SpiLoopback
impl Unpin for SpiLoopback
impl !UnwindSafe for SpiLoopback
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