[][src]Struct bno080::interface::spi::SpiInterface

pub struct SpiInterface<SPI, CSN, IN, WAK, RSTN> { /* fields omitted */ }

This combines the SPI peripheral and associated control pins such as:

  • CSN : Chip Select (aka SS or Slave Select)
  • HINTN: Hardware Interrupt. Sensor uses this to indicate it had data available for read
  • WAK: Wake pin. Master asserts this to choose SPI mode, then deasserts to wake up the sensor.

Methods

impl<SPI, CSN, IN, WAK, RSTN, CommE, PinE> SpiInterface<SPI, CSN, IN, WAK, RSTN> where
    SPI: Write<u8, Error = CommE> + Transfer<u8, Error = CommE>,
    CSN: OutputPin<Error = PinE>,
    IN: InputPin<Error = PinE>,
    WAK: OutputPin<Error = PinE>,
    RSTN: OutputPin<Error = PinE>, 
[src]

pub fn new(spi: SPI, csn: CSN, hintn: IN, waken: WAK, reset: RSTN) -> Self[src]

Trait Implementations

impl<SPI, CSN, IN, WAK, RS, CommE, PinE> SensorInterface for SpiInterface<SPI, CSN, IN, WAK, RS> where
    SPI: Write<u8, Error = CommE> + Transfer<u8, Error = CommE>,
    CSN: OutputPin<Error = PinE>,
    IN: InputPin<Error = PinE>,
    WAK: OutputPin<Error = PinE>,
    RS: OutputPin<Error = PinE>, 
[src]

type SensorError = Error<CommE, PinE>

Interface error type

Auto Trait Implementations

impl<SPI, CSN, IN, WAK, RSTN> Send for SpiInterface<SPI, CSN, IN, WAK, RSTN> where
    CSN: Send,
    IN: Send,
    RSTN: Send,
    SPI: Send,
    WAK: Send

impl<SPI, CSN, IN, WAK, RSTN> Sync for SpiInterface<SPI, CSN, IN, WAK, RSTN> where
    CSN: Sync,
    IN: Sync,
    RSTN: Sync,
    SPI: Sync,
    WAK: Sync

impl<SPI, CSN, IN, WAK, RSTN> Unpin for SpiInterface<SPI, CSN, IN, WAK, RSTN> where
    CSN: Unpin,
    IN: Unpin,
    RSTN: Unpin,
    SPI: Unpin,
    WAK: 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> Same<T> for T

type Output = T

Should always be Self

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.