Struct esp_idf_hal::spi::SpiDriver
source · pub struct SpiDriver<'d> { /* private fields */ }
Implementations§
source§impl<'d> SpiDriver<'d>
impl<'d> SpiDriver<'d>
sourcepub fn new<SPI: SpiAnyPins>(
_spi: impl Peripheral<P = SPI> + 'd,
sclk: impl Peripheral<P = impl OutputPin> + 'd,
sdo: impl Peripheral<P = impl OutputPin> + 'd,
sdi: Option<impl Peripheral<P = impl InputPin + OutputPin> + 'd>,
dma: Dma
) -> Result<Self, EspError>
pub fn new<SPI: SpiAnyPins>(
_spi: impl Peripheral<P = SPI> + 'd,
sclk: impl Peripheral<P = impl OutputPin> + 'd,
sdo: impl Peripheral<P = impl OutputPin> + 'd,
sdi: Option<impl Peripheral<P = impl InputPin + OutputPin> + 'd>,
dma: Dma
) -> Result<Self, EspError>
Create new instance of SPI controller for all others
pub fn host(&self) -> spi_host_device_t
Trait Implementations§
Auto Trait Implementations§
impl<'d> RefUnwindSafe for SpiDriver<'d>
impl<'d> Sync for SpiDriver<'d>
impl<'d> Unpin for SpiDriver<'d>
impl<'d> !UnwindSafe for SpiDriver<'d>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more