[][src]Struct alt_stm32f30x_hal::spi::Spi

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

SPI peripheral operating in full duplex master mode

Methods

impl<SCK, MISO, MOSI> Spi<SPI1, (SCK, MISO, MOSI)>[src]

pub fn free(self) -> (SPI1, (SCK, MISO, MOSI))[src]

Releases the SPI peripheral and associated pins

impl<SCK, MISO, MOSI> Spi<SPI2, (SCK, MISO, MOSI)>[src]

pub fn free(self) -> (SPI2, (SCK, MISO, MOSI))[src]

Releases the SPI peripheral and associated pins

impl<SCK, MISO, MOSI> Spi<SPI3, (SCK, MISO, MOSI)>[src]

pub fn free(self) -> (SPI3, (SCK, MISO, MOSI))[src]

Releases the SPI peripheral and associated pins

Trait Implementations

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

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

impl<PINS> Default<u8> for Spi<SPI3, 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<SPI3, 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

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

type Error = Error

An enumeration of SPI errors

Auto Trait Implementations

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, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

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

impl<T, U> TryInto 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 for T where
    T: ?Sized
[src]

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

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

impl<T> Same for T

type Output = T

Should always be Self

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

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

Error type

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

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

Error type