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:
Charles MacNeill
Date:
Tue Jun 08 10:34:47 2021 +0100
Revision:
7:1add29d51e72
Parent:
0:3ac96e360672
Child:
18:0696efe39d08
Update to v6.6.5 of bare_driver

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