[][src]Struct esp8266_hal::spi::SPI1Master

pub struct SPI1Master { /* fields omitted */ }

Implementations

impl SPI1Master[src]

pub fn new(
    spi: SPI1,
    sclk: Gpio14<HSPI>,
    miso: Gpio12<HSPI>,
    mosi: Gpio13<HSPI>,
    frequency: SpiClock
) -> Self
[src]

pub fn decompose(
    self
) -> Result<(SPI1, Gpio14<HSPI>, Gpio12<HSPI>, Gpio13<HSPI>), Void>
[src]

free up the spi device and return the pins used

pub fn set_data_mode(&mut self, mode: Mode)[src]

pub fn set_frequency(&mut self, frequency: SpiClock)[src]

Trait Implementations

impl Default<u8> for SPI1Master[src]

impl Default<u8> for SPI1Master[src]

impl FullDuplex<u8> for SPI1Master[src]

type Error = Void

An enumeration of SPI errors

Auto Trait Implementations

impl Send for SPI1Master

impl !Sync for SPI1Master

impl Unpin for SPI1Master

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<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