Struct capsules_core::virtualizers::virtual_spi::MuxSpiMaster
source · pub struct MuxSpiMaster<'a, Spi: SpiMaster<'a>> { /* private fields */ }
Expand description
The Mux struct manages multiple Spi clients. Each client may have at most one outstanding Spi request.
Implementations§
Trait Implementations§
source§impl<'a, Spi: SpiMaster<'a>> DeferredCallClient for MuxSpiMaster<'a, Spi>
impl<'a, Spi: SpiMaster<'a>> DeferredCallClient for MuxSpiMaster<'a, Spi>
source§impl<'a, Spi: SpiMaster<'a>> SpiMasterClient for MuxSpiMaster<'a, Spi>
impl<'a, Spi: SpiMaster<'a>> SpiMasterClient for MuxSpiMaster<'a, Spi>
source§fn read_write_done(
&self,
write_buffer: SubSliceMut<'static, u8>,
read_buffer: Option<SubSliceMut<'static, u8>>,
status: Result<usize, ErrorCode>,
)
fn read_write_done( &self, write_buffer: SubSliceMut<'static, u8>, read_buffer: Option<SubSliceMut<'static, u8>>, status: Result<usize, ErrorCode>, )
Callback issued when a read/write operation finishes. Read more
Auto Trait Implementations§
impl<'a, Spi> !Freeze for MuxSpiMaster<'a, Spi>
impl<'a, Spi> !RefUnwindSafe for MuxSpiMaster<'a, Spi>
impl<'a, Spi> !Send for MuxSpiMaster<'a, Spi>
impl<'a, Spi> !Sync for MuxSpiMaster<'a, Spi>
impl<'a, Spi> Unpin for MuxSpiMaster<'a, Spi>
impl<'a, Spi> !UnwindSafe for MuxSpiMaster<'a, Spi>
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