Trait vl53l1_reg::structs::Entries
source · pub trait Entries: Sized {
const INDEX: Index;
const LEN_BYTES: usize;
fn write_to_slice(&self, slice: &mut [u8]);
fn write<I>(&self, i2c: &mut I) -> Result<(), I::Error>
where
I: Write;
fn read<I>(i2c: &mut I) -> Result<Self, I::Error>
where
I: WriteRead;
}
Expand description
A struct of contiguous entries within the register map.
Required Associated Constants§
Required Methods§
sourcefn write_to_slice(&self, slice: &mut [u8])
fn write_to_slice(&self, slice: &mut [u8])
Write the entries to a single slice.
Entries that follow that are non-contiguous will contain zeroed values.
The slice must be at least LEN_BYTES
or this method will panic
.