ToF unit.
More...
#include <unit_VL53L0X.hpp>
|
bool | start_periodic_measurement () |
|
bool | start_periodic_measurement (const vl53l0x::Mode mode) |
|
bool | stop_periodic_measurement () |
|
bool | read_data_ready_status () |
|
bool | read_measurement (vl53l0x::Data &d) |
|
bool | write_default_values () |
|
bool | perform_single_ref_calibration (bool VHV) |
|
bool | write_vcsel_period_range (const uint8_t pre_pclk, const uint8_t final_pclk) |
|
bool | soft_reset () |
|
bool | write_default_settings () |
|
| M5_UNIT_COMPONENT_PERIODIC_MEASUREMENT_ADAPTER_HPP_BUILDER (UnitVL53L0X, vl53l0x::Data) |
|
◆ changeI2CAddress()
bool m5::unit::UnitVL53L0X::changeI2CAddress |
( |
const uint8_t | i2c_address | ) |
|
Change unit I2C address.
- Parameters
-
- Returns
- True if successful
◆ measureSingleshot()
bool m5::unit::UnitVL53L0X::measureSingleshot |
( |
vl53l0x::Data & | d | ) |
|
Measurement single shot in the current settings.
- Parameters
-
- Returns
- True if successful
- Warning
- During periodic detection runs, an error is returned
-
Processing is blocked until results are returned
◆ mode()
Gets the inner mode.
@Properties
◆ range()
int16_t m5::unit::UnitVL53L0X::range |
( |
| ) |
const |
|
inline |
Oldest measured range(mm)
- Warning
- Returns a negative value if there is a range error or empty
◆ readI2CAddress()
bool m5::unit::UnitVL53L0X::readI2CAddress |
( |
uint8_t & | i2c_address | ) |
|
Read the I2C address.
- Parameters
-
i2c_address[out] | I2C address |
- Returns
- True if successful
◆ readSignalRateLimit()
bool m5::unit::UnitVL53L0X::readSignalRateLimit |
( |
float & | mcps | ) |
|
Read the signal range limit.
- Parameters
-
- Returns
- True if successful
◆ startPeriodicMeasurement() [1/2]
bool m5::unit::UnitVL53L0X::startPeriodicMeasurement |
( |
| ) |
|
|
inline |
Start periodic measurement in the current settings.
- Returns
- True if successful
◆ startPeriodicMeasurement() [2/2]
bool m5::unit::UnitVL53L0X::startPeriodicMeasurement |
( |
const vl53l0x::Mode | mode | ) |
|
|
inline |
Start periodic measurement.
- Parameters
-
- Returns
- True if successful
◆ stopPeriodicMeasurement()
bool m5::unit::UnitVL53L0X::stopPeriodicMeasurement |
( |
| ) |
|
|
inline |
Stop periodic measurement.
- Returns
- True if successful
◆ writeMode()
bool m5::unit::UnitVL53L0X::writeMode |
( |
const vl53l0x::Mode | mode | ) |
|
Write the operation mode.
- Parameters
-
- Returns
- True if successful
◆ writeSignalRateLimit()
bool m5::unit::UnitVL53L0X::writeSignalRateLimit |
( |
const float | mcps | ) |
|
Write the signal range limit.
- Parameters
-
- Returns
- True if successful