Trait esp32c2_hal::spi::slave::prelude::_esp_hal_spi_slave_Instance
source · pub trait _esp_hal_spi_slave_Instance {
// Required methods
fn register_block(&self) -> &RegisterBlock;
fn sclk_signal(&self) -> InputSignal;
fn mosi_signal(&self) -> InputSignal;
fn miso_signal(&self) -> OutputSignal;
fn cs_signal(&self) -> InputSignal;
fn enable_peripheral(&self);
fn spi_num(&self) -> u8;
// Provided methods
fn init(&mut self) { ... }
fn set_data_mode(&mut self, data_mode: SpiMode) -> &mut Self { ... }
fn is_bus_busy(&self) -> bool { ... }
fn flush(&mut self) -> Result<(), Error> { ... }
fn setup_for_flush(&self) { ... }
}
Required Methods§
fn register_block(&self) -> &RegisterBlock
fn sclk_signal(&self) -> InputSignal
fn mosi_signal(&self) -> InputSignal
fn miso_signal(&self) -> OutputSignal
fn cs_signal(&self) -> InputSignal
fn enable_peripheral(&self)
fn spi_num(&self) -> u8
Provided Methods§
fn set_data_mode(&mut self, data_mode: SpiMode) -> &mut Self
fn is_bus_busy(&self) -> bool
fn flush(&mut self) -> Result<(), Error>
fn setup_for_flush(&self)
Object Safety§
This trait is not object safe.