pub struct HdSpiInterface<D, DR> { /* private fields */ }Expand description
Half-duplex SPI interface.
This interface is what’s implemented in the upstream esp-hosted firmware. It uses:
- An
HdSpiimplementation for SPI communication (CS is handled by the device) - A
Data_Readypin that indicates when the ESP has data to send
Implementations§
Trait Implementations§
Source§impl<D, DR> Interface for HdSpiInterface<D, DR>
impl<D, DR> Interface for HdSpiInterface<D, DR>
Source§async fn wait_for_handshake(&mut self)
async fn wait_for_handshake(&mut self)
Wait for the ESP to indicate readiness for a new transaction.
Source§async fn wait_for_ready(&mut self)
async fn wait_for_ready(&mut self)
Wait for the ESP to indicate that it has data to send.
Auto Trait Implementations§
impl<D, DR> Freeze for HdSpiInterface<D, DR>
impl<D, DR> RefUnwindSafe for HdSpiInterface<D, DR>where
D: RefUnwindSafe,
DR: RefUnwindSafe,
impl<D, DR> Send for HdSpiInterface<D, DR>
impl<D, DR> Sync for HdSpiInterface<D, DR>
impl<D, DR> Unpin for HdSpiInterface<D, DR>
impl<D, DR> UnwindSafe for HdSpiInterface<D, DR>where
D: UnwindSafe,
DR: 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