Struct evegfx_hal::EVEHALSPIInterface[][src]

pub struct EVEHALSPIInterface<SPI, CS> where
    SPI: Transfer<u8>,
    CS: OutputPin
{ /* fields omitted */ }

EVEHALSPIInterface is an implementation of evegfx.Interface that commincates over SPI using the embedded-hal SPI and GPIO (for "chip select") traits.

Implementations

impl<SPI, CS> EVEHALSPIInterface<SPI, CS> where
    SPI: Transfer<u8> + Write<u8>,
    CS: OutputPin
[src]

pub fn new(spi: SPI, cs: CS) -> Self[src]

Create a new EVE interface in terms of the given SPI bus and CS signal implementations.

The given CS implementation must be a digital output pin which will be set to low to assert chip select, or high to unassert it, reflecting the physical characteristics of the CS pin on EVE IC packages.

Trait Implementations

impl<SPI, CS> Interface for EVEHALSPIInterface<SPI, CS> where
    SPI: Transfer<u8> + Write<u8>,
    CS: OutputPin
[src]

type Error = EVEHALSPIError<<SPI as Write<u8>>::Error, <SPI as Transfer<u8>>::Error, CS::Error>

Auto Trait Implementations

impl<SPI, CS> Send for EVEHALSPIInterface<SPI, CS> where
    CS: Send,
    SPI: Send
[src]

impl<SPI, CS> Sync for EVEHALSPIInterface<SPI, CS> where
    CS: Sync,
    SPI: Sync
[src]

impl<SPI, CS> Unpin for EVEHALSPIInterface<SPI, CS> where
    CS: Unpin,
    SPI: Unpin
[src]

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.