Trait esp32c2_hal::spi::master::HalfDuplexReadWrite
source · pub trait HalfDuplexReadWrite {
type Error;
// Required methods
fn read(
&mut self,
data_mode: SpiDataMode,
cmd: Command,
address: Address,
dummy: u8,
buffer: &mut [u8]
) -> Result<(), Self::Error>;
fn write(
&mut self,
data_mode: SpiDataMode,
cmd: Command,
address: Address,
dummy: u8,
buffer: &[u8]
) -> Result<(), Self::Error>;
}
Expand description
Read and Write in half duplex mode.