pub trait Interface {
// Required methods
async fn init(&mut self, cold_boot: bool);
async fn wait_for_handshake(&mut self);
async fn wait_for_ready(&mut self);
async fn transfer(&mut self, buffer: &mut Aligned<A4, [u8]>, tx_len: usize);
}Expand description
Physical interface trait for communicating with the ESP chip.
Required Methods§
Sourceasync fn wait_for_handshake(&mut self)
async fn wait_for_handshake(&mut self)
Wait for the ESP to indicate readiness for a new transaction.
Sourceasync 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.