[][src]Function vl53l1_reg::read_slice

pub fn read_slice<I>(
    i2c: &mut I,
    index: Index,
    slice: &mut [u8]
) -> Result<(), I::Error> where
    I: WriteRead

Read the value at the given index into the given slice.

The length of the given slice must represent the length of the expected amount of data to be read.