pub struct Spi { /* private fields */ }Expand description
Mock Transactional SPI implementation
Trait Implementations§
Source§impl DelayNs for Spi
impl DelayNs for Spi
Source§fn delay_ns(&mut self, t: u32)
fn delay_ns(&mut self, t: u32)
Pauses execution for at minimum
ns nanoseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.Source§impl SpiDevice for Spi
impl SpiDevice for Spi
Source§fn transaction(
&mut self,
operations: &mut [SpiOperation<'_, u8>],
) -> Result<(), Self::Error>
fn transaction( &mut self, operations: &mut [SpiOperation<'_, u8>], ) -> Result<(), Self::Error>
Perform a transaction against the device. Read more
Source§fn write<'w>(&mut self, data: &[u8]) -> Result<(), Self::Error>
fn write<'w>(&mut self, data: &[u8]) -> Result<(), Self::Error>
Do a write within a transaction. Read more
Source§fn transfer_in_place<'w>(
&mut self,
data: &'w mut [u8],
) -> Result<(), Self::Error>
fn transfer_in_place<'w>( &mut self, data: &'w mut [u8], ) -> Result<(), Self::Error>
Do an in-place transfer within a transaction. Read more
Auto Trait Implementations§
impl Freeze for Spi
impl RefUnwindSafe for Spi
impl Send for Spi
impl Sync for Spi
impl Unpin for Spi
impl UnwindSafe for 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