Functions used for the measurements. More...
Functions | |
VL53L1_Error | VL53L1_ClearInterruptAndStartMeasurement (VL53L1_DEV Dev) |
Clear the Interrupt flag and start new measurement *. More... | |
VL53L1_Error | VL53L1_GetMeasurementDataReady (VL53L1_DEV Dev, uint8_t *pMeasurementDataReady) |
Return Measurement Data Ready. More... | |
VL53L1_Error | VL53L1_GetRangingMeasurementData (VL53L1_DEV Dev, VL53L1_RangingMeasurementData_t *pRangingMeasurementData) |
Retrieve the measurements from device for a given setup. More... | |
VL53L1_Error | VL53L1_StartMeasurement (VL53L1_DEV Dev) |
Start device measurement. More... | |
VL53L1_Error | VL53L1_StopMeasurement (VL53L1_DEV Dev) |
Stop device measurement. More... | |
VL53L1_Error | VL53L1_WaitMeasurementDataReady (VL53L1_DEV Dev) |
Wait for measurement data ready. Blocking function. Note that the timeout is given by: VL53L1_RANGE_COMPLETION_POLLING_TIMEOUT_MS defined in def.h. More... | |
Functions used for the measurements.
VL53L1_Error VL53L1_ClearInterruptAndStartMeasurement | ( | VL53L1_DEV | Dev | ) |
Clear the Interrupt flag and start new measurement *.
Dev | Device Handle |
Definition at line 1883 of file vl53l1_api.c.
VL53L1_Error VL53L1_GetMeasurementDataReady | ( | VL53L1_DEV | Dev, |
uint8_t * | pMeasurementDataReady | ||
) |
Return Measurement Data Ready.
Dev | Device Handle |
pMeasurementDataReady | Pointer to Measurement Data Ready. 0 = data not ready, 1 = data ready |
Definition at line 1910 of file vl53l1_api.c.
VL53L1_Error VL53L1_GetRangingMeasurementData | ( | VL53L1_DEV | Dev, |
VL53L1_RangingMeasurementData_t * | pRangingMeasurementData | ||
) |
Retrieve the measurements from device for a given setup.
Dev | Device Handle |
pRangingMeasurementData | Pointer to the data structure to fill up. |
Definition at line 2159 of file vl53l1_api.c.
VL53L1_Error VL53L1_StartMeasurement | ( | VL53L1_DEV | Dev | ) |
Start device measurement.
Started measurement will depend on preset parameters set through VL53L1_SetPreseMode() This function will change the VL53L1_State from VL53L1_STATE_IDLE to VL53L1_STATE_RUNNING.
Dev | Device Handle |
Definition at line 1732 of file vl53l1_api.c.
VL53L1_Error VL53L1_StopMeasurement | ( | VL53L1_DEV | Dev | ) |
Stop device measurement.
Will set the device in standby mode at end of current measurement
Not necessary in single mode as device shall return automatically in standby mode at end of measurement. This function will change the VL53L1_State from VL53L1_STATE_RUNNING to VL53L1_STATE_IDLE.
Dev | Device Handle |
Definition at line 1794 of file vl53l1_api.c.
VL53L1_Error VL53L1_WaitMeasurementDataReady | ( | VL53L1_DEV | Dev | ) |
Wait for measurement data ready. Blocking function. Note that the timeout is given by: VL53L1_RANGE_COMPLETION_POLLING_TIMEOUT_MS defined in def.h.
Dev | Device Handle |
Definition at line 1923 of file vl53l1_api.c.