资源简介
Vl53L0x的API函数,ST的TOF测距模块,最大测距范围2m。官方的API函数
代码片段和文件信息
/*******************************************************************************
Copyright ?2016 STMicroelectronics International N.V.
All rights reserved.
Redistribution and use in source and binary forms with or without
modification are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of STMicroelectronics nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS“ AND
ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED
WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND
NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED.
IN NO EVENT SHALL STMICROELECTRONICS INTERNATIONAL N.V. BE LIABLE FOR ANY
DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL DAMAGES
(INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
******************************************************************************/
#include “vl53l0x_api.h“
#include “vl53l0x_tuning.h“
#include “vl53l0x_interrupt_threshold_settings.h“
#include “vl53l0x_api_core.h“
#include “vl53l0x_api_calibration.h“
#include “vl53l0x_api_strings.h“
#ifndef __KERNEL__
#include
#endif
#define LOG_FUNCTION_START(fmt ...) \
_LOG_FUNCTION_START(TRACE_MODULE_API fmt ##__VA_ARGS__)
#define LOG_FUNCTION_END(status ...) \
_LOG_FUNCTION_END(TRACE_MODULE_API status ##__VA_ARGS__)
#define LOG_FUNCTION_END_FMT(status fmt ...) \
_LOG_FUNCTION_END_FMT(TRACE_MODULE_API status fmt ##__VA_ARGS__)
#ifdef VL53L0X_LOG_ENABLE
#define trace_print(level ...) trace_print_module_function(TRACE_MODULE_API \
level TRACE_FUNCTION_NONE ##__VA_ARGS__)
#endif
/* Group PAL General Functions */
VL53L0X_Error VL53L0X_GetVersion(VL53L0X_Version_t *pVersion)
{
VL53L0X_Error Status = VL53L0X_ERROR_NONE;
LOG_FUNCTION_START(““);
pVersion->major = VL53L0X_IMPLEMENTATION_VER_MAJOR;
pVersion->minor = VL53L0X_IMPLEMENTATION_VER_MINOR;
pVersion->build = VL53L0X_IMPLEMENTATION_VER_SUB;
pVersion->revision = VL53L0X_IMPLEMENTATION_VER_REVISION;
LOG_FUNCTION_END(Status);
return Status;
}
VL53L0X_Error VL53L0X_GetPalSpecVersion(
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-10-10 20:19 VL53L0X_1.0.2\Api\
目录 0 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\
目录 0 2016-10-13 09:35 VL53L0X_1.0.2\Api\core\inc\
文件 76611 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\inc\vl53l0x_api.h
文件 3492 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\inc\vl53l0x_api_calibration.h
文件 4408 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\inc\vl53l0x_api_core.h
文件 2033 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\inc\vl53l0x_api_ranging.h
文件 12851 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\inc\vl53l0x_api_strings.h
文件 23523 2016-10-13 09:35 VL53L0X_1.0.2\Api\core\inc\vl53l0x_def.h
文件 11240 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\inc\vl53l0x_device.h
文件 4869 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\inc\vl53l0x_interrupt_threshold_settings.h
文件 3714 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\inc\vl53l0x_tuning.h
目录 0 2016-10-10 21:41 VL53L0X_1.0.2\Api\core\src\
文件 82796 2016-10-10 21:41 VL53L0X_1.0.2\Api\core\src\vl53l0x_api.c
文件 83231 2016-10-10 21:34 VL53L0X_1.0.2\Api\core\src\vl53l0x_api.c.bak
文件 36955 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\src\vl53l0x_api_calibration.c
文件 65468 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\src\vl53l0x_api_core.c
文件 2198 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\src\vl53l0x_api_ranging.c
文件 13911 2016-10-10 20:19 VL53L0X_1.0.2\Api\core\src\vl53l0x_api_strings.c
目录 0 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\
目录 0 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\inc\
文件 9063 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\inc\vl53l0x_i2c_platform.h
文件 8730 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\inc\vl53l0x_platform.h
文件 4218 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\inc\vl53l0x_platform_log.h
文件 4336 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\inc\vl53l0x_types.h
目录 0 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\src\
文件 19440 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\src\vl53l0x_i2c_win_serial_comms.c
文件 9057 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\src\vl53l0x_platform.c
文件 2866 2016-10-10 20:19 VL53L0X_1.0.2\Api\platform\src\vl53l0x_platform_log.c
目录 0 2016-10-10 20:19 VL53L0X_1.0.2\ApiExample\
文件 1347 2016-10-10 20:19 VL53L0X_1.0.2\ApiExample\BUILD_vl53l0x_API_LIB_WIN32.bat
............此处省略87个文件信息
- 上一篇:车牌识别2400个正样本
- 下一篇:3_STC15F2K60S2仿真操作
相关资源
- VL53L0X激光测距传感器资料
- VL53L0X中文数据手册.pdf
- VL53L1X驱动例程
- 2路VL53L0X测距.zip
- VL53L0X_general.rar
- VL53L0X激光测高模块使用说明纪使用手
- VL53L0X 3.0 RCWL-0800激光测距
- 基于407写的VL53l0X程序
- VL53L0X激光测距传感器调试代码和原理
- ATK-VL53L0X激光测距模块资料 原理图 程
- VL53l0x的51单片机程序
- VL53L0X测试历程
- 基于STM32的VL53L0X程序源码
- GY530-VL53L0X ARDUINO激光测距代码
- STM32_vl53l0x 激光 测距
- VL53L0X_STM32例程
- VL53L0x datasheet 技术手册
- VL53L0X学习笔记
- 基于stm32f103的VL53L0X-红外测距
- 基于stm32f103的VL53L0X红外测距
- VL53L0X+stm32激光测距
- ST TOF测距传感器 适用于stm32f103系列,
- ATK-VL53L0X.zip
- 基于51单片机的VL53L0X激光测距传感器
评论
共有 条评论