VL53L0X API Specification: vl53l0x_api_calibration.h Source File

VL53L0X API

vl53l0x_api_calibration.h
Go to the documentation of this file.
1 /*******************************************************************************
2 Copyright � 2016, STMicroelectronics International N.V.
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7  * Redistributions of source code must retain the above copyright
8  notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright
10  notice, this list of conditions and the following disclaimer in the
11  documentation and/or other materials provided with the distribution.
12  * Neither the name of STMicroelectronics nor the
13  names of its contributors may be used to endorse or promote products
14  derived from this software without specific prior written permission.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
19 NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED.
20 IN NO EVENT SHALL STMICROELECTRONICS INTERNATIONAL N.V. BE LIABLE FOR ANY
21 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *******************************************************************************/
28 
29 #ifndef _VL53L0X_API_CALIBRATION_H_
30 #define _VL53L0X_API_CALIBRATION_H_
31 
32 #include "vl53l0x_def.h"
33 #include "vl53l0x_platform.h"
34 
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
41  FixPoint1616_t XTalkCalDistance,
42  FixPoint1616_t *pXTalkCompensationRateMegaCps);
43 
45  FixPoint1616_t CalDistanceMilliMeter,
46  int32_t *pOffsetMicroMeter);
47 
49  int32_t OffsetCalibrationDataMicroMeter);
50 
52  int32_t *pOffsetCalibrationDataMicroMeter);
53 
55 
57  uint32_t *refSpadCount, uint8_t *isApertureSpads);
58 
60  uint32_t count, uint8_t isApertureSpads);
61 
63  uint32_t *pSpadCount, uint8_t *pIsApertureSpads);
64 
66  uint8_t *pPhaseCal, const uint8_t get_data_enable,
67  const uint8_t restore_config);
68 
70  uint8_t *pVhvSettings, uint8_t *pPhaseCal, uint8_t get_data_enable);
71 
73  uint8_t VhvSettings, uint8_t PhaseCal);
74 
76  uint8_t *pVhvSettings, uint8_t *pPhaseCal);
77 
78 
79 
80 
81 #ifdef __cplusplus
82 }
83 #endif
84 
85 #endif /* _VL53L0X_API_CALIBRATION_H_ */
VL53L0X_Error VL53L0X_get_reference_spads(VL53L0X_DEV Dev, uint32_t *pSpadCount, uint8_t *pIsApertureSpads)
int int32_t
Typedef defining 32 bit int type.
Definition: vl53l0x_types.h:80
VL53L0X_Error VL53L0X_set_reference_spads(VL53L0X_DEV Dev, uint32_t count, uint8_t isApertureSpads)
VL53L0X_Error VL53L0X_perform_ref_spad_management(VL53L0X_DEV Dev, uint32_t *refSpadCount, uint8_t *isApertureSpads)
Function prototype definitions for Ewok Platform layer.
VL53L0X_Error VL53L0X_perform_ref_calibration(VL53L0X_DEV Dev, uint8_t *pVhvSettings, uint8_t *pPhaseCal, uint8_t get_data_enable)
unsigned int uint32_t
Typedef defining 32 bit unsigned int type.
Definition: vl53l0x_types.h:75
uint32_t FixPoint1616_t
use where fractional values are expected
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l0x_types.h:95
Generic PAL device type that does link between API and platform abstraction layer.
VL53L0X_Error VL53L0X_apply_offset_adjustment(VL53L0X_DEV Dev)
VL53L0X_Error VL53L0X_get_offset_calibration_data_micro_meter(VL53L0X_DEV Dev, int32_t *pOffsetCalibrationDataMicroMeter)
VL53L0X_Error VL53L0X_set_ref_calibration(VL53L0X_DEV Dev, uint8_t VhvSettings, uint8_t PhaseCal)
VL53L0X_Error VL53L0X_perform_xtalk_calibration(VL53L0X_DEV Dev, FixPoint1616_t XTalkCalDistance, FixPoint1616_t *pXTalkCompensationRateMegaCps)
Type definitions for VL53L0X API.
VL53L0X_Error VL53L0X_perform_phase_calibration(VL53L0X_DEV Dev, uint8_t *pPhaseCal, const uint8_t get_data_enable, const uint8_t restore_config)
VL53L0X_Error VL53L0X_get_ref_calibration(VL53L0X_DEV Dev, uint8_t *pVhvSettings, uint8_t *pPhaseCal)
int8_t VL53L0X_Error
Definition: vl53l0x_def.h:131
VL53L0X_Error VL53L0X_perform_offset_calibration(VL53L0X_DEV Dev, FixPoint1616_t CalDistanceMilliMeter, int32_t *pOffsetMicroMeter)
VL53L0X_Error VL53L0X_set_offset_calibration_data_micro_meter(VL53L0X_DEV Dev, int32_t OffsetCalibrationDataMicroMeter)