pub fn read_ram(&mut self, address_offset: u8, data: &mut [u8]) -> Result<(), Error<E>> {
        if data.is_empty() {
            return Ok(());
        }
        self.check_ram_parameters(address_offset, &data)?;
        self.i2c
            .write_read(ADDR, &[Register::RAM_BEGIN + address_offset], &mut data[..])
            .map_err(Error::I2C)
    }
/// Read a data array from the user RAM starting at the given offset.
///
/// There is a total of 56 bytes of user RAM available so the valid ranges for
/// the parameters are: `address_offset`: [0-55] and `data` array length: [0-56].
///
/// Will return an `Error::InvalidInputData` if attempting to access a position not
/// available or if attempting to read too much data.
Read a data array from the user RAM starting at the given offset.
There is a total of 56 bytes of user RAM available so the valid ranges for
the parameters are: `address_offset`: [0-55] and `data` array length: [0-56].

Will return an `Error::InvalidInputData` if attempting to access a position not
available or if attempting to read too much data.
Read a data array from the user RAM starting at the given offset . There is a total of 56 bytes of user RAM available so the valid ranges for the parameters are : ` address_offset ` : [ 0 - 55 ] and ` data ` array length : [ 0 - 56 ] . Will return an ` Error :: InvalidInputData ` if attempting to access a position not available or if attempting to read too much data .
pub fn read_ram(&mut self, address_offset: u8, data: &mut [u8]) -> Result<(), Error<E>> {
        if data.is_empty() {
            return Ok(());
        }
        self.check_ram_parameters(address_offset, &data)?;
        self.i2c
            .write_read(ADDR, &[Register::RAM_BEGIN + address_offset], &mut data[..])
            .map_err(Error::I2C)
    }
pub fn read_ram ( & mut self , address_offset : u8 , data : & mut [ u8 ] ) -> Result < ( ) , Error < E > > { if data . is_empty ( ) { return Ok ( ( ) ) ; } self . check_ram_parameters ( address_offset , & data ) ? ; self . i2c . write_read ( ADDR , & [ Register :: RAM_BEGIN + address_offset ] , & mut data [ .. ] ) . map_err ( Error :: I2C ) }
Read a data array from the user RAM starting at the given offset.
Read a data array from the user RAM starting at the given offset .
&mut self
address_offset
u8
data
&mut [u8]