Struct lpc55_hal::drivers::spi::SpiMaster[][src]

pub struct SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
    SCK: PinId,
    MOSI: PinId,
    MISO: PinId,
    CS: PinId,
    SPI: Spi,
    PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>, 
{ /* fields omitted */ }

SPI peripheral operating in master mode

Implementations

impl<SCK, MOSI, MISO, CS, SPI, PINS> SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
    SCK: PinId,
    MOSI: PinId,
    MISO: PinId,
    CS: PinId,
    SPI: Spi,
    PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>, 
[src]

pub fn new<Speed: Into<Hertz>>(
    spi: SPI,
    pins: PINS,
    speed: Speed,
    mode: Mode
) -> Self
[src]

pub fn release(self) -> (SPI, PINS)[src]

Trait Implementations

impl<SCK, MOSI, MISO, CS, SPI, PINS> Default<u8> for SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
    SCK: PinId,
    MOSI: PinId,
    MISO: PinId,
    CS: PinId,
    SPI: Spi,
    PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>, 
[src]

impl<SCK, MOSI, MISO, CS, SPI, PINS> Default<u8> for SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
    SCK: PinId,
    MOSI: PinId,
    MISO: PinId,
    CS: PinId,
    SPI: Spi,
    PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>, 
[src]

impl<SCK, MOSI, MISO, CS, SPI, PINS> FullDuplex<u8> for SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
    SCK: PinId,
    MOSI: PinId,
    MISO: PinId,
    CS: PinId,
    SPI: Spi,
    PINS: SpiPins<SCK, MOSI, MISO, CS, SPI>, 
[src]

type Error = Error

An enumeration of SPI errors

Auto Trait Implementations

impl<SCK, MOSI, MISO, CS, SPI, PINS> Send for SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
    CS: Send,
    MISO: Send,
    MOSI: Send,
    PINS: Send,
    SCK: Send,
    SPI: Send

impl<SCK, MOSI, MISO, CS, SPI, PINS> Sync for SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
    CS: Sync,
    MISO: Sync,
    MOSI: Sync,
    PINS: Sync,
    SCK: Sync,
    SPI: Sync

impl<SCK, MOSI, MISO, CS, SPI, PINS> Unpin for SpiMaster<SCK, MOSI, MISO, CS, SPI, PINS> where
    CS: Unpin,
    MISO: Unpin,
    MOSI: Unpin,
    PINS: Unpin,
    SCK: Unpin,
    SPI: 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> Same<T> for T

type Output = T

Should always be Self

impl<W, S> Transfer<W> for S where
    S: Default<W>,
    W: Clone
[src]

type Error = <S as FullDuplex<W>>::Error

Error type

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.

impl<W, S> Write<W> for S where
    S: Default<W>,
    W: Clone
[src]

type Error = <S as FullDuplex<W>>::Error

Error type