pub fn read_words_with_crc<I: I2c>(
    i2c: &mut I,
    addr: u8,
    data: &mut [u8]
) -> Result<(), Error<I>>
Expand description

Read data into the provided buffer and validate the CRC8 checksum.

If the checksum is wrong, return Error::Crc.

§Panics

This method will consider every third byte a checksum byte. If the buffer size is not a multiple of 3, then it will panic.