Struct LpspiPins
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>
impl<SDO, SDI, SCK, PCS0> RefUnwindSafe for Pins<SDO, SDI, SCK, PCS0>
impl<SDO, SDI, SCK, PCS0> Send for Pins<SDO, SDI, SCK, PCS0>
impl<SDO, SDI, SCK, PCS0> Sync for Pins<SDO, SDI, SCK, PCS0>
impl<SDO, SDI, SCK, PCS0> Unpin for Pins<SDO, SDI, SCK, PCS0>
impl<SDO, SDI, SCK, PCS0> UnwindSafe for Pins<SDO, SDI, SCK, PCS0>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more