[][src]Struct stm32f1xx_hal::spi::Spi

pub struct Spi<SPI, REMAP, PINS> { /* fields omitted */ }

Methods

impl<REMAP, PINS> Spi<SPI1, REMAP, PINS>[src]

pub fn spi1<F, POS>(
    spi: SPI1,
    pins: PINS,
    mapr: &mut MAPR,
    mode: Mode,
    freq: F,
    clocks: Clocks,
    apb: &mut <SPI1 as RccBus>::Bus
) -> Self where
    F: Into<Hertz>,
    REMAP: Remap<Periph = SPI1>,
    PINS: Pins<REMAP, POS>, 
[src]

impl<REMAP, PINS> Spi<SPI2, REMAP, PINS>[src]

pub fn spi2<F, POS>(
    spi: SPI2,
    pins: PINS,
    mode: Mode,
    freq: F,
    clocks: Clocks,
    apb: &mut <SPI2 as RccBus>::Bus
) -> Self where
    F: Into<Hertz>,
    REMAP: Remap<Periph = SPI2>,
    PINS: Pins<REMAP, POS>, 
[src]

impl<REMAP, PINS> Spi<SPI1, REMAP, PINS>[src]

pub fn free(self) -> (SPI1, PINS)[src]

impl<REMAP, PINS> Spi<SPI2, REMAP, PINS>[src]

pub fn free(self) -> (SPI2, PINS)[src]

impl<REMAP, PINS> Spi<SPI1, REMAP, PINS>[src]

pub fn with_tx_dma(self, channel: C3) -> SpiTxDma<SPI1, REMAP, PINS, C3>[src]

impl<REMAP, PINS> Spi<SPI2, REMAP, PINS>[src]

pub fn with_tx_dma(self, channel: C5) -> SpiTxDma<SPI2, REMAP, PINS, C5>[src]

Trait Implementations

impl<REMAP, PINS> Default<u8> for Spi<SPI1, REMAP, PINS>[src]

impl<REMAP, PINS> Default<u8> for Spi<SPI2, REMAP, PINS>[src]

impl<REMAP, PINS> Default<u8> for Spi<SPI1, REMAP, PINS>[src]

impl<REMAP, PINS> Default<u8> for Spi<SPI2, REMAP, PINS>[src]

impl<REMAP, PINS> FullDuplex<u8> for Spi<SPI1, REMAP, PINS>[src]

type Error = Error

An enumeration of SPI errors

impl<REMAP, PINS> FullDuplex<u8> for Spi<SPI2, REMAP, PINS>[src]

type Error = Error

An enumeration of SPI errors

Auto Trait Implementations

impl<SPI, REMAP, PINS> Send for Spi<SPI, REMAP, PINS> where
    PINS: Send,
    REMAP: Send,
    SPI: Send

impl<SPI, REMAP, PINS> Sync for Spi<SPI, REMAP, PINS> where
    PINS: Sync,
    REMAP: Sync,
    SPI: Sync

impl<SPI, REMAP, PINS> Unpin for Spi<SPI, REMAP, PINS> where
    PINS: Unpin,
    REMAP: 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