[][src]Struct stm32l0xx_hal::spi::Spi

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

Methods

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

pub fn spi1<T>(
    spi: SPI1,
    pins: PINS,
    mode: Mode,
    freq: T,
    rcc: &mut Rcc
) -> Self where
    PINS: Pins<SPI1>,
    T: Into<Hertz>, 
[src]

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

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

pub fn spi2<T>(
    spi: SPI2,
    pins: PINS,
    mode: Mode,
    freq: T,
    rcc: &mut Rcc
) -> Self where
    PINS: Pins<SPI2>,
    T: Into<Hertz>, 
[src]

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

Trait Implementations

impl<SPI: Debug, PINS: Debug> Debug for Spi<SPI, PINS>[src]

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

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

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

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

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

type Error = Error

An enumeration of SPI errors

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

type Error = Error

An enumeration of SPI errors

Auto Trait Implementations

impl<SPI, PINS> Unpin for Spi<SPI, PINS> where
    PINS: Unpin,
    SPI: Unpin

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

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

Error type

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

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

Error type

impl<T> Same<T> for T

type Output = T

Should always be Self