Struct driver_pal::mock::Spi[][src]

pub struct Spi { /* fields omitted */ }

Mock Transactional SPI implementation

Trait Implementations

impl Busy for Spi[src]

type Error = Error<(), (), ()>

fn get_busy(&mut self) -> Result<PinState, Self::Error>[src]

Check peripheral busy status

impl Clone for Spi[src]

impl Debug for Spi[src]

impl DelayMs<u32> for Spi[src]

type Error = ()

Enumeration of DelayMs errors

impl DelayUs<u32> for Spi[src]

type Error = ()

Enumeration of DelayMs errors

impl Ready for Spi[src]

type Error = Error<(), (), ()>

fn get_ready(&mut self) -> Result<PinState, Self::Error>[src]

Check peripheral ready status

impl Reset for Spi[src]

type Error = Error<(), (), ()>

fn set_reset(&mut self, state: PinState) -> Result<(), Self::Error>[src]

Check peripheral ready status

impl Transactional<u8> for Spi[src]

type Error = Error<(), (), ()>

Associated error type

impl Transfer<u8> for Spi[src]

type Error = Error<(), (), ()>

Error type

impl Write<u8> for Spi[src]

type Error = Error<(), (), ()>

Error type

Auto Trait Implementations

impl RefUnwindSafe for Spi

impl Send for Spi

impl Sync for Spi

impl Unpin for Spi

impl UnwindSafe for Spi

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, E> Hal<E> for T where
    T: Transactional<u8, Error = E> + PrefixWrite<Error = E> + Busy<Error = E> + Ready<Error = E> + PrefixRead<Error = E> + Reset<Error = E> + DelayMs<u32> + DelayUs<u32>, 
[src]

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

impl<T, E> PrefixRead for T where
    T: Transactional<u8, Error = E>, 
[src]

type Error = E

pub fn try_prefix_read(
    &mut Self,
    &[u8],
    &'a mut [u8]
) -> Result<(), <T as PrefixRead>::Error>
[src]

Read data with the specified prefix

impl<T, E> PrefixWrite for T where
    T: Transactional<u8, Error = E>, 
[src]

type Error = E

pub fn try_prefix_write(
    &mut Self,
    &[u8],
    &[u8]
) -> Result<(), <T as PrefixWrite>::Error>
[src]

Write data with the specified prefix

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.