The VL53L1CB proximity sensor, based on ST’s FlightSense™, Time-of-Flight technology.

Dependencies:   X_NUCLEO_COMMON ST_INTERFACES

Dependents:   VL53L1CB_noshield_1sensor_polls_auton VL53L1CB_noshield_1sensor_interrupt_auton X_NUCLEO_53L1A2

Based on VL53L1 library, this is a library for the VL53L1CB ToF chip.

Committer:
lugandc
Date:
Wed Jul 21 17:06:38 2021 +0200
Revision:
18:0696efe39d08
Parent:
7:1add29d51e72
Cleanup i2c functions, removed all bad references to L1X
Cleanup VL53L1CB class:
- i2c device object is passed in a consistent way in MyDevice structure
- removed useless functions
Updated VL53L1CB component driver with bare driver release 6.6.7 content

Who changed what in which revision?

UserRevisionLine numberNew contents of line
charlesmn 0:3ac96e360672 1
Charles MacNeill 7:1add29d51e72 2 /* SPDX-License-Identifier: GPL-2.0+ OR BSD-3-Clause */
Charles MacNeill 7:1add29d51e72 3 /******************************************************************************
charlesmn 0:3ac96e360672 4 * Copyright (c) 2020, STMicroelectronics - All Rights Reserved
charlesmn 0:3ac96e360672 5
Charles MacNeill 7:1add29d51e72 6 This file is part of VL53L1 and is dual licensed,
Charles MacNeill 7:1add29d51e72 7 either GPL-2.0+
charlesmn 0:3ac96e360672 8 or 'BSD 3-clause "New" or "Revised" License' , at your option.
Charles MacNeill 7:1add29d51e72 9 ******************************************************************************
Charles MacNeill 7:1add29d51e72 10 */
charlesmn 0:3ac96e360672 11
charlesmn 0:3ac96e360672 12
lugandc 18:0696efe39d08 13
lugandc 18:0696efe39d08 14
lugandc 18:0696efe39d08 15
lugandc 18:0696efe39d08 16 #ifndef _VL53L1_TUNING_PARM_DEFAULTS_H_
lugandc 18:0696efe39d08 17 #define _VL53L1_TUNING_PARM_DEFAULTS_H_
lugandc 18:0696efe39d08 18
lugandc 18:0696efe39d08 19
lugandc 18:0696efe39d08 20 #ifdef __cplusplus
lugandc 18:0696efe39d08 21 extern "C" {
lugandc 18:0696efe39d08 22 #endif
lugandc 18:0696efe39d08 23
charlesmn 0:3ac96e360672 24 #define VL53L1_TUNINGPARM_VERSION_DEFAULT \
lugandc 18:0696efe39d08 25 ((uint16_t) 32)
charlesmn 0:3ac96e360672 26 #define VL53L1_TUNINGPARM_KEY_TABLE_VERSION_DEFAULT \
charlesmn 0:3ac96e360672 27 ((uint16_t) 14)
charlesmn 0:3ac96e360672 28 #define VL53L1_TUNINGPARM_LLD_VERSION_DEFAULT \
charlesmn 0:3ac96e360672 29 ((uint16_t) 12180)
charlesmn 0:3ac96e360672 30 #define VL53L1_TUNINGPARM_HIST_ALGO_SELECT_DEFAULT \
charlesmn 0:3ac96e360672 31 ((uint8_t) 4)
charlesmn 0:3ac96e360672 32 #define VL53L1_TUNINGPARM_HIST_TARGET_ORDER_DEFAULT \
charlesmn 0:3ac96e360672 33 ((uint8_t) 1)
charlesmn 0:3ac96e360672 34 #define VL53L1_TUNINGPARM_HIST_FILTER_WOI_0_DEFAULT \
charlesmn 0:3ac96e360672 35 ((uint8_t) 1)
charlesmn 0:3ac96e360672 36 #define VL53L1_TUNINGPARM_HIST_FILTER_WOI_1_DEFAULT \
charlesmn 0:3ac96e360672 37 ((uint8_t) 2)
charlesmn 0:3ac96e360672 38 #define VL53L1_TUNINGPARM_HIST_AMB_EST_METHOD_DEFAULT \
charlesmn 0:3ac96e360672 39 ((uint8_t) 1)
charlesmn 0:3ac96e360672 40 #define VL53L1_TUNINGPARM_HIST_AMB_THRESH_SIGMA_0_DEFAULT \
charlesmn 0:3ac96e360672 41 ((uint8_t) 80)
charlesmn 0:3ac96e360672 42 #define VL53L1_TUNINGPARM_HIST_AMB_THRESH_SIGMA_1_DEFAULT \
charlesmn 0:3ac96e360672 43 ((uint8_t) 112)
charlesmn 0:3ac96e360672 44 #define VL53L1_TUNINGPARM_HIST_MIN_AMB_THRESH_EVENTS_DEFAULT \
charlesmn 0:3ac96e360672 45 ((int32_t) 16)
charlesmn 0:3ac96e360672 46 #define VL53L1_TUNINGPARM_HIST_AMB_EVENTS_SCALER_DEFAULT \
charlesmn 0:3ac96e360672 47 ((uint16_t) 4157)
charlesmn 0:3ac96e360672 48 #define VL53L1_TUNINGPARM_HIST_NOISE_THRESHOLD_DEFAULT \
charlesmn 0:3ac96e360672 49 ((uint16_t) 50)
charlesmn 0:3ac96e360672 50 #define VL53L1_TUNINGPARM_HIST_SIGNAL_TOTAL_EVENTS_LIMIT_DEFAULT \
charlesmn 0:3ac96e360672 51 ((int32_t) 100)
charlesmn 0:3ac96e360672 52 #define VL53L1_TUNINGPARM_HIST_SIGMA_EST_REF_MM_DEFAULT \
charlesmn 0:3ac96e360672 53 ((uint8_t) 1)
charlesmn 0:3ac96e360672 54 #define VL53L1_TUNINGPARM_HIST_SIGMA_THRESH_MM_DEFAULT \
charlesmn 0:3ac96e360672 55 ((uint16_t) 160)
charlesmn 0:3ac96e360672 56 #define VL53L1_TUNINGPARM_HIST_GAIN_FACTOR_DEFAULT \
charlesmn 0:3ac96e360672 57 ((uint16_t) 1987)
charlesmn 0:3ac96e360672 58 #define VL53L1_TUNINGPARM_CONSISTENCY_HIST_PHASE_TOLERANCE_DEFAULT \
charlesmn 0:3ac96e360672 59 ((uint8_t) 8)
charlesmn 0:3ac96e360672 60 #define VL53L1_TUNINGPARM_CONSISTENCY_HIST_MIN_MAX_TOLERANCE_MM_DEFAULT \
charlesmn 0:3ac96e360672 61 ((uint16_t) 250)
charlesmn 0:3ac96e360672 62 #define VL53L1_TUNINGPARM_CONSISTENCY_HIST_EVENT_SIGMA_DEFAULT \
charlesmn 0:3ac96e360672 63 ((uint8_t) 0)
charlesmn 0:3ac96e360672 64 #define VL53L1_TUNINGPARM_CONSISTENCY_HIST_EVENT_SIGMA_MIN_SPAD_LIMIT_DEFAULT \
charlesmn 0:3ac96e360672 65 ((uint16_t) 2048)
charlesmn 0:3ac96e360672 66 #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_HISTO_LONG_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 67 ((uint8_t) 9)
charlesmn 0:3ac96e360672 68 #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_HISTO_MED_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 69 ((uint8_t) 5)
charlesmn 0:3ac96e360672 70 #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_HISTO_SHORT_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 71 ((uint8_t) 3)
charlesmn 0:3ac96e360672 72 #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_HISTO_LONG_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 73 ((uint8_t) 6)
charlesmn 0:3ac96e360672 74 #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_HISTO_MED_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 75 ((uint8_t) 6)
charlesmn 0:3ac96e360672 76 #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_HISTO_SHORT_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 77 ((uint8_t) 6)
charlesmn 0:3ac96e360672 78 #define VL53L1_TUNINGPARM_XTALK_DETECT_MIN_VALID_RANGE_MM_DEFAULT \
charlesmn 0:3ac96e360672 79 ((int16_t) -50)
charlesmn 0:3ac96e360672 80 #define VL53L1_TUNINGPARM_XTALK_DETECT_MAX_VALID_RANGE_MM_DEFAULT \
charlesmn 0:3ac96e360672 81 ((int16_t) 50)
charlesmn 0:3ac96e360672 82 #define VL53L1_TUNINGPARM_XTALK_DETECT_MAX_SIGMA_MM_DEFAULT \
charlesmn 0:3ac96e360672 83 ((uint16_t) 140)
charlesmn 0:3ac96e360672 84 #define VL53L1_TUNINGPARM_XTALK_DETECT_MIN_MAX_TOLERANCE_DEFAULT \
charlesmn 0:3ac96e360672 85 ((uint16_t) 50)
charlesmn 0:3ac96e360672 86 #define VL53L1_TUNINGPARM_XTALK_DETECT_MAX_VALID_RATE_KCPS_DEFAULT \
charlesmn 0:3ac96e360672 87 ((uint16_t) 64000)
charlesmn 0:3ac96e360672 88 #define VL53L1_TUNINGPARM_XTALK_DETECT_EVENT_SIGMA_DEFAULT \
charlesmn 0:3ac96e360672 89 ((uint8_t) 80)
charlesmn 0:3ac96e360672 90 #define VL53L1_TUNINGPARM_HIST_XTALK_MARGIN_KCPS_DEFAULT \
charlesmn 0:3ac96e360672 91 ((int16_t) 512)
charlesmn 0:3ac96e360672 92 #define VL53L1_TUNINGPARM_CONSISTENCY_LITE_PHASE_TOLERANCE_DEFAULT \
charlesmn 0:3ac96e360672 93 ((uint8_t) 2)
charlesmn 0:3ac96e360672 94 #define VL53L1_TUNINGPARM_PHASECAL_TARGET_DEFAULT \
charlesmn 0:3ac96e360672 95 ((uint8_t) 33)
charlesmn 0:3ac96e360672 96 #define VL53L1_TUNINGPARM_LITE_CAL_REPEAT_RATE_DEFAULT \
charlesmn 0:3ac96e360672 97 ((uint16_t) 0)
charlesmn 0:3ac96e360672 98 #define VL53L1_TUNINGPARM_LITE_RANGING_GAIN_FACTOR_DEFAULT \
charlesmn 0:3ac96e360672 99 ((uint16_t) 2011)
charlesmn 0:3ac96e360672 100 #define VL53L1_TUNINGPARM_LITE_MIN_CLIP_MM_DEFAULT \
charlesmn 0:3ac96e360672 101 ((uint8_t) 0)
charlesmn 0:3ac96e360672 102 #define VL53L1_TUNINGPARM_LITE_LONG_SIGMA_THRESH_MM_DEFAULT \
charlesmn 0:3ac96e360672 103 ((uint16_t) 60)
charlesmn 0:3ac96e360672 104 #define VL53L1_TUNINGPARM_LITE_MED_SIGMA_THRESH_MM_DEFAULT \
charlesmn 0:3ac96e360672 105 ((uint16_t) 60)
charlesmn 0:3ac96e360672 106 #define VL53L1_TUNINGPARM_LITE_SHORT_SIGMA_THRESH_MM_DEFAULT \
charlesmn 0:3ac96e360672 107 ((uint16_t) 60)
charlesmn 0:3ac96e360672 108 #define VL53L1_TUNINGPARM_LITE_LONG_MIN_COUNT_RATE_RTN_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 109 ((uint16_t) 128)
charlesmn 0:3ac96e360672 110 #define VL53L1_TUNINGPARM_LITE_MED_MIN_COUNT_RATE_RTN_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 111 ((uint16_t) 128)
charlesmn 0:3ac96e360672 112 #define VL53L1_TUNINGPARM_LITE_SHORT_MIN_COUNT_RATE_RTN_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 113 ((uint16_t) 128)
charlesmn 0:3ac96e360672 114 #define VL53L1_TUNINGPARM_LITE_SIGMA_EST_PULSE_WIDTH_DEFAULT \
charlesmn 0:3ac96e360672 115 ((uint8_t) 8)
charlesmn 0:3ac96e360672 116 #define VL53L1_TUNINGPARM_LITE_SIGMA_EST_AMB_WIDTH_NS_DEFAULT \
charlesmn 0:3ac96e360672 117 ((uint8_t) 16)
charlesmn 0:3ac96e360672 118 #define VL53L1_TUNINGPARM_LITE_SIGMA_REF_MM_DEFAULT \
charlesmn 0:3ac96e360672 119 ((uint8_t) 1)
charlesmn 0:3ac96e360672 120 #define VL53L1_TUNINGPARM_LITE_RIT_MULT_DEFAULT \
charlesmn 0:3ac96e360672 121 ((uint8_t) 64)
charlesmn 0:3ac96e360672 122 #define VL53L1_TUNINGPARM_LITE_SEED_CONFIG_DEFAULT \
charlesmn 0:3ac96e360672 123 ((uint8_t) 2)
charlesmn 0:3ac96e360672 124 #define VL53L1_TUNINGPARM_LITE_QUANTIFIER_DEFAULT \
charlesmn 0:3ac96e360672 125 ((uint8_t) 2)
charlesmn 0:3ac96e360672 126 #define VL53L1_TUNINGPARM_LITE_FIRST_ORDER_SELECT_DEFAULT \
charlesmn 0:3ac96e360672 127 ((uint8_t) 0)
charlesmn 0:3ac96e360672 128 #define VL53L1_TUNINGPARM_LITE_XTALK_MARGIN_KCPS_DEFAULT \
charlesmn 0:3ac96e360672 129 ((int16_t) 0)
charlesmn 0:3ac96e360672 130 #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_LITE_LONG_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 131 ((uint8_t) 14)
charlesmn 0:3ac96e360672 132 #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_LITE_MED_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 133 ((uint8_t) 10)
charlesmn 0:3ac96e360672 134 #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_LITE_SHORT_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 135 ((uint8_t) 6)
charlesmn 0:3ac96e360672 136 #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_LITE_LONG_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 137 ((uint8_t) 14)
charlesmn 0:3ac96e360672 138 #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_LITE_MED_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 139 ((uint8_t) 10)
charlesmn 0:3ac96e360672 140 #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_LITE_SHORT_RANGE_DEFAULT \
charlesmn 0:3ac96e360672 141 ((uint8_t) 6)
charlesmn 0:3ac96e360672 142 #define VL53L1_TUNINGPARM_TIMED_SEED_CONFIG_DEFAULT \
charlesmn 0:3ac96e360672 143 ((uint8_t) 1)
charlesmn 0:3ac96e360672 144 #define VL53L1_TUNINGPARM_DMAX_CFG_SIGNAL_THRESH_SIGMA_DEFAULT \
charlesmn 0:3ac96e360672 145 ((uint8_t) 32)
charlesmn 0:3ac96e360672 146 #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_0_DEFAULT \
charlesmn 0:3ac96e360672 147 ((uint16_t) 15)
charlesmn 0:3ac96e360672 148 #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_1_DEFAULT \
charlesmn 0:3ac96e360672 149 ((uint16_t) 52)
charlesmn 0:3ac96e360672 150 #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_2_DEFAULT \
charlesmn 0:3ac96e360672 151 ((uint16_t) 200)
charlesmn 0:3ac96e360672 152 #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_3_DEFAULT \
charlesmn 0:3ac96e360672 153 ((uint16_t) 364)
charlesmn 0:3ac96e360672 154 #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_4_DEFAULT \
charlesmn 0:3ac96e360672 155 ((uint16_t) 400)
charlesmn 0:3ac96e360672 156 #define VL53L1_TUNINGPARM_VHV_LOOPBOUND_DEFAULT \
charlesmn 0:3ac96e360672 157 ((uint8_t) 129)
charlesmn 0:3ac96e360672 158 #define VL53L1_TUNINGPARM_REFSPADCHAR_DEVICE_TEST_MODE_DEFAULT \
charlesmn 0:3ac96e360672 159 ((uint8_t) 8)
charlesmn 0:3ac96e360672 160 #define VL53L1_TUNINGPARM_REFSPADCHAR_VCSEL_PERIOD_DEFAULT \
charlesmn 0:3ac96e360672 161 ((uint8_t) 11)
charlesmn 0:3ac96e360672 162 #define VL53L1_TUNINGPARM_REFSPADCHAR_PHASECAL_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 163 ((uint32_t) 1000)
charlesmn 0:3ac96e360672 164 #define VL53L1_TUNINGPARM_REFSPADCHAR_TARGET_COUNT_RATE_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 165 ((uint16_t) 2560)
charlesmn 0:3ac96e360672 166 #define VL53L1_TUNINGPARM_REFSPADCHAR_MIN_COUNTRATE_LIMIT_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 167 ((uint16_t) 1280)
charlesmn 0:3ac96e360672 168 #define VL53L1_TUNINGPARM_REFSPADCHAR_MAX_COUNTRATE_LIMIT_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 169 ((uint16_t) 5120)
charlesmn 0:3ac96e360672 170 #define VL53L1_TUNINGPARM_XTALK_EXTRACT_NUM_OF_SAMPLES_DEFAULT \
charlesmn 0:3ac96e360672 171 ((uint8_t) 7)
charlesmn 0:3ac96e360672 172 #define VL53L1_TUNINGPARM_XTALK_EXTRACT_MIN_FILTER_THRESH_MM_DEFAULT \
charlesmn 0:3ac96e360672 173 ((int16_t) -70)
charlesmn 0:3ac96e360672 174 #define VL53L1_TUNINGPARM_XTALK_EXTRACT_MAX_FILTER_THRESH_MM_DEFAULT \
charlesmn 0:3ac96e360672 175 ((int16_t) 70)
charlesmn 0:3ac96e360672 176 #define VL53L1_TUNINGPARM_XTALK_EXTRACT_DSS_RATE_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 177 ((uint16_t) 5120)
charlesmn 0:3ac96e360672 178 #define VL53L1_TUNINGPARM_XTALK_EXTRACT_PHASECAL_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 179 ((uint32_t) 15000)
charlesmn 0:3ac96e360672 180 #define VL53L1_TUNINGPARM_XTALK_EXTRACT_MAX_VALID_RATE_KCPS_DEFAULT \
charlesmn 0:3ac96e360672 181 ((uint16_t) 64000)
charlesmn 0:3ac96e360672 182 #define VL53L1_TUNINGPARM_XTALK_EXTRACT_SIGMA_THRESHOLD_MM_DEFAULT \
charlesmn 0:3ac96e360672 183 ((uint16_t) 140)
charlesmn 0:3ac96e360672 184 #define VL53L1_TUNINGPARM_XTALK_EXTRACT_DSS_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 185 ((uint32_t) 2000)
charlesmn 0:3ac96e360672 186 #define VL53L1_TUNINGPARM_XTALK_EXTRACT_BIN_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 187 ((uint32_t) 10000)
charlesmn 0:3ac96e360672 188 #define VL53L1_TUNINGPARM_OFFSET_CAL_DSS_RATE_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 189 ((uint16_t) 2560)
charlesmn 0:3ac96e360672 190 #define VL53L1_TUNINGPARM_OFFSET_CAL_PHASECAL_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 191 ((uint32_t) 15000)
charlesmn 0:3ac96e360672 192 #define VL53L1_TUNINGPARM_OFFSET_CAL_MM_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 193 ((uint32_t) 13000)
charlesmn 0:3ac96e360672 194 #define VL53L1_TUNINGPARM_OFFSET_CAL_RANGE_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 195 ((uint32_t) 13000)
charlesmn 0:3ac96e360672 196 #define VL53L1_TUNINGPARM_OFFSET_CAL_PRE_SAMPLES_DEFAULT \
charlesmn 0:3ac96e360672 197 ((uint8_t) 8)
charlesmn 0:3ac96e360672 198 #define VL53L1_TUNINGPARM_OFFSET_CAL_MM1_SAMPLES_DEFAULT \
charlesmn 0:3ac96e360672 199 ((uint8_t) 40)
charlesmn 0:3ac96e360672 200 #define VL53L1_TUNINGPARM_OFFSET_CAL_MM2_SAMPLES_DEFAULT \
charlesmn 0:3ac96e360672 201 ((uint8_t) 9)
charlesmn 0:3ac96e360672 202 #define VL53L1_TUNINGPARM_ZONE_CAL_DSS_RATE_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 203 ((uint16_t) 5120)
charlesmn 0:3ac96e360672 204 #define VL53L1_TUNINGPARM_ZONE_CAL_PHASECAL_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 205 ((uint32_t) 15000)
charlesmn 0:3ac96e360672 206 #define VL53L1_TUNINGPARM_ZONE_CAL_DSS_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 207 ((uint32_t) 2000)
charlesmn 0:3ac96e360672 208 #define VL53L1_TUNINGPARM_ZONE_CAL_PHASECAL_NUM_SAMPLES_DEFAULT \
charlesmn 0:3ac96e360672 209 ((uint16_t) 16)
charlesmn 0:3ac96e360672 210 #define VL53L1_TUNINGPARM_ZONE_CAL_RANGE_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 211 ((uint32_t) 1000)
charlesmn 0:3ac96e360672 212 #define VL53L1_TUNINGPARM_ZONE_CAL_ZONE_NUM_SAMPLES_DEFAULT \
charlesmn 0:3ac96e360672 213 ((uint16_t) 8)
charlesmn 0:3ac96e360672 214 #define VL53L1_TUNINGPARM_SPADMAP_VCSEL_PERIOD_DEFAULT \
charlesmn 0:3ac96e360672 215 ((uint8_t) 18)
charlesmn 0:3ac96e360672 216 #define VL53L1_TUNINGPARM_SPADMAP_VCSEL_START_DEFAULT \
charlesmn 0:3ac96e360672 217 ((uint8_t) 15)
charlesmn 0:3ac96e360672 218 #define VL53L1_TUNINGPARM_SPADMAP_RATE_LIMIT_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 219 ((uint16_t) 12)
charlesmn 0:3ac96e360672 220 #define VL53L1_TUNINGPARM_LITE_DSS_CONFIG_TARGET_TOTAL_RATE_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 221 ((uint16_t) 2560)
charlesmn 0:3ac96e360672 222 #define VL53L1_TUNINGPARM_RANGING_DSS_CONFIG_TARGET_TOTAL_RATE_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 223 ((uint16_t) 5120)
charlesmn 0:3ac96e360672 224 #define VL53L1_TUNINGPARM_MZ_DSS_CONFIG_TARGET_TOTAL_RATE_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 225 ((uint16_t) 5120)
charlesmn 0:3ac96e360672 226 #define VL53L1_TUNINGPARM_TIMED_DSS_CONFIG_TARGET_TOTAL_RATE_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 227 ((uint16_t) 2560)
charlesmn 0:3ac96e360672 228 #define VL53L1_TUNINGPARM_LITE_PHASECAL_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 229 ((uint32_t) 1000)
charlesmn 0:3ac96e360672 230 #define VL53L1_TUNINGPARM_RANGING_LONG_PHASECAL_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 231 ((uint32_t) 15000)
charlesmn 0:3ac96e360672 232 #define VL53L1_TUNINGPARM_RANGING_MED_PHASECAL_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 233 ((uint32_t) 9000)
charlesmn 0:3ac96e360672 234 #define VL53L1_TUNINGPARM_RANGING_SHORT_PHASECAL_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 235 ((uint32_t) 6000)
charlesmn 0:3ac96e360672 236 #define VL53L1_TUNINGPARM_MZ_LONG_PHASECAL_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 237 ((uint32_t) 15000)
charlesmn 0:3ac96e360672 238 #define VL53L1_TUNINGPARM_MZ_MED_PHASECAL_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 239 ((uint32_t) 9000)
charlesmn 0:3ac96e360672 240 #define VL53L1_TUNINGPARM_MZ_SHORT_PHASECAL_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 241 ((uint32_t) 6000)
charlesmn 0:3ac96e360672 242 #define VL53L1_TUNINGPARM_TIMED_PHASECAL_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 243 ((uint32_t) 1000)
charlesmn 0:3ac96e360672 244 #define VL53L1_TUNINGPARM_LITE_MM_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 245 ((uint32_t) 2000)
charlesmn 0:3ac96e360672 246 #define VL53L1_TUNINGPARM_RANGING_MM_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 247 ((uint32_t) 2000)
charlesmn 0:3ac96e360672 248 #define VL53L1_TUNINGPARM_MZ_MM_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 249 ((uint32_t) 2000)
charlesmn 0:3ac96e360672 250 #define VL53L1_TUNINGPARM_TIMED_MM_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 251 ((uint32_t) 2000)
charlesmn 0:3ac96e360672 252 #define VL53L1_TUNINGPARM_LITE_RANGE_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 253 ((uint32_t) 63000)
charlesmn 0:3ac96e360672 254 #define VL53L1_TUNINGPARM_RANGING_RANGE_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 255 ((uint32_t) 2500)
charlesmn 0:3ac96e360672 256 #define VL53L1_TUNINGPARM_MZ_RANGE_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 257 ((uint32_t) 2500)
charlesmn 0:3ac96e360672 258 #define VL53L1_TUNINGPARM_TIMED_RANGE_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 259 ((uint32_t) 13000)
charlesmn 0:3ac96e360672 260 #define VL53L1_TUNINGPARM_DYNXTALK_SMUDGE_MARGIN_DEFAULT \
charlesmn 0:3ac96e360672 261 ((uint16_t) 512)
charlesmn 0:3ac96e360672 262 #define VL53L1_TUNINGPARM_DYNXTALK_NOISE_MARGIN_DEFAULT \
charlesmn 0:3ac96e360672 263 ((uint32_t) 500)
charlesmn 0:3ac96e360672 264 #define VL53L1_TUNINGPARM_DYNXTALK_XTALK_OFFSET_LIMIT_DEFAULT \
charlesmn 0:3ac96e360672 265 ((uint32_t) 0)
charlesmn 0:3ac96e360672 266 #define VL53L1_TUNINGPARM_DYNXTALK_XTALK_OFFSET_LIMIT_HI_DEFAULT \
charlesmn 0:3ac96e360672 267 ((uint8_t) 0)
charlesmn 0:3ac96e360672 268 #define VL53L1_TUNINGPARM_DYNXTALK_SAMPLE_LIMIT_DEFAULT \
charlesmn 0:3ac96e360672 269 ((uint32_t) 200)
charlesmn 0:3ac96e360672 270 #define VL53L1_TUNINGPARM_DYNXTALK_SINGLE_XTALK_DELTA_DEFAULT \
charlesmn 0:3ac96e360672 271 ((uint32_t) 10240)
charlesmn 0:3ac96e360672 272 #define VL53L1_TUNINGPARM_DYNXTALK_AVERAGED_XTALK_DELTA_DEFAULT \
charlesmn 0:3ac96e360672 273 ((uint32_t) 4096)
charlesmn 0:3ac96e360672 274 #define VL53L1_TUNINGPARM_DYNXTALK_CLIP_LIMIT_DEFAULT \
charlesmn 0:3ac96e360672 275 ((uint32_t) 1046528)
charlesmn 0:3ac96e360672 276 #define VL53L1_TUNINGPARM_DYNXTALK_SCALER_CALC_METHOD_DEFAULT \
charlesmn 0:3ac96e360672 277 ((uint8_t) 0)
charlesmn 0:3ac96e360672 278 #define VL53L1_TUNINGPARM_DYNXTALK_XGRADIENT_SCALER_DEFAULT \
charlesmn 0:3ac96e360672 279 ((int16_t) 256)
charlesmn 0:3ac96e360672 280 #define VL53L1_TUNINGPARM_DYNXTALK_YGRADIENT_SCALER_DEFAULT \
charlesmn 0:3ac96e360672 281 ((int16_t) 256)
charlesmn 0:3ac96e360672 282 #define VL53L1_TUNINGPARM_DYNXTALK_USER_SCALER_SET_DEFAULT \
charlesmn 0:3ac96e360672 283 ((uint8_t) 0)
charlesmn 0:3ac96e360672 284 #define VL53L1_TUNINGPARM_DYNXTALK_SMUDGE_COR_SINGLE_APPLY_DEFAULT \
charlesmn 0:3ac96e360672 285 ((uint8_t) 0)
charlesmn 0:3ac96e360672 286 #define VL53L1_TUNINGPARM_DYNXTALK_XTALK_AMB_THRESHOLD_DEFAULT \
charlesmn 0:3ac96e360672 287 ((uint32_t) 1280)
charlesmn 0:3ac96e360672 288 #define VL53L1_TUNINGPARM_DYNXTALK_NODETECT_AMB_THRESHOLD_KCPS_DEFAULT \
charlesmn 0:3ac96e360672 289 ((uint32_t) 57671680)
charlesmn 0:3ac96e360672 290 #define VL53L1_TUNINGPARM_DYNXTALK_NODETECT_SAMPLE_LIMIT_DEFAULT \
charlesmn 0:3ac96e360672 291 ((uint32_t) 10)
charlesmn 0:3ac96e360672 292 #define VL53L1_TUNINGPARM_DYNXTALK_NODETECT_XTALK_OFFSET_KCPS_DEFAULT \
charlesmn 0:3ac96e360672 293 ((uint32_t) 2048)
charlesmn 0:3ac96e360672 294 #define VL53L1_TUNINGPARM_DYNXTALK_NODETECT_MIN_RANGE_MM_DEFAULT \
charlesmn 0:3ac96e360672 295 ((uint16_t) 900)
charlesmn 0:3ac96e360672 296 #define VL53L1_TUNINGPARM_LOWPOWERAUTO_VHV_LOOP_BOUND_DEFAULT \
charlesmn 0:3ac96e360672 297 ((uint8_t) 3)
charlesmn 0:3ac96e360672 298 #define VL53L1_TUNINGPARM_LOWPOWERAUTO_MM_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 299 ((uint32_t) 1)
charlesmn 0:3ac96e360672 300 #define VL53L1_TUNINGPARM_LOWPOWERAUTO_RANGE_CONFIG_TIMEOUT_US_DEFAULT \
charlesmn 0:3ac96e360672 301 ((uint32_t) 8000)
charlesmn 0:3ac96e360672 302 #define VL53L1_TUNINGPARM_VERY_SHORT_DSS_RATE_MCPS_DEFAULT \
charlesmn 0:3ac96e360672 303 ((uint16_t) 10240)
charlesmn 0:3ac96e360672 304 #define VL53L1_TUNINGPARM_PHASECAL_PATCH_POWER_DEFAULT \
charlesmn 0:3ac96e360672 305 ((uint32_t) 0)
charlesmn 0:3ac96e360672 306 #define VL53L1_TUNINGPARM_HIST_MERGE_DEFAULT \
charlesmn 0:3ac96e360672 307 ((uint8_t) 1)
charlesmn 0:3ac96e360672 308 #define VL53L1_TUNINGPARM_RESET_MERGE_THRESHOLD_DEFAULT \
charlesmn 0:3ac96e360672 309 ((uint32_t) 10000)
charlesmn 0:3ac96e360672 310 #define VL53L1_TUNINGPARM_HIST_MERGE_MAX_SIZE_DEFAULT \
charlesmn 0:3ac96e360672 311 ((uint8_t) 6)
charlesmn 0:3ac96e360672 312 #define VL53L1_TUNINGPARM_DYNXTALK_MAX_SMUDGE_FACTOR_DEFAULT \
charlesmn 0:3ac96e360672 313 ((uint32_t) 2000)
charlesmn 0:3ac96e360672 314 #define VL53L1_TUNINGPARM_UWR_ENABLE_DEFAULT \
charlesmn 0:3ac96e360672 315 ((uint8_t) 1)
charlesmn 0:3ac96e360672 316 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_1_MIN_DEFAULT \
charlesmn 0:3ac96e360672 317 ((int16_t) 2000)
charlesmn 0:3ac96e360672 318 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_1_MAX_DEFAULT \
charlesmn 0:3ac96e360672 319 ((int16_t) 2750)
charlesmn 0:3ac96e360672 320 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_2_MIN_DEFAULT \
charlesmn 0:3ac96e360672 321 ((int16_t) 250)
charlesmn 0:3ac96e360672 322 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_2_MAX_DEFAULT \
charlesmn 0:3ac96e360672 323 ((int16_t) 1000)
charlesmn 0:3ac96e360672 324 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_3_MIN_DEFAULT \
charlesmn 0:3ac96e360672 325 ((int16_t) 1250)
charlesmn 0:3ac96e360672 326 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_3_MAX_DEFAULT \
charlesmn 0:3ac96e360672 327 ((int16_t) 1750)
charlesmn 0:3ac96e360672 328 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_4_MIN_DEFAULT \
charlesmn 0:3ac96e360672 329 ((int16_t) 1250)
charlesmn 0:3ac96e360672 330 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_4_MAX_DEFAULT \
charlesmn 0:3ac96e360672 331 ((int16_t) 1750)
charlesmn 0:3ac96e360672 332 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_5_MIN_DEFAULT \
charlesmn 0:3ac96e360672 333 ((int16_t) -200)
charlesmn 0:3ac96e360672 334 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_5_MAX_DEFAULT \
charlesmn 0:3ac96e360672 335 ((int16_t) 200)
charlesmn 0:3ac96e360672 336 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_6_MIN_DEFAULT \
charlesmn 0:3ac96e360672 337 ((int16_t) 250)
charlesmn 0:3ac96e360672 338 #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_6_MAX_DEFAULT \
charlesmn 0:3ac96e360672 339 ((int16_t) 1250)
charlesmn 0:3ac96e360672 340 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_1_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 341 ((int16_t) 2310)
charlesmn 0:3ac96e360672 342 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_1_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 343 ((int16_t) 0)
charlesmn 0:3ac96e360672 344 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_2_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 345 ((int16_t) 2310)
charlesmn 0:3ac96e360672 346 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_2_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 347 ((int16_t) 3100)
charlesmn 0:3ac96e360672 348 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_3_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 349 ((int16_t) 4640)
charlesmn 0:3ac96e360672 350 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_3_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 351 ((int16_t) 3100)
charlesmn 0:3ac96e360672 352 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_4_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 353 ((int16_t) 4640)
charlesmn 0:3ac96e360672 354 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_4_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 355 ((int16_t) 6190)
charlesmn 0:3ac96e360672 356 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_5_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 357 ((int16_t) 0)
charlesmn 0:3ac96e360672 358 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_5_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 359 ((int16_t) 0)
charlesmn 0:3ac96e360672 360 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_6_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 361 ((int16_t) 6960)
charlesmn 0:3ac96e360672 362 #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_6_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 363 ((int16_t) 6190)
charlesmn 0:3ac96e360672 364 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_1_MIN_DEFAULT \
charlesmn 0:3ac96e360672 365 ((int16_t) 250)
charlesmn 0:3ac96e360672 366 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_1_MAX_DEFAULT \
charlesmn 0:3ac96e360672 367 ((int16_t) 1250)
charlesmn 0:3ac96e360672 368 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_2_MIN_DEFAULT \
charlesmn 0:3ac96e360672 369 ((int16_t) 3250)
charlesmn 0:3ac96e360672 370 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_2_MAX_DEFAULT \
charlesmn 0:3ac96e360672 371 ((int16_t) 4500)
charlesmn 0:3ac96e360672 372 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_3_MIN_DEFAULT \
charlesmn 0:3ac96e360672 373 ((int16_t) -200)
charlesmn 0:3ac96e360672 374 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_3_MAX_DEFAULT \
charlesmn 0:3ac96e360672 375 ((int16_t) 200)
charlesmn 0:3ac96e360672 376 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_4_MIN_DEFAULT \
charlesmn 0:3ac96e360672 377 ((int16_t) 2850)
charlesmn 0:3ac96e360672 378 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_4_MAX_DEFAULT \
charlesmn 0:3ac96e360672 379 ((int16_t) 3300)
charlesmn 0:3ac96e360672 380 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_5_MIN_DEFAULT \
charlesmn 0:3ac96e360672 381 ((int16_t) 0)
charlesmn 0:3ac96e360672 382 #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_5_MAX_DEFAULT \
charlesmn 0:3ac96e360672 383 ((int16_t) 0)
charlesmn 0:3ac96e360672 384 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_1_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 385 ((int16_t) 3870)
charlesmn 0:3ac96e360672 386 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_1_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 387 ((int16_t) 4650)
charlesmn 0:3ac96e360672 388 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_2_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 389 ((int16_t) 3850)
charlesmn 0:3ac96e360672 390 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_2_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 391 ((int16_t) 0)
charlesmn 0:3ac96e360672 392 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_3_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 393 ((int16_t) 0)
charlesmn 0:3ac96e360672 394 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_3_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 395 ((int16_t) 0)
charlesmn 0:3ac96e360672 396 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_4_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 397 ((int16_t) 7700)
charlesmn 0:3ac96e360672 398 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_4_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 399 ((int16_t) 4640)
charlesmn 0:3ac96e360672 400 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_5_RANGEA_DEFAULT \
charlesmn 0:3ac96e360672 401 ((int16_t) 0)
charlesmn 0:3ac96e360672 402 #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_5_RANGEB_DEFAULT \
charlesmn 0:3ac96e360672 403 ((int16_t) 0)
lugandc 18:0696efe39d08 404 #define VL53L1_TUNINGPARM_MIN_SIGNAL_SECONDARY_TARGETS_DEFAULT \
lugandc 18:0696efe39d08 405 ((uint32_t) 6536)
charlesmn 0:3ac96e360672 406
lugandc 18:0696efe39d08 407
lugandc 18:0696efe39d08 408 #ifdef __cplusplus
lugandc 18:0696efe39d08 409 }
lugandc 18:0696efe39d08 410 #endif
lugandc 18:0696efe39d08 411
lugandc 18:0696efe39d08 412 #endif
lugandc 18:0696efe39d08 413
lugandc 18:0696efe39d08 414
lugandc 18:0696efe39d08 415