Trait esp_ward::peripherals::SpiPeriph
source · pub trait SpiPeriph {
type Returnable;
// Required method
fn create_on_spi(
bus: Spi<'static, SPI2, FullDuplexMode>,
delay: Delay
) -> Result<Self::Returnable, PeripheralError>;
}
Expand description
Trait for peripherals that communicate over SPI. Implementation should provide a method for creating an instance of the peripheral on the I2C bus.
Required Associated Types§
type Returnable
Required Methods§
fn create_on_spi( bus: Spi<'static, SPI2, FullDuplexMode>, delay: Delay ) -> Result<Self::Returnable, PeripheralError>
Object Safety§
This trait is not object safe.