Crate vl53l4cd

Source
Expand description

Async driver for the VL53L4CD ToF distance sensor.

This crate is very much a port of the STM32Duino VL53L4CD library.

Datasheet

Modules§

wait
The VL53L4CD sensor both pulls the GPIO1 pin low and flips some bits when a measurement is ready. This module provides a trait for waiting for a measurement, regardless of how you connect the sensor to the microcontroller.

Structs§

Measurement
A VL53L4CD measurement.
Vl53l4cd
A VL53L4CD ToF range sensor.

Enums§

Error
VL53L4CD driver error. In order to get more details, enable the defmt feature.
Register
A register on the device, identified by a 16-bit address.
Severity
Severity of a measurement status.
Status
Measurement status as per the user manual.

Constants§

PERIPHERAL_ADDR
Default I²C address of the VL53L4CD.

Functions§

range_config_values
Calculate valid values for Register::RANGE_CONFIG_A and Register::RANGE_CONFIG_B.