[−][src]Trait bmi160::interface::ReadData
Read data
Associated Types
type Error
Error type
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.
Implementors
impl<I2C, E> ReadData for I2cInterface<I2C> where
I2C: WriteRead<Error = E>,
[src]
I2C: WriteRead<Error = E>,
type Error = Error<E, ()>
fn read_register(&mut self, register: u8) -> Result<u8, Self::Error>
[src]
fn read_data(&mut self, payload: &mut [u8]) -> Result<(), Self::Error>
[src]
impl<SPI, CS, CommE, PinE> ReadData for SpiInterface<SPI, CS> where
SPI: Transfer<u8, Error = CommE>,
CS: OutputPin<Error = PinE>,
[src]
SPI: Transfer<u8, Error = CommE>,
CS: OutputPin<Error = PinE>,