[][src]Struct lis3dsh::interface::Spi

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

SPI interface for interacting with a LIS3DSH

Implementations

impl<SPI, CSPIN> SpiInterface<SPI, CSPIN> where
    SPI: Transfer<u8>,
    CSPIN: OutputPin
[src]

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

pub fn into_inner(self) -> (SPI, CSPIN)[src]

Trait Implementations

impl<SPI, CSPIN> Interface for SpiInterface<SPI, CSPIN> where
    SPI: Transfer<u8>,
    CSPIN: OutputPin
[src]

type Error = SPI::Error

Auto Trait Implementations

impl<SPI, CSPIN> Send for SpiInterface<SPI, CSPIN> where
    CSPIN: Send,
    SPI: Send

impl<SPI, CSPIN> Sync for SpiInterface<SPI, CSPIN> where
    CSPIN: Sync,
    SPI: Sync

impl<SPI, CSPIN> Unpin for SpiInterface<SPI, CSPIN> where
    CSPIN: Unpin,
    SPI: Unpin

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.