pub trait ReadData {
    type Error;

    fn read_register(&mut self, register: u8) -> Result<u8, Error<Self::Error>>;
    fn read_data(&mut self, payload: &mut [u8]) -> Result<(), Error<Self::Error>>;
}
Expand description

Read data

Required Associated Types

Error type

Required Methods

Read an u8 register

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

Implementors