pub struct LpspiPins<SDO, SDI, SCK, PCS0> {
    pub sdo: SDO,
    pub sdi: SDI,
    pub sck: SCK,
    pub pcs0: PCS0,
}
Expand description

Pins for a LPSPI device.

Consider using type aliases to simplify your usage:

use imxrt_hal as hal;
use imxrt_iomuxc::imxrt1060::gpio_b0::*;

// SPI pins used in my application
type LpspiPins = hal::lpspi::Pins<
    GPIO_B0_02,
    GPIO_B0_01,
    GPIO_B0_03,
    GPIO_B0_00,
>;

// Helper type for your SPI peripheral
type Lpspi<const N: u8> = hal::lpspi::Lpspi<LpspiPins, N>;

Fields§

§sdo: SDO

Serial data out

Data travels from the SPI host controller to the SPI device.

§sdi: SDI

Serial data in

Data travels from the SPI device to the SPI host controller.

§sck: SCK

Serial clock

§pcs0: PCS0

Chip select 0

(PCSx) convention matches the hardware.

Auto Trait Implementations§

§

impl<SDO, SDI, SCK, PCS0> Freeze for Pins<SDO, SDI, SCK, PCS0>
where SDO: Freeze, SDI: Freeze, SCK: Freeze, PCS0: Freeze,

§

impl<SDO, SDI, SCK, PCS0> RefUnwindSafe for Pins<SDO, SDI, SCK, PCS0>

§

impl<SDO, SDI, SCK, PCS0> Send for Pins<SDO, SDI, SCK, PCS0>
where SDO: Send, SDI: Send, SCK: Send, PCS0: Send,

§

impl<SDO, SDI, SCK, PCS0> Sync for Pins<SDO, SDI, SCK, PCS0>
where SDO: Sync, SDI: Sync, SCK: Sync, PCS0: Sync,

§

impl<SDO, SDI, SCK, PCS0> Unpin for Pins<SDO, SDI, SCK, PCS0>
where SDO: Unpin, SDI: Unpin, SCK: Unpin, PCS0: Unpin,

§

impl<SDO, SDI, SCK, PCS0> UnwindSafe for Pins<SDO, SDI, SCK, PCS0>
where SDO: UnwindSafe, SDI: UnwindSafe, SCK: UnwindSafe, PCS0: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.