[][src]Struct mpu9250::SpiDevice

pub struct SpiDevice<SPI, GPIO> { /* fields omitted */ }

A SPI device. Use a SPI device when the MPU9250 is connected via SPI

Methods

impl<SPI, NCS, E> SpiDevice<SPI, NCS> where
    SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
    NCS: OutputPin
[src]

pub fn new(spi: SPI, ncs: NCS) -> Self[src]

Create a new SpiDevice

Trait Implementations

impl<SPI, NCS, E, EO> Device for SpiDevice<SPI, NCS> where
    SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
    NCS: OutputPin<Error = EO>, 
[src]

type Error = SpiError<E, EO>

The type of error for all results

impl<SPI, NCS, E, EO> NineDOFDevice for SpiDevice<SPI, NCS> where
    SPI: Write<u8, Error = E> + Transfer<u8, Error = E>,
    NCS: OutputPin<Error = EO>, 
[src]

Auto Trait Implementations

impl<SPI, GPIO> Unpin for SpiDevice<SPI, GPIO> where
    GPIO: Unpin,
    SPI: Unpin

impl<SPI, GPIO> Send for SpiDevice<SPI, GPIO> where
    GPIO: Send,
    SPI: Send

impl<SPI, GPIO> Sync for SpiDevice<SPI, GPIO> where
    GPIO: Sync,
    SPI: Sync

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]