没有合适的资源?快使用搜索试试~ 我知道了~
VL53L0X API DOC
3星 · 超过75%的资源 需积分: 9 12 下载量 144 浏览量
2017-08-02
14:52:29
上传
评论
收藏 3.42MB PDF 举报
温馨提示
试读
157页
This document is intended to aid in the development of applications around PAL sensor family and describes the various API functions provided by the API delivered by ST as open source C code. Some of the API files are hardware and platform dependent (specially I2C access) so need to be adapted to the platform used by the customer.
资源推荐
资源详情
资源评论
i
VL53L0X API Specification
Version 1.0.2.4823
10/13/2016 11:11:00 AM
ii
iii
Table of Contents
Documentation ....................................................................................................................................................... 1
Introduction ........................................................................................................................................................ 1
Overview ........................................................................................................................................................ 1
Device Info from API ..................................................................................................................................... 1
Coding Standards ............................................................................................................................................ 1
Platform .................................................................................................................................................................. 1
RangeStatus ............................................................................................................................................................ 2
Strings ..................................................................................................................................................................... 3
Disclaimer............................................................................................................................................................... 4
Module Index .......................................................................................................................................................... 4
Data Structure Index ............................................................................................................................................... 5
File Index ................................................................................................................................................................ 5
Module Documentation .......................................................................................................................................... 6
VL53L0X Platform Functions ............................................................................................................................ 6
PAL Register Access Functions ......................................................................................................................... 8
Basic type definition ......................................................................................................................................... 11
VL53L0X cut1.1 Function Definition .............................................................................................................. 11
VL53L0X General Functions ........................................................................................................................... 12
VL53L0X Init Functions .................................................................................................................................. 19
VL53L0X Parameters Functions ...................................................................................................................... 22
VL53L0X Measurement Functions .................................................................................................................. 40
VL53L0X Interrupt Functions .......................................................................................................................... 47
VL53L0X SPAD Functions .............................................................................................................................. 51
VL53L0X Defines ............................................................................................................................................ 55
Error and Warning code returned by API ......................................................................................................... 58
Defines Device modes ...................................................................................................................................... 61
Defines Histogram modes ................................................................................................................................. 62
List of available Power Modes ......................................................................................................................... 63
Defines the current status of the device ............................................................................................................ 64
Defines the Polarity .......................................................................................................................................... 65
Vcsel Period Defines ........................................................................................................................................ 66
Defines the steps ............................................................................................................................................... 67
Defines the Polarity .......................................................................................................................................... 67
General Macro Defines ..................................................................................................................................... 68
VL53L0X cut1.1 Device Specific Defines ....................................................................................................... 71
Device Error ..................................................................................................................................................... 71
Check Enable list .............................................................................................................................................. 74
Gpio Functionality ............................................................................................................................................ 75
Define Registers ............................................................................................................................................... 76
Data Structure Documentation ............................................................................................................................. 84
VL53L0X_Dev_t .............................................................................................................................................. 84
VL53L0X_DevData_t ...................................................................................................................................... 85
VL53L0X_DeviceInfo_t................................................................................................................................... 88
VL53L0X_DeviceParameters_t........................................................................................................................ 89
VL53L0X_DeviceSpecificParameters_t........................................................................................................... 91
VL53L0X_DMaxData_t ................................................................................................................................... 93
VL53L0X_HistogramData_t ............................................................................................................................ 94
VL53L0X_HistogramMeasurementData_t....................................................................................................... 94
VL53L0X_RangeData_t ................................................................................................................................... 95
VL53L0X_RangingMeasurementData_t .......................................................................................................... 96
VL53L0X_SchedulerSequenceSteps_t ............................................................................................................. 97
VL53L0X_SpadData_t ..................................................................................................................................... 98
VL53L0X_Version_t ........................................................................................................................................ 99
File Documentation ............................................................................................................................................ 100
PAL_disclaimer.c ........................................................................................................................................... 100
iv
vl53l0x_api.h .................................................................................................................................................. 100
vl53l0x_api_calibration.h ............................................................................................................................... 106
vl53l0x_api_core.h ......................................................................................................................................... 107
vl53l0x_api_ranging.h .................................................................................................................................... 110
vl53l0x_api_strings.h ..................................................................................................................................... 110
vl53l0x_def.h .................................................................................................................................................. 118
vl53l0x_device.h ............................................................................................................................................. 121
vl53l0x_doxydoc.c ......................................................................................................................................... 123
vl53l0x_i2c_platform.h .................................................................................................................................. 123
vl53l0x_interrupt_threshold_settings.h .......................................................................................................... 130
vl53l0x_platform.h ......................................................................................................................................... 130
vl53l0x_platform_log.h .................................................................................................................................. 132
vl53l0x_tuning.h ............................................................................................................................................. 133
vl53l0x_types.h............................................................................................................................................... 134
Index ................................................................................................................................................................... 135
1
Documentation
Introduction
The Photonics Abstraction Layer (PAL) is intended to provide an API functions to aid the
development of applications.
Overview
This document is intended to aid in the development of applications around PAL sensor family and
describes the various API functions provided by the API delivered by ST as open source C code.
Some of the API files are hardware and platform dependent (specially I2C access) so need to be
adapted to the platform used by the customer.
Device Info from API
The API provide a function that can be used to obtain information of the device used like the cut
version. This function is VL53L0X_GetDeviceInfo() .
Coding Standards
The implementation of this API will follow Linux Kernel rules as defined in
https://www.kernel.org/doc/Documentation/CodingStyle
Platform
All API settings that are platform-dependent must be adapted to the platform on which API is
compiled/running.
This is done in VL53L0X_platform.h file. Platform settings are described in the VL53L0X Platform
Functions module.
1. PAL device type definition
User must provide VL53L0X_Dev_t type (in VL53L0X_platform.h file) as all API functions and
macros rely on VL53L0X_Dev_t dev (given as first argument). This dev object does the link
between API and platform abstraction layer and is passed from function to function down to final
platform abstraction layer that handles final access to the device :
int VL53L0X_xxxx(VL53L0X_Dev_t dev, ... )
In single device case, dev can be as simple as an integer being the i2c device address
For more elaborated platform, dev can be a pointer to a structure containing all necessary items for
the platform.
剩余156页未读,继续阅读
资源评论
- wei41352018-01-30有下载错误。
kingson129
- 粉丝: 1
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Matlab人脸肤色定理的教师人数统计+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab霍夫曼变换的表盘读数识别+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab火灾烟雾检测源码带GUI界面+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab的恶劣天气交通标志识别系统+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于MATLAB的霍夫曼变换的表盘示数识别+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab的车道线识别系统 +源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于MATLAB的教室人数统计系统带Gui界面+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于MATLAB的教室人数统计系统带Gui界面+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于MATLAB 的霍夫曼变换答题卡识别源码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
- 基于Matlab+bp神经网络的神经网络汉字识别系统+源代码+全部数据+文档说明+详细注释+使用说明+截图(高分课程设计)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功