[−][src]Struct lis3dsh::interface::Spi
SPI interface for interacting with a LIS3DSH
Implementations
impl<SPI, CSPIN> SpiInterface<SPI, CSPIN> where
SPI: Transfer<u8>,
CSPIN: OutputPin,
[src]
SPI: Transfer<u8>,
CSPIN: OutputPin,
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]
SPI: Transfer<u8>,
CSPIN: OutputPin,
Auto Trait Implementations
impl<SPI, CSPIN> Send for SpiInterface<SPI, CSPIN> where
CSPIN: Send,
SPI: Send,
CSPIN: Send,
SPI: Send,
impl<SPI, CSPIN> Sync for SpiInterface<SPI, CSPIN> where
CSPIN: Sync,
SPI: Sync,
CSPIN: Sync,
SPI: Sync,
impl<SPI, CSPIN> Unpin for SpiInterface<SPI, CSPIN> where
CSPIN: Unpin,
SPI: Unpin,
CSPIN: Unpin,
SPI: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,