Data Sheet

Ranging API function descriptions UM2356
14/28 DocID031478 Rev 1
Figure 6. VL53L1X ROI setting example
The VL53L1_UserRoi_t structure contains the coordinates of an ROI:
TopLeftX: 8 bit integer that gives the top left x coordinate [0;15]
TopLeftY: 8 bit integer that gives the top left y coordinate [0;15]
BotRightX: 8 bit integer that gives the bottom right x coordinate [0;15]
BotRightY: 8 bit integer that gives the bottom right x coordinate [0;15]
Example to set one ROI (based on Figure 6):
VL53L1_UserRoi_t roiConfig;
roiConfig.TopLeftX = 9;
roiConfig.TopLeftY = 13;
roiConfig.BotRightX = 14;
roiConfig.BotRightY = 10;
status = VL53L1_SetUserROI(&VL53L1Dev, &roiConfig);
ϭ
Ϭ
R
R
P
R
R
R
%
%
R
R
R
W
W
W
W
W
%
%
W
W
W
W
%
%
%
W
W
W
W
%
%
%
%
%
%
%
%
/HIW
S/
/