[][src]Trait bmi160::interface::ReadData

pub trait ReadData: Sealed {
    type Error;
    fn read_register(&mut self, register: u8) -> Result<u8, Self::Error>;
fn read_data(&mut self, payload: &mut [u8]) -> Result<(), Self::Error>; }

Read data

Associated Types

type Error

Error type

Loading content...

Required methods

fn read_register(&mut self, register: u8) -> Result<u8, Self::Error>

Read an u8 register

fn read_data(&mut self, payload: &mut [u8]) -> Result<(), Self::Error>

Read some data. The first element corresponds to the starting address.

Loading content...

Implementors

impl<I2C, E> ReadData for I2cInterface<I2C> where
    I2C: WriteRead<Error = E>, 
[src]

type Error = Error<E, ()>

impl<SPI, CS, CommE, PinE> ReadData for SpiInterface<SPI, CS> where
    SPI: Transfer<u8, Error = CommE>,
    CS: OutputPin<Error = PinE>, 
[src]

type Error = Error<CommE, PinE>

Loading content...