User Manual

API useful additional functions UM2039
18/26 DocID029105 Rev 1
Use VL53L0X_SetLimitCheckEnable() and VL53L0X_GetLimitCheckEnable() to
enable/disable a limit.
The limit value is set using VL53L0X_SetLimitCheckValue() and
VL53L0X_GetLimitCheckValue().
Two additional functions give access to the current value and state against which the limit is
compared:
VL53L0X_GetLimitCheckCurrent() and VL53L0X_GetLimitCheckStatus()
Table 2 gives the default limit states and values.
Example of use:
Status = VL53L0X_SetLimitCheckEnable(pMyDevice,
VL53L0X_CHECKENABLE_SIGNAL_RATE_FINAL_RANGE, 1);
Status = VL53L0X_SetLimitCheckValue(pMyDevice,
VL53L0X_CHECKENABLE_SIGNAL_RATE_FINAL_RANGE, 0.40*65536);
The current sigma value (the actual one, not the limit) can be accessed by calling:
Status = VL53L0X_GetLimitCheckCurrent(pMyDevice,
VL53L0X_CHECKENABLE_SIGMA_FINAL_RANGE, &Sigma);
6.3 Timed ranging
When the ranging mode is set to timed ranging, user has to define the period of time
between two consecutive measurements.
VL53L0X_SetInterMeasurementPeriodMilliSeconds()and
VL53L0X_GetInterMeasurementPeriodMilliSeconds()
6.4 API versions and product revision
User can get the API version and the PAL specification version.
VL53L0X_GetVersion()
VL53L0X_GetPalSpecVersion()
VL53L0X_GetProductRevision() functions returns the device cut ID.
Table 2. Default limit states and values
Limit ID Default limit state Default limit value
Sigma Enabled 18mm
Return Signal Enabled 0.25Mcps
Range Ignore Threshold Disabled
N x Xtalk Mcps/spad
where N = 1.5 by default