Struct LpspiPins
pub struct LpspiPins<SDO, SDI, SCK> {
pub sdo: SDO,
pub sdi: SDI,
pub sck: SCK,
}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,
>;Fields§
§sdo: SDOSerial data out
Data travels from the SPI host controller to the SPI device.
sdi: SDISerial data in
Data travels from the SPI device to the SPI host controller.
sck: SCKSerial clock
Auto Trait Implementations§
impl<SDO, SDI, SCK> Freeze for Pins<SDO, SDI, SCK>
impl<SDO, SDI, SCK> RefUnwindSafe for Pins<SDO, SDI, SCK>
impl<SDO, SDI, SCK> Send for Pins<SDO, SDI, SCK>
impl<SDO, SDI, SCK> Sync for Pins<SDO, SDI, SCK>
impl<SDO, SDI, SCK> Unpin for Pins<SDO, SDI, SCK>
impl<SDO, SDI, SCK> UnsafeUnpin for Pins<SDO, SDI, SCK>
impl<SDO, SDI, SCK> UnwindSafe for Pins<SDO, SDI, SCK>
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