7.25 SetOffset
VL53L1X_ERROR VL53L1X_SetOffset(VL53L1_Dev_t dev,
int16_t OffsetValue);
This function programs the offset correction in mm where OffsetValue = the offset correction value to program in
mm.
7.26 GetOffset
VL53L1X_ERROR VL53L1X_GetOffset(VL53L1_Dev_t dev, int16_t *Offset);
This function returns the programmed offset correction value in mm.
7.27 SetXtalk
VL53L1X_ERROR VL53L1X_SetXtalk(VL53L1_Dev_t dev, uint16_t XtalkValue);
This function programs the crosstalk correction value in cps. This is the number of photons reflected back from
the cover glass in cps.
7.28 GetXtalk
VL53L1X_ERROR VL53L1X_GetXtalk(VL53L1_Dev_t dev, uint16_t *Xtalk);
This function returns the current programmed crosstalk correction value in cps.
7.29 SetDistanceThreshold
VL53L1X_ERROR VL53L1X_SetDistanceThreshold(VL53L1_Dev_t dev,
uint16_t ThreshLow,
uint16_t ThreshHigh, uint8_t Window,
uint8_t IntOnNoTarget);
This function programs the threshold detection mode. For example:
VL53L1X_SetDistanceThreshold(dev,100,300,0,1): below 100
VL53L1X_SetDistanceThreshold(dev,100,300,1,1): above 300
VL53L1X_SetDistanceThreshold(dev,100,300,2,1): out-of-window
VL53L1X_SetDistanceThreshold(dev,100,300,3,1): in window
Where:
• dev is the device address
• ThreshLow(in mm) is the threshold under which the device raises an interrupt if window = 0
• ThreshHigh(in mm) is the threshold above which the device raises an interrupt if window = 1
• IntOnNoTarget is the window detection mode where 0 = below, 1 = above, 2 = out, and 3 = in
• IntOnNoTarget = 1 (no longer used so just use 1)
7.30 GetDistanceThresholdWindow
VL53L1X_ERROR VL53L1X_GetDistanceThresholdWindow(VL53L1_Dev_t dev,
uint16_t *window);
This function returns the window detection mode where 0 = below, 1 = above, 2 = out and 3 = in.
UM2510
SetOffset
UM2510 - Rev 1
page 18/26