[][src]Enum embedded_hal::blocking::spi::Operation

pub enum Operation<'a, W: 'static> {
    Write(&'a [W]),
    Transfer(&'a mut [W]),
}

Operation for transactional SPI trait

This allows composition of SPI operations into a single bus transaction

Variants

Write(&'a [W])

Write data from the provided buffer, discarding read data

Transfer(&'a mut [W])

Write data out while reading data into the provided buffer

Trait Implementations

impl<'a, W: Debug + 'static> Debug for Operation<'a, W>[src]

impl<'a, W: PartialEq + 'static> PartialEq<Operation<'a, W>> for Operation<'a, W>[src]

impl<'a, W: 'static> StructuralPartialEq for Operation<'a, W>[src]

Auto Trait Implementations

impl<'a, W> Send for Operation<'a, W> where
    W: Send + Sync

impl<'a, W> Sync for Operation<'a, W> where
    W: Sync

impl<'a, W> Unpin for Operation<'a, W>

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