Contents UM2356
2/27 DocID031478 Rev 1
内容
1
VL53L1X系统概述 .............................................................................................................. 4
2
测距API函数描述 .............................................................................................................. 5
2.1
自主测距说明 ...................................................................................................................... 5
2.2
时机考虑 ............................................................................................................................. 5
2.3
API函数调用流程 ................................................................................................................ 6
2.3.1 校准流程 ............................................................................................................................. 6
2.3.2 流量 .................................................................................................................................... 7
2.4 强制测距功能 .................................................................................................................... ..8
2.4.1 数据初始化 ........................................................................................................................ ..8
2.4.2 静态初始化 ........................................................................................................................ ..8
2.4.3 开始测量 ........................................................................................................................... ..8
2.4.4 等待结果:轮询或中断 ...................................................................................................... ..8
2.4.5 获取测量 ........................................................................................................................... ..8
2.4.6 清楚中断的来源 ................................................................................................................ ..9
2.4.7 停止测量 ........................................................................................................................... ..9
2.5 可选的驱动功能 ................................................................................................................ ..9
2.5.1 等待启动 ........................................................................................................................... ..9
2.5.2 时间预算和测量间期 ......................................................................................................... ..9
2.5.3 距离模式 ........................................................................................................................... 10
2.5.4 限制检查设置 .................................................................................................................... 10
2.5.5 阈值 .................................................................................................................................. 12
2.5.6 感兴趣区域(ROI)设置 ................................................................................................... 13
2.5.7 Spad数组坐标与场景 .......................................................................................................... 15
2.5.8 光学中心坐标 .................................................................................................................... 15
2.5.9 VDDIO配置 ......................................................................................................................... 16
2.6 RangingMeasurementData结构 ........................................................................................... 16
3
校准功能 ........................................................................................................................ 18
3.1
RefSPAD校准 ...................................................................................................................... 18
3.1.1 RefSPAD校准功能 ............................................................................................................... 18
3.1.2 RefSPAD校准程序 ............................................................................................................... 19
3.1.3 获得RefSPAD校准结果 ....................................................................................................... 19