A crate for low-level access to the registers on the VL53L1X.
- A type for every "entry" in the register map.
Entrytrait for abstracting over register entries.
Indextype for a dynamic representation of entry indices into the register map.
Statetype for a dynamic representation of entry state.
read_*functions for writing and reading to and from the VL53L1X's registers.
structsmodule with commonly grouped registers and generated methods for writing and reading these groups at once.
The generated code takes quite a while to compile (~7 secs) so it has been split into this
separate crate and re-exported under the
reg module in the main crate.
A dynamic representation of an entry's 16-bit index within the register map.
A dynamic representation of entry state.
The maximum amount of data that may be written to
The slave address of the VL53L1X. Note that
Implemented for all entries within the register map.
Shorthand for reading a single byte from the register at the given index.
Read the value for a single entry.
Read the value at the given index into the given slice.
Shorthand for reading two consecutive bytes from the given index.
Shorthand for writing a slice with a single byte.
Read the the given entry.
Write given slice of data to the device at the given index.
Shorthand for writing a slice with a single word.