pub struct SpiInterface<SPI, IN> { /* private fields */ }Expand description
Standard SPI interface.
This interface is what’s implemented in the upstream esp-hosted-fg firmware. It uses:
- An SpiDevicefor SPI communication (CS is handled by the device)
- A handshake pin that signals when the ESP is ready for a new transaction
- A ready pin that indicates when the ESP has data to send
Implementations§
Trait Implementations§
Source§impl<SPI, IN> Interface for SpiInterface<SPI, IN>
 
impl<SPI, IN> Interface for SpiInterface<SPI, IN>
Source§async fn wait_for_handshake(&mut self)
 
async fn wait_for_handshake(&mut self)
Wait for the HANDSHAKE signal indicating the ESP is ready for a new transaction.
Source§async fn wait_for_ready(&mut self)
 
async fn wait_for_ready(&mut self)
Wait for the READY signal indicating the ESP has data to send.
Auto Trait Implementations§
impl<SPI, IN> Freeze for SpiInterface<SPI, IN>
impl<SPI, IN> RefUnwindSafe for SpiInterface<SPI, IN>where
    SPI: RefUnwindSafe,
    IN: RefUnwindSafe,
impl<SPI, IN> Send for SpiInterface<SPI, IN>
impl<SPI, IN> Sync for SpiInterface<SPI, IN>
impl<SPI, IN> Unpin for SpiInterface<SPI, IN>
impl<SPI, IN> UnwindSafe for SpiInterface<SPI, IN>where
    SPI: UnwindSafe,
    IN: 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