[][src]Struct esp32_hal::spi::Pins

pub struct Pins<SCLK: OutputPin, SDO: OutputPin, SDI: InputPin + OutputPin = Gpio1<Input<Floating>>, CS: OutputPin = Gpio2<Output<PushPull>>> {
    pub sclk: SCLK,
    pub sdo: SDO,
    pub sdi: Option<SDI>,
    pub cs: Option<CS>,
}

Pins used by the SPI interface

Fields

sclk: SCLKsdo: SDOsdi: Option<SDI>cs: Option<CS>

Auto Trait Implementations

impl<SCLK, SDO, SDI, CS> Send for Pins<SCLK, SDO, SDI, CS> where
    CS: Send,
    SCLK: Send,
    SDI: Send,
    SDO: Send

impl<SCLK, SDO, SDI, CS> Sync for Pins<SCLK, SDO, SDI, CS> where
    CS: Sync,
    SCLK: Sync,
    SDI: Sync,
    SDO: Sync

impl<SCLK, SDO, SDI, CS> Unpin for Pins<SCLK, SDO, SDI, CS> where
    CS: Unpin,
    SCLK: Unpin,
    SDI: Unpin,
    SDO: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.