A crate for low-level access to the registers on the VL53L1X.
Provides:
- A type for every "entry" in the register map.
- An
Entry
trait for abstracting over register entries. - An
Index
type for a dynamic representation of entry indices into the register map. - An
State
type for a dynamic representation of entry state. write_*
andread_*
functions for writing and reading to and from the VL53L1X's registers.- A
structs
module 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.