pub struct SpiDriver<'d> { /* private fields */ }Implementations§
Source§impl<'d> SpiDriver<'d>
impl<'d> SpiDriver<'d>
Sourcepub fn new<SPI>(
_spi: SPI,
sclk: impl OutputPin + 'd,
sdo: impl OutputPin + 'd,
sdi: Option<impl InputPin + 'd>,
config: &DriverConfig,
) -> Result<SpiDriver<'d>, EspError>where
SPI: SpiAnyPins + 'd,
pub fn new<SPI>(
_spi: SPI,
sclk: impl OutputPin + 'd,
sdo: impl OutputPin + 'd,
sdi: Option<impl InputPin + 'd>,
config: &DriverConfig,
) -> Result<SpiDriver<'d>, EspError>where
SPI: SpiAnyPins + 'd,
Create new instance of SPI controller for all others