pub struct Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> { /* private fields */ }Expand description
Wrapper provides a wrapper around an SPI object with Chip Select management
Implementations§
Trait Implementations§
Source§impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Busy for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
BusyPin: InputPin,
Busy pin implementation for inner objects implementing Busy
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Busy for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
BusyPin: InputPin,
Busy pin implementation for inner objects implementing Busy
Source§impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> DelayNs for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
Delay: DelayNs,
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> DelayNs for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
Delay: DelayNs,
Source§fn delay_ns(&mut self, ns: u32)
fn delay_ns(&mut self, ns: u32)
Pauses execution for at minimum
ns nanoseconds. Pause can be longer
if the implementation requires it due to precision/timing issues.Source§impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> ErrorType for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> ErrorType for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
Source§impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> ErrorType for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> ErrorType for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
Source§impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Ready for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
ReadyPin: InputPin,
Ready pin implementation for inner object implementing Ready
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Ready for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
ReadyPin: InputPin,
Ready pin implementation for inner object implementing Ready
Source§impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Reset for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
ResetPin: OutputPin,
Reset pin implementation for inner objects implementing Reset
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Reset for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
ResetPin: OutputPin,
Reset pin implementation for inner objects implementing Reset
Source§impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> SpiDevice for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> SpiDevice for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
Source§fn write<'w>(&mut self, data: &'w [u8]) -> Result<(), Self::Error>
fn write<'w>(&mut self, data: &'w [u8]) -> Result<(), Self::Error>
spi write implementation managing the CS pin
Source§fn transaction(
&mut self,
operations: &mut [Operation<'_, u8>],
) -> Result<(), Self::Error>
fn transaction( &mut self, operations: &mut [Operation<'_, u8>], ) -> Result<(), Self::Error>
Perform a transaction against the device. 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
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> ManagedChipSelect for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
ManagedChipSelect indicates wrapper controls CS line
Auto Trait Implementations§
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Freeze for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> RefUnwindSafe for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
Spi: RefUnwindSafe,
CsPin: RefUnwindSafe,
ResetPin: RefUnwindSafe,
BusyPin: RefUnwindSafe,
ReadyPin: RefUnwindSafe,
Delay: RefUnwindSafe,
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Send for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Sync for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> Unpin for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>
impl<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay> UnwindSafe for Wrapper<Spi, CsPin, BusyPin, ReadyPin, ResetPin, Delay>where
Spi: UnwindSafe,
CsPin: UnwindSafe,
ResetPin: UnwindSafe,
BusyPin: UnwindSafe,
ReadyPin: UnwindSafe,
Delay: UnwindSafe,
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