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