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.
inc/vl53l1_ll_device.h@0:3ac96e360672, 2020-11-06 (annotated)
- Committer:
- charlesmn
- Date:
- Fri Nov 06 10:06:37 2020 +0000
- Revision:
- 0:3ac96e360672
- Child:
- 7:1add29d51e72
Library for ST Vl53L1A1 time of flight sensor.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
charlesmn | 0:3ac96e360672 | 1 | |
charlesmn | 0:3ac96e360672 | 2 | /******************************************************************************* |
charlesmn | 0:3ac96e360672 | 3 | * Copyright (c) 2020, STMicroelectronics - All Rights Reserved |
charlesmn | 0:3ac96e360672 | 4 | |
charlesmn | 0:3ac96e360672 | 5 | This file is part of VL53L1 Core and is dual licensed, |
charlesmn | 0:3ac96e360672 | 6 | either 'STMicroelectronics |
charlesmn | 0:3ac96e360672 | 7 | Proprietary license' |
charlesmn | 0:3ac96e360672 | 8 | or 'BSD 3-clause "New" or "Revised" License' , at your option. |
charlesmn | 0:3ac96e360672 | 9 | |
charlesmn | 0:3ac96e360672 | 10 | ******************************************************************************** |
charlesmn | 0:3ac96e360672 | 11 | |
charlesmn | 0:3ac96e360672 | 12 | 'STMicroelectronics Proprietary license' |
charlesmn | 0:3ac96e360672 | 13 | |
charlesmn | 0:3ac96e360672 | 14 | ******************************************************************************** |
charlesmn | 0:3ac96e360672 | 15 | |
charlesmn | 0:3ac96e360672 | 16 | License terms: STMicroelectronics Proprietary in accordance with licensing |
charlesmn | 0:3ac96e360672 | 17 | terms at www.st.com/sla0081 |
charlesmn | 0:3ac96e360672 | 18 | |
charlesmn | 0:3ac96e360672 | 19 | STMicroelectronics confidential |
charlesmn | 0:3ac96e360672 | 20 | Reproduction and Communication of this document is strictly prohibited unless |
charlesmn | 0:3ac96e360672 | 21 | specifically authorized in writing by STMicroelectronics. |
charlesmn | 0:3ac96e360672 | 22 | |
charlesmn | 0:3ac96e360672 | 23 | |
charlesmn | 0:3ac96e360672 | 24 | ******************************************************************************** |
charlesmn | 0:3ac96e360672 | 25 | |
charlesmn | 0:3ac96e360672 | 26 | Alternatively, VL53L1 Core may be distributed under the terms of |
charlesmn | 0:3ac96e360672 | 27 | 'BSD 3-clause "New" or "Revised" License', in which case the following |
charlesmn | 0:3ac96e360672 | 28 | provisions apply instead of the ones |
charlesmn | 0:3ac96e360672 | 29 | mentioned above : |
charlesmn | 0:3ac96e360672 | 30 | |
charlesmn | 0:3ac96e360672 | 31 | ******************************************************************************** |
charlesmn | 0:3ac96e360672 | 32 | |
charlesmn | 0:3ac96e360672 | 33 | License terms: BSD 3-clause "New" or "Revised" License. |
charlesmn | 0:3ac96e360672 | 34 | |
charlesmn | 0:3ac96e360672 | 35 | Redistribution and use in source and binary forms, with or without |
charlesmn | 0:3ac96e360672 | 36 | modification, are permitted provided that the following conditions are met: |
charlesmn | 0:3ac96e360672 | 37 | |
charlesmn | 0:3ac96e360672 | 38 | 1. Redistributions of source code must retain the above copyright notice, this |
charlesmn | 0:3ac96e360672 | 39 | list of conditions and the following disclaimer. |
charlesmn | 0:3ac96e360672 | 40 | |
charlesmn | 0:3ac96e360672 | 41 | 2. Redistributions in binary form must reproduce the above copyright notice, |
charlesmn | 0:3ac96e360672 | 42 | this list of conditions and the following disclaimer in the documentation |
charlesmn | 0:3ac96e360672 | 43 | and/or other materials provided with the distribution. |
charlesmn | 0:3ac96e360672 | 44 | |
charlesmn | 0:3ac96e360672 | 45 | 3. Neither the name of the copyright holder nor the names of its contributors |
charlesmn | 0:3ac96e360672 | 46 | may be used to endorse or promote products derived from this software |
charlesmn | 0:3ac96e360672 | 47 | without specific prior written permission. |
charlesmn | 0:3ac96e360672 | 48 | |
charlesmn | 0:3ac96e360672 | 49 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
charlesmn | 0:3ac96e360672 | 50 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
charlesmn | 0:3ac96e360672 | 51 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
charlesmn | 0:3ac96e360672 | 52 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
charlesmn | 0:3ac96e360672 | 53 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
charlesmn | 0:3ac96e360672 | 54 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
charlesmn | 0:3ac96e360672 | 55 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
charlesmn | 0:3ac96e360672 | 56 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
charlesmn | 0:3ac96e360672 | 57 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
charlesmn | 0:3ac96e360672 | 58 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
charlesmn | 0:3ac96e360672 | 59 | |
charlesmn | 0:3ac96e360672 | 60 | |
charlesmn | 0:3ac96e360672 | 61 | ******************************************************************************** |
charlesmn | 0:3ac96e360672 | 62 | |
charlesmn | 0:3ac96e360672 | 63 | */ |
charlesmn | 0:3ac96e360672 | 64 | |
charlesmn | 0:3ac96e360672 | 65 | |
charlesmn | 0:3ac96e360672 | 66 | |
charlesmn | 0:3ac96e360672 | 67 | |
charlesmn | 0:3ac96e360672 | 68 | #ifndef _VL53L1_LL_DEVICE_H_ |
charlesmn | 0:3ac96e360672 | 69 | #define _VL53L1_LL_DEVICE_H_ |
charlesmn | 0:3ac96e360672 | 70 | |
charlesmn | 0:3ac96e360672 | 71 | #include "vl53l1_types.h" |
charlesmn | 0:3ac96e360672 | 72 | #include "vl53l1_platform_user_config.h" |
charlesmn | 0:3ac96e360672 | 73 | |
charlesmn | 0:3ac96e360672 | 74 | #define VL53L1_I2C 0x01 |
charlesmn | 0:3ac96e360672 | 75 | #define VL53L1_SPI 0x00 |
charlesmn | 0:3ac96e360672 | 76 | |
charlesmn | 0:3ac96e360672 | 77 | |
charlesmn | 0:3ac96e360672 | 78 | |
charlesmn | 0:3ac96e360672 | 79 | |
charlesmn | 0:3ac96e360672 | 80 | |
charlesmn | 0:3ac96e360672 | 81 | typedef uint8_t VL53L1_WaitMethod; |
charlesmn | 0:3ac96e360672 | 82 | |
charlesmn | 0:3ac96e360672 | 83 | #define VL53L1_WAIT_METHOD_BLOCKING ((VL53L1_WaitMethod) 0) |
charlesmn | 0:3ac96e360672 | 84 | #define VL53L1_WAIT_METHOD_NON_BLOCKING ((VL53L1_WaitMethod) 1) |
charlesmn | 0:3ac96e360672 | 85 | |
charlesmn | 0:3ac96e360672 | 86 | |
charlesmn | 0:3ac96e360672 | 87 | |
charlesmn | 0:3ac96e360672 | 88 | |
charlesmn | 0:3ac96e360672 | 89 | typedef uint8_t VL53L1_DeviceState; |
charlesmn | 0:3ac96e360672 | 90 | |
charlesmn | 0:3ac96e360672 | 91 | #define VL53L1_DEVICESTATE_POWERDOWN ((VL53L1_DeviceState) 0) |
charlesmn | 0:3ac96e360672 | 92 | #define VL53L1_DEVICESTATE_HW_STANDBY ((VL53L1_DeviceState) 1) |
charlesmn | 0:3ac96e360672 | 93 | #define VL53L1_DEVICESTATE_FW_COLDBOOT ((VL53L1_DeviceState) 2) |
charlesmn | 0:3ac96e360672 | 94 | #define VL53L1_DEVICESTATE_SW_STANDBY ((VL53L1_DeviceState) 3) |
charlesmn | 0:3ac96e360672 | 95 | #define VL53L1_DEVICESTATE_RANGING_DSS_AUTO ((VL53L1_DeviceState) 4) |
charlesmn | 0:3ac96e360672 | 96 | #define VL53L1_DEVICESTATE_RANGING_DSS_MANUAL ((VL53L1_DeviceState) 5) |
charlesmn | 0:3ac96e360672 | 97 | #define VL53L1_DEVICESTATE_RANGING_WAIT_GPH_SYNC ((VL53L1_DeviceState) 6) |
charlesmn | 0:3ac96e360672 | 98 | #define VL53L1_DEVICESTATE_RANGING_GATHER_DATA ((VL53L1_DeviceState) 7) |
charlesmn | 0:3ac96e360672 | 99 | #define VL53L1_DEVICESTATE_RANGING_OUTPUT_DATA ((VL53L1_DeviceState) 8) |
charlesmn | 0:3ac96e360672 | 100 | |
charlesmn | 0:3ac96e360672 | 101 | #define VL53L1_DEVICESTATE_UNKNOWN ((VL53L1_DeviceState) 98) |
charlesmn | 0:3ac96e360672 | 102 | #define VL53L1_DEVICESTATE_ERROR ((VL53L1_DeviceState) 99) |
charlesmn | 0:3ac96e360672 | 103 | |
charlesmn | 0:3ac96e360672 | 104 | |
charlesmn | 0:3ac96e360672 | 105 | |
charlesmn | 0:3ac96e360672 | 106 | |
charlesmn | 0:3ac96e360672 | 107 | |
charlesmn | 0:3ac96e360672 | 108 | typedef uint8_t VL53L1_DeviceZonePreset; |
charlesmn | 0:3ac96e360672 | 109 | |
charlesmn | 0:3ac96e360672 | 110 | #define VL53L1_DEVICEZONEPRESET_NONE \ |
charlesmn | 0:3ac96e360672 | 111 | ((VL53L1_DeviceZonePreset) 0) |
charlesmn | 0:3ac96e360672 | 112 | |
charlesmn | 0:3ac96e360672 | 113 | #define VL53L1_DEVICEZONEPRESET_XTALK_PLANAR \ |
charlesmn | 0:3ac96e360672 | 114 | ((VL53L1_DeviceZonePreset) 1) |
charlesmn | 0:3ac96e360672 | 115 | #define VL53L1_DEVICEZONEPRESET_1X1_SIZE_16X16 \ |
charlesmn | 0:3ac96e360672 | 116 | ((VL53L1_DeviceZonePreset) 2) |
charlesmn | 0:3ac96e360672 | 117 | #define VL53L1_DEVICEZONEPRESET_1X2_SIZE_16X8 \ |
charlesmn | 0:3ac96e360672 | 118 | ((VL53L1_DeviceZonePreset) 3) |
charlesmn | 0:3ac96e360672 | 119 | #define VL53L1_DEVICEZONEPRESET_2X1_SIZE_8X16 \ |
charlesmn | 0:3ac96e360672 | 120 | ((VL53L1_DeviceZonePreset) 4) |
charlesmn | 0:3ac96e360672 | 121 | #define VL53L1_DEVICEZONEPRESET_2X2_SIZE_8X8 \ |
charlesmn | 0:3ac96e360672 | 122 | ((VL53L1_DeviceZonePreset) 5) |
charlesmn | 0:3ac96e360672 | 123 | #define VL53L1_DEVICEZONEPRESET_3X3_SIZE_5X5 \ |
charlesmn | 0:3ac96e360672 | 124 | ((VL53L1_DeviceZonePreset) 6) |
charlesmn | 0:3ac96e360672 | 125 | #define VL53L1_DEVICEZONEPRESET_4X4_SIZE_4X4 \ |
charlesmn | 0:3ac96e360672 | 126 | ((VL53L1_DeviceZonePreset) 7) |
charlesmn | 0:3ac96e360672 | 127 | #define VL53L1_DEVICEZONEPRESET_5X5_SIZE_4X4 \ |
charlesmn | 0:3ac96e360672 | 128 | ((VL53L1_DeviceZonePreset) 8) |
charlesmn | 0:3ac96e360672 | 129 | #define VL53L1_DEVICEZONEPRESET_11X11_SIZE_5X5 \ |
charlesmn | 0:3ac96e360672 | 130 | ((VL53L1_DeviceZonePreset) 9) |
charlesmn | 0:3ac96e360672 | 131 | #define VL53L1_DEVICEZONEPRESET_13X13_SIZE_4X4 \ |
charlesmn | 0:3ac96e360672 | 132 | ((VL53L1_DeviceZonePreset) 10) |
charlesmn | 0:3ac96e360672 | 133 | |
charlesmn | 0:3ac96e360672 | 134 | #define VL53L1_DEVICEZONEPRESET_1X1_SIZE_4X4_POS_8X8 \ |
charlesmn | 0:3ac96e360672 | 135 | ((VL53L1_DeviceZonePreset) 11) |
charlesmn | 0:3ac96e360672 | 136 | |
charlesmn | 0:3ac96e360672 | 137 | #define VL53L1_DEVICEZONEPRESET_CUSTOM \ |
charlesmn | 0:3ac96e360672 | 138 | ((VL53L1_DeviceZonePreset) 255) |
charlesmn | 0:3ac96e360672 | 139 | |
charlesmn | 0:3ac96e360672 | 140 | |
charlesmn | 0:3ac96e360672 | 141 | |
charlesmn | 0:3ac96e360672 | 142 | |
charlesmn | 0:3ac96e360672 | 143 | |
charlesmn | 0:3ac96e360672 | 144 | typedef uint8_t VL53L1_DevicePresetModes; |
charlesmn | 0:3ac96e360672 | 145 | |
charlesmn | 0:3ac96e360672 | 146 | #define VL53L1_DEVICEPRESETMODE_NONE \ |
charlesmn | 0:3ac96e360672 | 147 | ((VL53L1_DevicePresetModes) 0) |
charlesmn | 0:3ac96e360672 | 148 | #define VL53L1_DEVICEPRESETMODE_STANDARD_RANGING \ |
charlesmn | 0:3ac96e360672 | 149 | ((VL53L1_DevicePresetModes) 1) |
charlesmn | 0:3ac96e360672 | 150 | #define VL53L1_DEVICEPRESETMODE_STANDARD_RANGING_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 151 | ((VL53L1_DevicePresetModes) 2) |
charlesmn | 0:3ac96e360672 | 152 | #define VL53L1_DEVICEPRESETMODE_STANDARD_RANGING_LONG_RANGE \ |
charlesmn | 0:3ac96e360672 | 153 | ((VL53L1_DevicePresetModes) 3) |
charlesmn | 0:3ac96e360672 | 154 | #define VL53L1_DEVICEPRESETMODE_STANDARD_RANGING_MM1_CAL \ |
charlesmn | 0:3ac96e360672 | 155 | ((VL53L1_DevicePresetModes) 4) |
charlesmn | 0:3ac96e360672 | 156 | #define VL53L1_DEVICEPRESETMODE_STANDARD_RANGING_MM2_CAL \ |
charlesmn | 0:3ac96e360672 | 157 | ((VL53L1_DevicePresetModes) 5) |
charlesmn | 0:3ac96e360672 | 158 | #define VL53L1_DEVICEPRESETMODE_TIMED_RANGING \ |
charlesmn | 0:3ac96e360672 | 159 | ((VL53L1_DevicePresetModes) 6) |
charlesmn | 0:3ac96e360672 | 160 | #define VL53L1_DEVICEPRESETMODE_TIMED_RANGING_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 161 | ((VL53L1_DevicePresetModes) 7) |
charlesmn | 0:3ac96e360672 | 162 | #define VL53L1_DEVICEPRESETMODE_TIMED_RANGING_LONG_RANGE \ |
charlesmn | 0:3ac96e360672 | 163 | ((VL53L1_DevicePresetModes) 8) |
charlesmn | 0:3ac96e360672 | 164 | #define VL53L1_DEVICEPRESETMODE_NEAR_FARRANGING \ |
charlesmn | 0:3ac96e360672 | 165 | ((VL53L1_DevicePresetModes) 9) |
charlesmn | 0:3ac96e360672 | 166 | #define VL53L1_DEVICEPRESETMODE_QUADRANT_RANGING \ |
charlesmn | 0:3ac96e360672 | 167 | ((VL53L1_DevicePresetModes) 10) |
charlesmn | 0:3ac96e360672 | 168 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_RANGING \ |
charlesmn | 0:3ac96e360672 | 169 | ((VL53L1_DevicePresetModes) 11) |
charlesmn | 0:3ac96e360672 | 170 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_RANGING_SHORT_TIMING \ |
charlesmn | 0:3ac96e360672 | 171 | ((VL53L1_DevicePresetModes) 12) |
charlesmn | 0:3ac96e360672 | 172 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_CHARACTERISATION \ |
charlesmn | 0:3ac96e360672 | 173 | ((VL53L1_DevicePresetModes) 13) |
charlesmn | 0:3ac96e360672 | 174 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_XTALK_PLANAR \ |
charlesmn | 0:3ac96e360672 | 175 | ((VL53L1_DevicePresetModes) 14) |
charlesmn | 0:3ac96e360672 | 176 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_XTALK_MM1 \ |
charlesmn | 0:3ac96e360672 | 177 | ((VL53L1_DevicePresetModes) 15) |
charlesmn | 0:3ac96e360672 | 178 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_XTALK_MM2 \ |
charlesmn | 0:3ac96e360672 | 179 | ((VL53L1_DevicePresetModes) 16) |
charlesmn | 0:3ac96e360672 | 180 | #define VL53L1_DEVICEPRESETMODE_OLT \ |
charlesmn | 0:3ac96e360672 | 181 | ((VL53L1_DevicePresetModes) 17) |
charlesmn | 0:3ac96e360672 | 182 | #define VL53L1_DEVICEPRESETMODE_SINGLESHOT_RANGING \ |
charlesmn | 0:3ac96e360672 | 183 | ((VL53L1_DevicePresetModes) 18) |
charlesmn | 0:3ac96e360672 | 184 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_REF_ARRAY \ |
charlesmn | 0:3ac96e360672 | 185 | ((VL53L1_DevicePresetModes) 19) |
charlesmn | 0:3ac96e360672 | 186 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_RANGING_WITH_MM1 \ |
charlesmn | 0:3ac96e360672 | 187 | ((VL53L1_DevicePresetModes) 20) |
charlesmn | 0:3ac96e360672 | 188 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_RANGING_WITH_MM2 \ |
charlesmn | 0:3ac96e360672 | 189 | ((VL53L1_DevicePresetModes) 21) |
charlesmn | 0:3ac96e360672 | 190 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_RANGING_MM1_CAL \ |
charlesmn | 0:3ac96e360672 | 191 | ((VL53L1_DevicePresetModes) 22) |
charlesmn | 0:3ac96e360672 | 192 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_RANGING_MM2_CAL \ |
charlesmn | 0:3ac96e360672 | 193 | ((VL53L1_DevicePresetModes) 23) |
charlesmn | 0:3ac96e360672 | 194 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_MULTIZONE \ |
charlesmn | 0:3ac96e360672 | 195 | ((VL53L1_DevicePresetModes) 24) |
charlesmn | 0:3ac96e360672 | 196 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_MULTIZONE_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 197 | ((VL53L1_DevicePresetModes) 25) |
charlesmn | 0:3ac96e360672 | 198 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_MULTIZONE_LONG_RANGE \ |
charlesmn | 0:3ac96e360672 | 199 | ((VL53L1_DevicePresetModes) 26) |
charlesmn | 0:3ac96e360672 | 200 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_LONG_RANGE \ |
charlesmn | 0:3ac96e360672 | 201 | ((VL53L1_DevicePresetModes) 27) |
charlesmn | 0:3ac96e360672 | 202 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_LONG_RANGE_MM1 \ |
charlesmn | 0:3ac96e360672 | 203 | ((VL53L1_DevicePresetModes) 28) |
charlesmn | 0:3ac96e360672 | 204 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_LONG_RANGE_MM2 \ |
charlesmn | 0:3ac96e360672 | 205 | ((VL53L1_DevicePresetModes) 29) |
charlesmn | 0:3ac96e360672 | 206 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_MEDIUM_RANGE \ |
charlesmn | 0:3ac96e360672 | 207 | ((VL53L1_DevicePresetModes) 30) |
charlesmn | 0:3ac96e360672 | 208 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_MEDIUM_RANGE_MM1 \ |
charlesmn | 0:3ac96e360672 | 209 | ((VL53L1_DevicePresetModes) 31) |
charlesmn | 0:3ac96e360672 | 210 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_MEDIUM_RANGE_MM2 \ |
charlesmn | 0:3ac96e360672 | 211 | ((VL53L1_DevicePresetModes) 32) |
charlesmn | 0:3ac96e360672 | 212 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 213 | ((VL53L1_DevicePresetModes) 33) |
charlesmn | 0:3ac96e360672 | 214 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_SHORT_RANGE_MM1 \ |
charlesmn | 0:3ac96e360672 | 215 | ((VL53L1_DevicePresetModes) 34) |
charlesmn | 0:3ac96e360672 | 216 | #define VL53L1_DEVICEPRESETMODE_HISTOGRAM_SHORT_RANGE_MM2 \ |
charlesmn | 0:3ac96e360672 | 217 | ((VL53L1_DevicePresetModes) 35) |
charlesmn | 0:3ac96e360672 | 218 | #define VL53L1_DEVICEPRESETMODE_LOWPOWERAUTO_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 219 | ((VL53L1_DevicePresetModes) 36) |
charlesmn | 0:3ac96e360672 | 220 | #define VL53L1_DEVICEPRESETMODE_LOWPOWERAUTO_MEDIUM_RANGE \ |
charlesmn | 0:3ac96e360672 | 221 | ((VL53L1_DevicePresetModes) 37) |
charlesmn | 0:3ac96e360672 | 222 | #define VL53L1_DEVICEPRESETMODE_LOWPOWERAUTO_LONG_RANGE \ |
charlesmn | 0:3ac96e360672 | 223 | ((VL53L1_DevicePresetModes) 38) |
charlesmn | 0:3ac96e360672 | 224 | #define VL53L1_DEVICEPRESETMODE_SPECIAL_HISTOGRAM_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 225 | ((VL53L1_DevicePresetModes) 39) |
charlesmn | 0:3ac96e360672 | 226 | |
charlesmn | 0:3ac96e360672 | 227 | |
charlesmn | 0:3ac96e360672 | 228 | |
charlesmn | 0:3ac96e360672 | 229 | |
charlesmn | 0:3ac96e360672 | 230 | |
charlesmn | 0:3ac96e360672 | 231 | typedef uint8_t VL53L1_DeviceMeasurementModes; |
charlesmn | 0:3ac96e360672 | 232 | |
charlesmn | 0:3ac96e360672 | 233 | #define VL53L1_DEVICEMEASUREMENTMODE_STOP \ |
charlesmn | 0:3ac96e360672 | 234 | ((VL53L1_DeviceMeasurementModes) 0x00) |
charlesmn | 0:3ac96e360672 | 235 | #define VL53L1_DEVICEMEASUREMENTMODE_SINGLESHOT \ |
charlesmn | 0:3ac96e360672 | 236 | ((VL53L1_DeviceMeasurementModes) 0x10) |
charlesmn | 0:3ac96e360672 | 237 | #define VL53L1_DEVICEMEASUREMENTMODE_BACKTOBACK \ |
charlesmn | 0:3ac96e360672 | 238 | ((VL53L1_DeviceMeasurementModes) 0x20) |
charlesmn | 0:3ac96e360672 | 239 | #define VL53L1_DEVICEMEASUREMENTMODE_TIMED \ |
charlesmn | 0:3ac96e360672 | 240 | ((VL53L1_DeviceMeasurementModes) 0x40) |
charlesmn | 0:3ac96e360672 | 241 | #define VL53L1_DEVICEMEASUREMENTMODE_ABORT \ |
charlesmn | 0:3ac96e360672 | 242 | ((VL53L1_DeviceMeasurementModes) 0x80) |
charlesmn | 0:3ac96e360672 | 243 | |
charlesmn | 0:3ac96e360672 | 244 | |
charlesmn | 0:3ac96e360672 | 245 | |
charlesmn | 0:3ac96e360672 | 246 | |
charlesmn | 0:3ac96e360672 | 247 | |
charlesmn | 0:3ac96e360672 | 248 | typedef uint8_t VL53L1_OffsetCalibrationMode; |
charlesmn | 0:3ac96e360672 | 249 | |
charlesmn | 0:3ac96e360672 | 250 | #define VL53L1_OFFSETCALIBRATIONMODE__NONE \ |
charlesmn | 0:3ac96e360672 | 251 | ((VL53L1_OffsetCalibrationMode) 0) |
charlesmn | 0:3ac96e360672 | 252 | #define VL53L1_OFFSETCALIBRATIONMODE__MM1_MM2__STANDARD \ |
charlesmn | 0:3ac96e360672 | 253 | ((VL53L1_OffsetCalibrationMode) 1) |
charlesmn | 0:3ac96e360672 | 254 | #define VL53L1_OFFSETCALIBRATIONMODE__MM1_MM2__HISTOGRAM \ |
charlesmn | 0:3ac96e360672 | 255 | ((VL53L1_OffsetCalibrationMode) 2) |
charlesmn | 0:3ac96e360672 | 256 | #define VL53L1_OFFSETCALIBRATIONMODE__MM1_MM2__STANDARD_PRE_RANGE_ONLY \ |
charlesmn | 0:3ac96e360672 | 257 | ((VL53L1_OffsetCalibrationMode) 3) |
charlesmn | 0:3ac96e360672 | 258 | #define VL53L1_OFFSETCALIBRATIONMODE__MM1_MM2__HISTOGRAM_PRE_RANGE_ONLY \ |
charlesmn | 0:3ac96e360672 | 259 | ((VL53L1_OffsetCalibrationMode) 4) |
charlesmn | 0:3ac96e360672 | 260 | #define VL53L1_OFFSETCALIBRATIONMODE__PER_ZONE \ |
charlesmn | 0:3ac96e360672 | 261 | ((VL53L1_OffsetCalibrationMode) 5) |
charlesmn | 0:3ac96e360672 | 262 | |
charlesmn | 0:3ac96e360672 | 263 | |
charlesmn | 0:3ac96e360672 | 264 | |
charlesmn | 0:3ac96e360672 | 265 | |
charlesmn | 0:3ac96e360672 | 266 | |
charlesmn | 0:3ac96e360672 | 267 | typedef uint8_t VL53L1_OffsetCorrectionMode; |
charlesmn | 0:3ac96e360672 | 268 | |
charlesmn | 0:3ac96e360672 | 269 | #define VL53L1_OFFSETCORRECTIONMODE__NONE \ |
charlesmn | 0:3ac96e360672 | 270 | ((VL53L1_OffsetCorrectionMode) 0) |
charlesmn | 0:3ac96e360672 | 271 | #define VL53L1_OFFSETCORRECTIONMODE__MM1_MM2_OFFSETS \ |
charlesmn | 0:3ac96e360672 | 272 | ((VL53L1_OffsetCorrectionMode) 1) |
charlesmn | 0:3ac96e360672 | 273 | #define VL53L1_OFFSETCORRECTIONMODE__PER_ZONE_OFFSETS \ |
charlesmn | 0:3ac96e360672 | 274 | ((VL53L1_OffsetCorrectionMode) 2) |
charlesmn | 0:3ac96e360672 | 275 | #define VL53L1_OFFSETCORRECTIONMODE__PER_VCSEL_OFFSETS \ |
charlesmn | 0:3ac96e360672 | 276 | ((VL53L1_OffsetCorrectionMode) 3) |
charlesmn | 0:3ac96e360672 | 277 | |
charlesmn | 0:3ac96e360672 | 278 | |
charlesmn | 0:3ac96e360672 | 279 | |
charlesmn | 0:3ac96e360672 | 280 | |
charlesmn | 0:3ac96e360672 | 281 | |
charlesmn | 0:3ac96e360672 | 282 | typedef uint8_t VL53L1_DeviceDmaxMode; |
charlesmn | 0:3ac96e360672 | 283 | |
charlesmn | 0:3ac96e360672 | 284 | #define VL53L1_DEVICEDMAXMODE__NONE \ |
charlesmn | 0:3ac96e360672 | 285 | ((VL53L1_DeviceDmaxMode) 0) |
charlesmn | 0:3ac96e360672 | 286 | #define VL53L1_DEVICEDMAXMODE__FMT_CAL_DATA \ |
charlesmn | 0:3ac96e360672 | 287 | ((VL53L1_DeviceDmaxMode) 1) |
charlesmn | 0:3ac96e360672 | 288 | #define VL53L1_DEVICEDMAXMODE__CUST_CAL_DATA \ |
charlesmn | 0:3ac96e360672 | 289 | ((VL53L1_DeviceDmaxMode) 2) |
charlesmn | 0:3ac96e360672 | 290 | #define VL53L1_DEVICEDMAXMODE__PER_ZONE_CAL_DATA \ |
charlesmn | 0:3ac96e360672 | 291 | ((VL53L1_DeviceDmaxMode) 3) |
charlesmn | 0:3ac96e360672 | 292 | |
charlesmn | 0:3ac96e360672 | 293 | |
charlesmn | 0:3ac96e360672 | 294 | |
charlesmn | 0:3ac96e360672 | 295 | |
charlesmn | 0:3ac96e360672 | 296 | |
charlesmn | 0:3ac96e360672 | 297 | typedef uint8_t VL53L1_DeviceSequenceConfig; |
charlesmn | 0:3ac96e360672 | 298 | |
charlesmn | 0:3ac96e360672 | 299 | #define VL53L1_DEVICESEQUENCECONFIG_VHV \ |
charlesmn | 0:3ac96e360672 | 300 | ((VL53L1_DeviceSequenceConfig) 0) |
charlesmn | 0:3ac96e360672 | 301 | #define VL53L1_DEVICESEQUENCECONFIG_PHASECAL \ |
charlesmn | 0:3ac96e360672 | 302 | ((VL53L1_DeviceSequenceConfig) 1) |
charlesmn | 0:3ac96e360672 | 303 | #define VL53L1_DEVICESEQUENCECONFIG_REFERENCE_PHASE \ |
charlesmn | 0:3ac96e360672 | 304 | ((VL53L1_DeviceSequenceConfig) 2) |
charlesmn | 0:3ac96e360672 | 305 | #define VL53L1_DEVICESEQUENCECONFIG_DSS1 \ |
charlesmn | 0:3ac96e360672 | 306 | ((VL53L1_DeviceSequenceConfig) 3) |
charlesmn | 0:3ac96e360672 | 307 | #define VL53L1_DEVICESEQUENCECONFIG_DSS2 \ |
charlesmn | 0:3ac96e360672 | 308 | ((VL53L1_DeviceSequenceConfig) 4) |
charlesmn | 0:3ac96e360672 | 309 | #define VL53L1_DEVICESEQUENCECONFIG_MM1 \ |
charlesmn | 0:3ac96e360672 | 310 | ((VL53L1_DeviceSequenceConfig) 5) |
charlesmn | 0:3ac96e360672 | 311 | #define VL53L1_DEVICESEQUENCECONFIG_MM2 \ |
charlesmn | 0:3ac96e360672 | 312 | ((VL53L1_DeviceSequenceConfig) 6) |
charlesmn | 0:3ac96e360672 | 313 | #define VL53L1_DEVICESEQUENCECONFIG_RANGE \ |
charlesmn | 0:3ac96e360672 | 314 | ((VL53L1_DeviceSequenceConfig) 7) |
charlesmn | 0:3ac96e360672 | 315 | |
charlesmn | 0:3ac96e360672 | 316 | |
charlesmn | 0:3ac96e360672 | 317 | |
charlesmn | 0:3ac96e360672 | 318 | |
charlesmn | 0:3ac96e360672 | 319 | |
charlesmn | 0:3ac96e360672 | 320 | typedef uint8_t VL53L1_DeviceInterruptPolarity; |
charlesmn | 0:3ac96e360672 | 321 | |
charlesmn | 0:3ac96e360672 | 322 | #define VL53L1_DEVICEINTERRUPTPOLARITY_ACTIVE_HIGH \ |
charlesmn | 0:3ac96e360672 | 323 | ((VL53L1_DeviceInterruptPolarity) 0x00) |
charlesmn | 0:3ac96e360672 | 324 | #define VL53L1_DEVICEINTERRUPTPOLARITY_ACTIVE_LOW \ |
charlesmn | 0:3ac96e360672 | 325 | ((VL53L1_DeviceInterruptPolarity) 0x10) |
charlesmn | 0:3ac96e360672 | 326 | #define VL53L1_DEVICEINTERRUPTPOLARITY_BIT_MASK \ |
charlesmn | 0:3ac96e360672 | 327 | ((VL53L1_DeviceInterruptPolarity) 0x10) |
charlesmn | 0:3ac96e360672 | 328 | #define VL53L1_DEVICEINTERRUPTPOLARITY_CLEAR_MASK \ |
charlesmn | 0:3ac96e360672 | 329 | ((VL53L1_DeviceInterruptPolarity) 0xEF) |
charlesmn | 0:3ac96e360672 | 330 | |
charlesmn | 0:3ac96e360672 | 331 | |
charlesmn | 0:3ac96e360672 | 332 | |
charlesmn | 0:3ac96e360672 | 333 | |
charlesmn | 0:3ac96e360672 | 334 | |
charlesmn | 0:3ac96e360672 | 335 | typedef uint8_t VL53L1_DeviceGpioMode; |
charlesmn | 0:3ac96e360672 | 336 | |
charlesmn | 0:3ac96e360672 | 337 | #define VL53L1_DEVICEGPIOMODE_OUTPUT_CONSTANT_ZERO \ |
charlesmn | 0:3ac96e360672 | 338 | ((VL53L1_DeviceGpioMode) 0x00) |
charlesmn | 0:3ac96e360672 | 339 | #define VL53L1_DEVICEGPIOMODE_OUTPUT_RANGE_AND_ERROR_INTERRUPTS \ |
charlesmn | 0:3ac96e360672 | 340 | ((VL53L1_DeviceGpioMode) 0x01) |
charlesmn | 0:3ac96e360672 | 341 | #define VL53L1_DEVICEGPIOMODE_OUTPUT_TIMIER_INTERRUPTS \ |
charlesmn | 0:3ac96e360672 | 342 | ((VL53L1_DeviceGpioMode) 0x02) |
charlesmn | 0:3ac96e360672 | 343 | #define VL53L1_DEVICEGPIOMODE_OUTPUT_RANGE_MODE_INTERRUPT_STATUS \ |
charlesmn | 0:3ac96e360672 | 344 | ((VL53L1_DeviceGpioMode) 0x03) |
charlesmn | 0:3ac96e360672 | 345 | #define VL53L1_DEVICEGPIOMODE_OUTPUT_SLOW_OSCILLATOR_CLOCK \ |
charlesmn | 0:3ac96e360672 | 346 | ((VL53L1_DeviceGpioMode) 0x04) |
charlesmn | 0:3ac96e360672 | 347 | #define VL53L1_DEVICEGPIOMODE_BIT_MASK \ |
charlesmn | 0:3ac96e360672 | 348 | ((VL53L1_DeviceGpioMode) 0x0F) |
charlesmn | 0:3ac96e360672 | 349 | #define VL53L1_DEVICEGPIOMODE_CLEAR_MASK \ |
charlesmn | 0:3ac96e360672 | 350 | ((VL53L1_DeviceGpioMode) 0xF0) |
charlesmn | 0:3ac96e360672 | 351 | |
charlesmn | 0:3ac96e360672 | 352 | |
charlesmn | 0:3ac96e360672 | 353 | |
charlesmn | 0:3ac96e360672 | 354 | |
charlesmn | 0:3ac96e360672 | 355 | |
charlesmn | 0:3ac96e360672 | 356 | typedef uint8_t VL53L1_DeviceError; |
charlesmn | 0:3ac96e360672 | 357 | |
charlesmn | 0:3ac96e360672 | 358 | #define VL53L1_DEVICEERROR_NOUPDATE \ |
charlesmn | 0:3ac96e360672 | 359 | ((VL53L1_DeviceError) 0) |
charlesmn | 0:3ac96e360672 | 360 | |
charlesmn | 0:3ac96e360672 | 361 | #define VL53L1_DEVICEERROR_VCSELCONTINUITYTESTFAILURE \ |
charlesmn | 0:3ac96e360672 | 362 | ((VL53L1_DeviceError) 1) |
charlesmn | 0:3ac96e360672 | 363 | #define VL53L1_DEVICEERROR_VCSELWATCHDOGTESTFAILURE \ |
charlesmn | 0:3ac96e360672 | 364 | ((VL53L1_DeviceError) 2) |
charlesmn | 0:3ac96e360672 | 365 | #define VL53L1_DEVICEERROR_NOVHVVALUEFOUND \ |
charlesmn | 0:3ac96e360672 | 366 | ((VL53L1_DeviceError) 3) |
charlesmn | 0:3ac96e360672 | 367 | #define VL53L1_DEVICEERROR_MSRCNOTARGET \ |
charlesmn | 0:3ac96e360672 | 368 | ((VL53L1_DeviceError) 4) |
charlesmn | 0:3ac96e360672 | 369 | #define VL53L1_DEVICEERROR_RANGEPHASECHECK \ |
charlesmn | 0:3ac96e360672 | 370 | ((VL53L1_DeviceError) 5) |
charlesmn | 0:3ac96e360672 | 371 | #define VL53L1_DEVICEERROR_SIGMATHRESHOLDCHECK \ |
charlesmn | 0:3ac96e360672 | 372 | ((VL53L1_DeviceError) 6) |
charlesmn | 0:3ac96e360672 | 373 | #define VL53L1_DEVICEERROR_PHASECONSISTENCY \ |
charlesmn | 0:3ac96e360672 | 374 | ((VL53L1_DeviceError) 7) |
charlesmn | 0:3ac96e360672 | 375 | #define VL53L1_DEVICEERROR_MINCLIP \ |
charlesmn | 0:3ac96e360672 | 376 | ((VL53L1_DeviceError) 8) |
charlesmn | 0:3ac96e360672 | 377 | #define VL53L1_DEVICEERROR_RANGECOMPLETE \ |
charlesmn | 0:3ac96e360672 | 378 | ((VL53L1_DeviceError) 9) |
charlesmn | 0:3ac96e360672 | 379 | #define VL53L1_DEVICEERROR_ALGOUNDERFLOW \ |
charlesmn | 0:3ac96e360672 | 380 | ((VL53L1_DeviceError) 10) |
charlesmn | 0:3ac96e360672 | 381 | #define VL53L1_DEVICEERROR_ALGOOVERFLOW \ |
charlesmn | 0:3ac96e360672 | 382 | ((VL53L1_DeviceError) 11) |
charlesmn | 0:3ac96e360672 | 383 | #define VL53L1_DEVICEERROR_RANGEIGNORETHRESHOLD \ |
charlesmn | 0:3ac96e360672 | 384 | ((VL53L1_DeviceError) 12) |
charlesmn | 0:3ac96e360672 | 385 | #define VL53L1_DEVICEERROR_USERROICLIP \ |
charlesmn | 0:3ac96e360672 | 386 | ((VL53L1_DeviceError) 13) |
charlesmn | 0:3ac96e360672 | 387 | #define VL53L1_DEVICEERROR_REFSPADCHARNOTENOUGHDPADS \ |
charlesmn | 0:3ac96e360672 | 388 | ((VL53L1_DeviceError) 14) |
charlesmn | 0:3ac96e360672 | 389 | #define VL53L1_DEVICEERROR_REFSPADCHARMORETHANTARGET \ |
charlesmn | 0:3ac96e360672 | 390 | ((VL53L1_DeviceError) 15) |
charlesmn | 0:3ac96e360672 | 391 | #define VL53L1_DEVICEERROR_REFSPADCHARLESSTHANTARGET \ |
charlesmn | 0:3ac96e360672 | 392 | ((VL53L1_DeviceError) 16) |
charlesmn | 0:3ac96e360672 | 393 | #define VL53L1_DEVICEERROR_MULTCLIPFAIL \ |
charlesmn | 0:3ac96e360672 | 394 | ((VL53L1_DeviceError) 17) |
charlesmn | 0:3ac96e360672 | 395 | #define VL53L1_DEVICEERROR_GPHSTREAMCOUNT0READY \ |
charlesmn | 0:3ac96e360672 | 396 | ((VL53L1_DeviceError) 18) |
charlesmn | 0:3ac96e360672 | 397 | #define VL53L1_DEVICEERROR_RANGECOMPLETE_NO_WRAP_CHECK \ |
charlesmn | 0:3ac96e360672 | 398 | ((VL53L1_DeviceError) 19) |
charlesmn | 0:3ac96e360672 | 399 | #define VL53L1_DEVICEERROR_EVENTCONSISTENCY \ |
charlesmn | 0:3ac96e360672 | 400 | ((VL53L1_DeviceError) 20) |
charlesmn | 0:3ac96e360672 | 401 | #define VL53L1_DEVICEERROR_MINSIGNALEVENTCHECK \ |
charlesmn | 0:3ac96e360672 | 402 | ((VL53L1_DeviceError) 21) |
charlesmn | 0:3ac96e360672 | 403 | #define VL53L1_DEVICEERROR_RANGECOMPLETE_MERGED_PULSE \ |
charlesmn | 0:3ac96e360672 | 404 | ((VL53L1_DeviceError) 22) |
charlesmn | 0:3ac96e360672 | 405 | |
charlesmn | 0:3ac96e360672 | 406 | |
charlesmn | 0:3ac96e360672 | 407 | #define VL53L1_DEVICEERROR_PREV_RANGE_NO_TARGETS \ |
charlesmn | 0:3ac96e360672 | 408 | ((VL53L1_DeviceError) 23) |
charlesmn | 0:3ac96e360672 | 409 | |
charlesmn | 0:3ac96e360672 | 410 | |
charlesmn | 0:3ac96e360672 | 411 | |
charlesmn | 0:3ac96e360672 | 412 | |
charlesmn | 0:3ac96e360672 | 413 | |
charlesmn | 0:3ac96e360672 | 414 | typedef uint8_t VL53L1_DeviceReportStatus; |
charlesmn | 0:3ac96e360672 | 415 | |
charlesmn | 0:3ac96e360672 | 416 | #define VL53L1_DEVICEREPORTSTATUS_NOUPDATE \ |
charlesmn | 0:3ac96e360672 | 417 | ((VL53L1_DeviceReportStatus) 0) |
charlesmn | 0:3ac96e360672 | 418 | |
charlesmn | 0:3ac96e360672 | 419 | #define VL53L1_DEVICEREPORTSTATUS_ROI_SETUP \ |
charlesmn | 0:3ac96e360672 | 420 | ((VL53L1_DeviceReportStatus) 1) |
charlesmn | 0:3ac96e360672 | 421 | #define VL53L1_DEVICEREPORTSTATUS_VHV \ |
charlesmn | 0:3ac96e360672 | 422 | ((VL53L1_DeviceReportStatus) 2) |
charlesmn | 0:3ac96e360672 | 423 | #define VL53L1_DEVICEREPORTSTATUS_PHASECAL \ |
charlesmn | 0:3ac96e360672 | 424 | ((VL53L1_DeviceReportStatus) 3) |
charlesmn | 0:3ac96e360672 | 425 | #define VL53L1_DEVICEREPORTSTATUS_REFERENCE_PHASE \ |
charlesmn | 0:3ac96e360672 | 426 | ((VL53L1_DeviceReportStatus) 4) |
charlesmn | 0:3ac96e360672 | 427 | #define VL53L1_DEVICEREPORTSTATUS_DSS1 \ |
charlesmn | 0:3ac96e360672 | 428 | ((VL53L1_DeviceReportStatus) 5) |
charlesmn | 0:3ac96e360672 | 429 | #define VL53L1_DEVICEREPORTSTATUS_DSS2 \ |
charlesmn | 0:3ac96e360672 | 430 | ((VL53L1_DeviceReportStatus) 6) |
charlesmn | 0:3ac96e360672 | 431 | #define VL53L1_DEVICEREPORTSTATUS_MM1 \ |
charlesmn | 0:3ac96e360672 | 432 | ((VL53L1_DeviceReportStatus) 7) |
charlesmn | 0:3ac96e360672 | 433 | #define VL53L1_DEVICEREPORTSTATUS_MM2 \ |
charlesmn | 0:3ac96e360672 | 434 | ((VL53L1_DeviceReportStatus) 8) |
charlesmn | 0:3ac96e360672 | 435 | #define VL53L1_DEVICEREPORTSTATUS_RANGE \ |
charlesmn | 0:3ac96e360672 | 436 | ((VL53L1_DeviceReportStatus) 9) |
charlesmn | 0:3ac96e360672 | 437 | #define VL53L1_DEVICEREPORTSTATUS_HISTOGRAM \ |
charlesmn | 0:3ac96e360672 | 438 | ((VL53L1_DeviceReportStatus) 10) |
charlesmn | 0:3ac96e360672 | 439 | |
charlesmn | 0:3ac96e360672 | 440 | |
charlesmn | 0:3ac96e360672 | 441 | |
charlesmn | 0:3ac96e360672 | 442 | |
charlesmn | 0:3ac96e360672 | 443 | |
charlesmn | 0:3ac96e360672 | 444 | typedef uint8_t VL53L1_DeviceDssMode; |
charlesmn | 0:3ac96e360672 | 445 | |
charlesmn | 0:3ac96e360672 | 446 | #define VL53L1_DEVICEDSSMODE__DISABLED \ |
charlesmn | 0:3ac96e360672 | 447 | ((VL53L1_DeviceDssMode) 0) |
charlesmn | 0:3ac96e360672 | 448 | #define VL53L1_DEVICEDSSMODE__TARGET_RATE \ |
charlesmn | 0:3ac96e360672 | 449 | ((VL53L1_DeviceDssMode) 1) |
charlesmn | 0:3ac96e360672 | 450 | #define VL53L1_DEVICEDSSMODE__REQUESTED_EFFFECTIVE_SPADS \ |
charlesmn | 0:3ac96e360672 | 451 | ((VL53L1_DeviceDssMode) 2) |
charlesmn | 0:3ac96e360672 | 452 | #define VL53L1_DEVICEDSSMODE__BLOCK_SELECT \ |
charlesmn | 0:3ac96e360672 | 453 | ((VL53L1_DeviceDssMode) 3) |
charlesmn | 0:3ac96e360672 | 454 | |
charlesmn | 0:3ac96e360672 | 455 | |
charlesmn | 0:3ac96e360672 | 456 | |
charlesmn | 0:3ac96e360672 | 457 | |
charlesmn | 0:3ac96e360672 | 458 | |
charlesmn | 0:3ac96e360672 | 459 | |
charlesmn | 0:3ac96e360672 | 460 | typedef uint8_t VL53L1_HistAlgoSelect; |
charlesmn | 0:3ac96e360672 | 461 | |
charlesmn | 0:3ac96e360672 | 462 | #define VL53L1_HIST_ALGO_SELECT__PW_HIST_GEN1 \ |
charlesmn | 0:3ac96e360672 | 463 | ((VL53L1_HistAlgoSelect) 1) |
charlesmn | 0:3ac96e360672 | 464 | #define VL53L1_HIST_ALGO_SELECT__PW_HIST_GEN2 \ |
charlesmn | 0:3ac96e360672 | 465 | ((VL53L1_HistAlgoSelect) 2) |
charlesmn | 0:3ac96e360672 | 466 | #define VL53L1_HIST_ALGO_SELECT__PW_HIST_GEN3 \ |
charlesmn | 0:3ac96e360672 | 467 | ((VL53L1_HistAlgoSelect) 3) |
charlesmn | 0:3ac96e360672 | 468 | #define VL53L1_HIST_ALGO_SELECT__PW_HIST_GEN4 \ |
charlesmn | 0:3ac96e360672 | 469 | ((VL53L1_HistAlgoSelect) 4) |
charlesmn | 0:3ac96e360672 | 470 | |
charlesmn | 0:3ac96e360672 | 471 | |
charlesmn | 0:3ac96e360672 | 472 | |
charlesmn | 0:3ac96e360672 | 473 | |
charlesmn | 0:3ac96e360672 | 474 | |
charlesmn | 0:3ac96e360672 | 475 | |
charlesmn | 0:3ac96e360672 | 476 | typedef uint8_t VL53L1_HistTargetOrder; |
charlesmn | 0:3ac96e360672 | 477 | |
charlesmn | 0:3ac96e360672 | 478 | #define VL53L1_HIST_TARGET_ORDER__INCREASING_DISTANCE \ |
charlesmn | 0:3ac96e360672 | 479 | ((VL53L1_HistTargetOrder) 1) |
charlesmn | 0:3ac96e360672 | 480 | #define VL53L1_HIST_TARGET_ORDER__STRONGEST_FIRST \ |
charlesmn | 0:3ac96e360672 | 481 | ((VL53L1_HistTargetOrder) 2) |
charlesmn | 0:3ac96e360672 | 482 | |
charlesmn | 0:3ac96e360672 | 483 | |
charlesmn | 0:3ac96e360672 | 484 | |
charlesmn | 0:3ac96e360672 | 485 | |
charlesmn | 0:3ac96e360672 | 486 | |
charlesmn | 0:3ac96e360672 | 487 | |
charlesmn | 0:3ac96e360672 | 488 | typedef uint8_t VL53L1_HistAmbEstMethod; |
charlesmn | 0:3ac96e360672 | 489 | |
charlesmn | 0:3ac96e360672 | 490 | #define VL53L1_HIST_AMB_EST_METHOD__AMBIENT_BINS \ |
charlesmn | 0:3ac96e360672 | 491 | ((VL53L1_HistAmbEstMethod) 1) |
charlesmn | 0:3ac96e360672 | 492 | #define VL53L1_HIST_AMB_EST_METHOD__THRESHOLDED_BINS \ |
charlesmn | 0:3ac96e360672 | 493 | ((VL53L1_HistAmbEstMethod) 2) |
charlesmn | 0:3ac96e360672 | 494 | |
charlesmn | 0:3ac96e360672 | 495 | |
charlesmn | 0:3ac96e360672 | 496 | |
charlesmn | 0:3ac96e360672 | 497 | |
charlesmn | 0:3ac96e360672 | 498 | |
charlesmn | 0:3ac96e360672 | 499 | |
charlesmn | 0:3ac96e360672 | 500 | typedef uint8_t VL53L1_HistXtalkCompEnable; |
charlesmn | 0:3ac96e360672 | 501 | |
charlesmn | 0:3ac96e360672 | 502 | #define VL53L1_HIST_XTALK_COMP__DIS \ |
charlesmn | 0:3ac96e360672 | 503 | ((VL53L1_HistXtalkCompEnable) 0) |
charlesmn | 0:3ac96e360672 | 504 | #define VL53L1_HIST_XTALK_COMP__EN \ |
charlesmn | 0:3ac96e360672 | 505 | ((VL53L1_HistXtalkCompEnable) 1) |
charlesmn | 0:3ac96e360672 | 506 | |
charlesmn | 0:3ac96e360672 | 507 | |
charlesmn | 0:3ac96e360672 | 508 | |
charlesmn | 0:3ac96e360672 | 509 | |
charlesmn | 0:3ac96e360672 | 510 | typedef uint8_t VL53L1_DeviceConfigLevel; |
charlesmn | 0:3ac96e360672 | 511 | |
charlesmn | 0:3ac96e360672 | 512 | #define VL53L1_DEVICECONFIGLEVEL_SYSTEM_CONTROL \ |
charlesmn | 0:3ac96e360672 | 513 | ((VL53L1_DeviceConfigLevel) 0) |
charlesmn | 0:3ac96e360672 | 514 | |
charlesmn | 0:3ac96e360672 | 515 | #define VL53L1_DEVICECONFIGLEVEL_DYNAMIC_ONWARDS \ |
charlesmn | 0:3ac96e360672 | 516 | ((VL53L1_DeviceConfigLevel) 1) |
charlesmn | 0:3ac96e360672 | 517 | |
charlesmn | 0:3ac96e360672 | 518 | #define VL53L1_DEVICECONFIGLEVEL_TIMING_ONWARDS \ |
charlesmn | 0:3ac96e360672 | 519 | ((VL53L1_DeviceConfigLevel) 2) |
charlesmn | 0:3ac96e360672 | 520 | |
charlesmn | 0:3ac96e360672 | 521 | #define VL53L1_DEVICECONFIGLEVEL_GENERAL_ONWARDS \ |
charlesmn | 0:3ac96e360672 | 522 | ((VL53L1_DeviceConfigLevel) 3) |
charlesmn | 0:3ac96e360672 | 523 | |
charlesmn | 0:3ac96e360672 | 524 | #define VL53L1_DEVICECONFIGLEVEL_STATIC_ONWARDS \ |
charlesmn | 0:3ac96e360672 | 525 | ((VL53L1_DeviceConfigLevel) 4) |
charlesmn | 0:3ac96e360672 | 526 | |
charlesmn | 0:3ac96e360672 | 527 | #define VL53L1_DEVICECONFIGLEVEL_CUSTOMER_ONWARDS \ |
charlesmn | 0:3ac96e360672 | 528 | ((VL53L1_DeviceConfigLevel) 5) |
charlesmn | 0:3ac96e360672 | 529 | |
charlesmn | 0:3ac96e360672 | 530 | #define VL53L1_DEVICECONFIGLEVEL_FULL \ |
charlesmn | 0:3ac96e360672 | 531 | ((VL53L1_DeviceConfigLevel) 6) |
charlesmn | 0:3ac96e360672 | 532 | |
charlesmn | 0:3ac96e360672 | 533 | |
charlesmn | 0:3ac96e360672 | 534 | |
charlesmn | 0:3ac96e360672 | 535 | |
charlesmn | 0:3ac96e360672 | 536 | |
charlesmn | 0:3ac96e360672 | 537 | |
charlesmn | 0:3ac96e360672 | 538 | typedef uint8_t VL53L1_DeviceResultsLevel; |
charlesmn | 0:3ac96e360672 | 539 | |
charlesmn | 0:3ac96e360672 | 540 | #define VL53L1_DEVICERESULTSLEVEL_SYSTEM_RESULTS \ |
charlesmn | 0:3ac96e360672 | 541 | ((VL53L1_DeviceResultsLevel) 0) |
charlesmn | 0:3ac96e360672 | 542 | |
charlesmn | 0:3ac96e360672 | 543 | #define VL53L1_DEVICERESULTSLEVEL_UPTO_CORE \ |
charlesmn | 0:3ac96e360672 | 544 | ((VL53L1_DeviceResultsLevel) 1) |
charlesmn | 0:3ac96e360672 | 545 | |
charlesmn | 0:3ac96e360672 | 546 | #define VL53L1_DEVICERESULTSLEVEL_FULL \ |
charlesmn | 0:3ac96e360672 | 547 | ((VL53L1_DeviceResultsLevel) 2) |
charlesmn | 0:3ac96e360672 | 548 | |
charlesmn | 0:3ac96e360672 | 549 | |
charlesmn | 0:3ac96e360672 | 550 | |
charlesmn | 0:3ac96e360672 | 551 | |
charlesmn | 0:3ac96e360672 | 552 | |
charlesmn | 0:3ac96e360672 | 553 | |
charlesmn | 0:3ac96e360672 | 554 | |
charlesmn | 0:3ac96e360672 | 555 | typedef uint8_t VL53L1_DeviceTestMode; |
charlesmn | 0:3ac96e360672 | 556 | |
charlesmn | 0:3ac96e360672 | 557 | #define VL53L1_DEVICETESTMODE_NONE \ |
charlesmn | 0:3ac96e360672 | 558 | ((VL53L1_DeviceTestMode) 0x00) |
charlesmn | 0:3ac96e360672 | 559 | |
charlesmn | 0:3ac96e360672 | 560 | #define VL53L1_DEVICETESTMODE_NVM_ZERO \ |
charlesmn | 0:3ac96e360672 | 561 | ((VL53L1_DeviceTestMode) 0x01) |
charlesmn | 0:3ac96e360672 | 562 | |
charlesmn | 0:3ac96e360672 | 563 | #define VL53L1_DEVICETESTMODE_NVM_COPY \ |
charlesmn | 0:3ac96e360672 | 564 | ((VL53L1_DeviceTestMode) 0x02) |
charlesmn | 0:3ac96e360672 | 565 | |
charlesmn | 0:3ac96e360672 | 566 | #define VL53L1_DEVICETESTMODE_PATCH \ |
charlesmn | 0:3ac96e360672 | 567 | ((VL53L1_DeviceTestMode) 0x03) |
charlesmn | 0:3ac96e360672 | 568 | |
charlesmn | 0:3ac96e360672 | 569 | #define VL53L1_DEVICETESTMODE_DCR \ |
charlesmn | 0:3ac96e360672 | 570 | ((VL53L1_DeviceTestMode) 0x04) |
charlesmn | 0:3ac96e360672 | 571 | |
charlesmn | 0:3ac96e360672 | 572 | #define VL53L1_DEVICETESTMODE_LCR_VCSEL_OFF \ |
charlesmn | 0:3ac96e360672 | 573 | ((VL53L1_DeviceTestMode) 0x05) |
charlesmn | 0:3ac96e360672 | 574 | |
charlesmn | 0:3ac96e360672 | 575 | #define VL53L1_DEVICETESTMODE_LCR_VCSEL_ON \ |
charlesmn | 0:3ac96e360672 | 576 | ((VL53L1_DeviceTestMode) 0x06) |
charlesmn | 0:3ac96e360672 | 577 | |
charlesmn | 0:3ac96e360672 | 578 | #define VL53L1_DEVICETESTMODE_SPOT_CENTRE_LOCATE \ |
charlesmn | 0:3ac96e360672 | 579 | ((VL53L1_DeviceTestMode) 0x07) |
charlesmn | 0:3ac96e360672 | 580 | |
charlesmn | 0:3ac96e360672 | 581 | #define VL53L1_DEVICETESTMODE_REF_SPAD_CHAR_WITH_PRE_VHV \ |
charlesmn | 0:3ac96e360672 | 582 | ((VL53L1_DeviceTestMode) 0x08) |
charlesmn | 0:3ac96e360672 | 583 | |
charlesmn | 0:3ac96e360672 | 584 | #define VL53L1_DEVICETESTMODE_REF_SPAD_CHAR_ONLY \ |
charlesmn | 0:3ac96e360672 | 585 | ((VL53L1_DeviceTestMode) 0x09) |
charlesmn | 0:3ac96e360672 | 586 | |
charlesmn | 0:3ac96e360672 | 587 | |
charlesmn | 0:3ac96e360672 | 588 | |
charlesmn | 0:3ac96e360672 | 589 | |
charlesmn | 0:3ac96e360672 | 590 | |
charlesmn | 0:3ac96e360672 | 591 | |
charlesmn | 0:3ac96e360672 | 592 | |
charlesmn | 0:3ac96e360672 | 593 | typedef uint8_t VL53L1_DeviceSscArray; |
charlesmn | 0:3ac96e360672 | 594 | |
charlesmn | 0:3ac96e360672 | 595 | #define VL53L1_DEVICESSCARRAY_RTN ((VL53L1_DeviceSscArray) 0x00) |
charlesmn | 0:3ac96e360672 | 596 | |
charlesmn | 0:3ac96e360672 | 597 | #define VL53L1_DEVICETESTMODE_REF ((VL53L1_DeviceSscArray) 0x01) |
charlesmn | 0:3ac96e360672 | 598 | |
charlesmn | 0:3ac96e360672 | 599 | |
charlesmn | 0:3ac96e360672 | 600 | |
charlesmn | 0:3ac96e360672 | 601 | |
charlesmn | 0:3ac96e360672 | 602 | |
charlesmn | 0:3ac96e360672 | 603 | |
charlesmn | 0:3ac96e360672 | 604 | |
charlesmn | 0:3ac96e360672 | 605 | #define VL53L1_RETURN_ARRAY_ONLY 0x01 |
charlesmn | 0:3ac96e360672 | 606 | |
charlesmn | 0:3ac96e360672 | 607 | #define VL53L1_REFERENCE_ARRAY_ONLY 0x10 |
charlesmn | 0:3ac96e360672 | 608 | |
charlesmn | 0:3ac96e360672 | 609 | #define VL53L1_BOTH_RETURN_AND_REFERENCE_ARRAYS 0x11 |
charlesmn | 0:3ac96e360672 | 610 | |
charlesmn | 0:3ac96e360672 | 611 | #define VL53L1_NEITHER_RETURN_AND_REFERENCE_ARRAYS 0x00 |
charlesmn | 0:3ac96e360672 | 612 | |
charlesmn | 0:3ac96e360672 | 613 | |
charlesmn | 0:3ac96e360672 | 614 | |
charlesmn | 0:3ac96e360672 | 615 | |
charlesmn | 0:3ac96e360672 | 616 | |
charlesmn | 0:3ac96e360672 | 617 | |
charlesmn | 0:3ac96e360672 | 618 | #define VL53L1_DEVICEINTERRUPTLEVEL_ACTIVE_HIGH 0x00 |
charlesmn | 0:3ac96e360672 | 619 | |
charlesmn | 0:3ac96e360672 | 620 | #define VL53L1_DEVICEINTERRUPTLEVEL_ACTIVE_LOW 0x10 |
charlesmn | 0:3ac96e360672 | 621 | |
charlesmn | 0:3ac96e360672 | 622 | #define VL53L1_DEVICEINTERRUPTLEVEL_ACTIVE_MASK 0x10 |
charlesmn | 0:3ac96e360672 | 623 | |
charlesmn | 0:3ac96e360672 | 624 | |
charlesmn | 0:3ac96e360672 | 625 | |
charlesmn | 0:3ac96e360672 | 626 | |
charlesmn | 0:3ac96e360672 | 627 | |
charlesmn | 0:3ac96e360672 | 628 | |
charlesmn | 0:3ac96e360672 | 629 | #define VL53L1_POLLING_DELAY_US 1000 |
charlesmn | 0:3ac96e360672 | 630 | |
charlesmn | 0:3ac96e360672 | 631 | #define VL53L1_SOFTWARE_RESET_DURATION_US 100 |
charlesmn | 0:3ac96e360672 | 632 | |
charlesmn | 0:3ac96e360672 | 633 | #define VL53L1_FIRMWARE_BOOT_TIME_US 1200 |
charlesmn | 0:3ac96e360672 | 634 | |
charlesmn | 0:3ac96e360672 | 635 | #define VL53L1_ENABLE_POWERFORCE_SETTLING_TIME_US 250 |
charlesmn | 0:3ac96e360672 | 636 | |
charlesmn | 0:3ac96e360672 | 637 | #define VL53L1_SPAD_ARRAY_WIDTH 16 |
charlesmn | 0:3ac96e360672 | 638 | |
charlesmn | 0:3ac96e360672 | 639 | #define VL53L1_SPAD_ARRAY_HEIGHT 16 |
charlesmn | 0:3ac96e360672 | 640 | |
charlesmn | 0:3ac96e360672 | 641 | #define VL53L1_NVM_SIZE_IN_BYTES 512 |
charlesmn | 0:3ac96e360672 | 642 | |
charlesmn | 0:3ac96e360672 | 643 | #define VL53L1_NO_OF_SPAD_ENABLES 256 |
charlesmn | 0:3ac96e360672 | 644 | |
charlesmn | 0:3ac96e360672 | 645 | #define VL53L1_RTN_SPAD_BUFFER_SIZE 32 |
charlesmn | 0:3ac96e360672 | 646 | |
charlesmn | 0:3ac96e360672 | 647 | #define VL53L1_REF_SPAD_BUFFER_SIZE 6 |
charlesmn | 0:3ac96e360672 | 648 | |
charlesmn | 0:3ac96e360672 | 649 | #define VL53L1_AMBIENT_WINDOW_VCSEL_PERIODS 256 |
charlesmn | 0:3ac96e360672 | 650 | |
charlesmn | 0:3ac96e360672 | 651 | #define VL53L1_RANGING_WINDOW_VCSEL_PERIODS 2048 |
charlesmn | 0:3ac96e360672 | 652 | |
charlesmn | 0:3ac96e360672 | 653 | #define VL53L1_MACRO_PERIOD_VCSEL_PERIODS \ |
charlesmn | 0:3ac96e360672 | 654 | (VL53L1_AMBIENT_WINDOW_VCSEL_PERIODS + \ |
charlesmn | 0:3ac96e360672 | 655 | VL53L1_RANGING_WINDOW_VCSEL_PERIODS) |
charlesmn | 0:3ac96e360672 | 656 | |
charlesmn | 0:3ac96e360672 | 657 | #define VL53L1_MAX_ALLOWED_PHASE 0xFFFF |
charlesmn | 0:3ac96e360672 | 658 | |
charlesmn | 0:3ac96e360672 | 659 | |
charlesmn | 0:3ac96e360672 | 660 | #define VL53L1_RTN_SPAD_UNITY_TRANSMISSION 0x0100 |
charlesmn | 0:3ac96e360672 | 661 | |
charlesmn | 0:3ac96e360672 | 662 | #define VL53L1_RTN_SPAD_APERTURE_TRANSMISSION 0x0038 |
charlesmn | 0:3ac96e360672 | 663 | |
charlesmn | 0:3ac96e360672 | 664 | |
charlesmn | 0:3ac96e360672 | 665 | #define VL53L1_SPAD_TOTAL_COUNT_MAX ((0x01 << 29) - 1) |
charlesmn | 0:3ac96e360672 | 666 | |
charlesmn | 0:3ac96e360672 | 667 | #define VL53L1_SPAD_TOTAL_COUNT_RES_THRES (0x01 << 24) |
charlesmn | 0:3ac96e360672 | 668 | |
charlesmn | 0:3ac96e360672 | 669 | #define VL53L1_COUNT_RATE_INTERNAL_MAX ((0x01 << 24) - 1) |
charlesmn | 0:3ac96e360672 | 670 | |
charlesmn | 0:3ac96e360672 | 671 | #define VL53L1_SPEED_OF_LIGHT_IN_AIR 299704 |
charlesmn | 0:3ac96e360672 | 672 | |
charlesmn | 0:3ac96e360672 | 673 | #define VL53L1_SPEED_OF_LIGHT_IN_AIR_DIV_8 (299704 >> 3) |
charlesmn | 0:3ac96e360672 | 674 | |
charlesmn | 0:3ac96e360672 | 675 | |
charlesmn | 0:3ac96e360672 | 676 | |
charlesmn | 0:3ac96e360672 | 677 | |
charlesmn | 0:3ac96e360672 | 678 | |
charlesmn | 0:3ac96e360672 | 679 | |
charlesmn | 0:3ac96e360672 | 680 | |
charlesmn | 0:3ac96e360672 | 681 | |
charlesmn | 0:3ac96e360672 | 682 | typedef uint8_t VL53L1_ZoneConfig_BinConfig_select; |
charlesmn | 0:3ac96e360672 | 683 | |
charlesmn | 0:3ac96e360672 | 684 | #define VL53L1_ZONECONFIG_BINCONFIG__LOWAMB \ |
charlesmn | 0:3ac96e360672 | 685 | ((VL53L1_ZoneConfig_BinConfig_select) 1) |
charlesmn | 0:3ac96e360672 | 686 | #define VL53L1_ZONECONFIG_BINCONFIG__MIDAMB \ |
charlesmn | 0:3ac96e360672 | 687 | ((VL53L1_ZoneConfig_BinConfig_select) 2) |
charlesmn | 0:3ac96e360672 | 688 | #define VL53L1_ZONECONFIG_BINCONFIG__HIGHAMB \ |
charlesmn | 0:3ac96e360672 | 689 | ((VL53L1_ZoneConfig_BinConfig_select) 3) |
charlesmn | 0:3ac96e360672 | 690 | |
charlesmn | 0:3ac96e360672 | 691 | |
charlesmn | 0:3ac96e360672 | 692 | |
charlesmn | 0:3ac96e360672 | 693 | |
charlesmn | 0:3ac96e360672 | 694 | |
charlesmn | 0:3ac96e360672 | 695 | typedef uint8_t VL53L1_GPIO_Interrupt_Mode; |
charlesmn | 0:3ac96e360672 | 696 | |
charlesmn | 0:3ac96e360672 | 697 | #define VL53L1_GPIOINTMODE_LEVEL_LOW \ |
charlesmn | 0:3ac96e360672 | 698 | ((VL53L1_GPIO_Interrupt_Mode) 0) |
charlesmn | 0:3ac96e360672 | 699 | |
charlesmn | 0:3ac96e360672 | 700 | #define VL53L1_GPIOINTMODE_LEVEL_HIGH \ |
charlesmn | 0:3ac96e360672 | 701 | ((VL53L1_GPIO_Interrupt_Mode) 1) |
charlesmn | 0:3ac96e360672 | 702 | |
charlesmn | 0:3ac96e360672 | 703 | #define VL53L1_GPIOINTMODE_OUT_OF_WINDOW \ |
charlesmn | 0:3ac96e360672 | 704 | ((VL53L1_GPIO_Interrupt_Mode) 2) |
charlesmn | 0:3ac96e360672 | 705 | |
charlesmn | 0:3ac96e360672 | 706 | #define VL53L1_GPIOINTMODE_IN_WINDOW \ |
charlesmn | 0:3ac96e360672 | 707 | ((VL53L1_GPIO_Interrupt_Mode) 3) |
charlesmn | 0:3ac96e360672 | 708 | |
charlesmn | 0:3ac96e360672 | 709 | |
charlesmn | 0:3ac96e360672 | 710 | |
charlesmn | 0:3ac96e360672 | 711 | |
charlesmn | 0:3ac96e360672 | 712 | |
charlesmn | 0:3ac96e360672 | 713 | |
charlesmn | 0:3ac96e360672 | 714 | typedef uint16_t VL53L1_TuningParms; |
charlesmn | 0:3ac96e360672 | 715 | |
charlesmn | 0:3ac96e360672 | 716 | #define VL53L1_TUNINGPARMS_LLD_PUBLIC_MIN_ADDRESS \ |
charlesmn | 0:3ac96e360672 | 717 | ((VL53L1_TuningParms) VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS) |
charlesmn | 0:3ac96e360672 | 718 | #define VL53L1_TUNINGPARMS_LLD_PUBLIC_MAX_ADDRESS \ |
charlesmn | 0:3ac96e360672 | 719 | ((VL53L1_TuningParms) VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_5_RANGEB) |
charlesmn | 0:3ac96e360672 | 720 | |
charlesmn | 0:3ac96e360672 | 721 | #define VL53L1_TUNINGPARMS_LLD_PRIVATE_MIN_ADDRESS \ |
charlesmn | 0:3ac96e360672 | 722 | ((VL53L1_TuningParms) VL53L1_TUNINGPARM_PRIVATE_PAGE_BASE_ADDRESS) |
charlesmn | 0:3ac96e360672 | 723 | #define VL53L1_TUNINGPARMS_LLD_PRIVATE_MAX_ADDRESS \ |
charlesmn | 0:3ac96e360672 | 724 | ((VL53L1_TuningParms) VL53L1_TUNINGPARMS_LLD_PRIVATE_MIN_ADDRESS) |
charlesmn | 0:3ac96e360672 | 725 | |
charlesmn | 0:3ac96e360672 | 726 | #define VL53L1_TUNINGPARM_VERSION \ |
charlesmn | 0:3ac96e360672 | 727 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 0)) |
charlesmn | 0:3ac96e360672 | 728 | #define VL53L1_TUNINGPARM_KEY_TABLE_VERSION \ |
charlesmn | 0:3ac96e360672 | 729 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 1)) |
charlesmn | 0:3ac96e360672 | 730 | #define VL53L1_TUNINGPARM_LLD_VERSION \ |
charlesmn | 0:3ac96e360672 | 731 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 2)) |
charlesmn | 0:3ac96e360672 | 732 | #define VL53L1_TUNINGPARM_HIST_ALGO_SELECT \ |
charlesmn | 0:3ac96e360672 | 733 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 3)) |
charlesmn | 0:3ac96e360672 | 734 | #define VL53L1_TUNINGPARM_HIST_TARGET_ORDER \ |
charlesmn | 0:3ac96e360672 | 735 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 4)) |
charlesmn | 0:3ac96e360672 | 736 | #define VL53L1_TUNINGPARM_HIST_FILTER_WOI_0 \ |
charlesmn | 0:3ac96e360672 | 737 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 5)) |
charlesmn | 0:3ac96e360672 | 738 | #define VL53L1_TUNINGPARM_HIST_FILTER_WOI_1 \ |
charlesmn | 0:3ac96e360672 | 739 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 6)) |
charlesmn | 0:3ac96e360672 | 740 | #define VL53L1_TUNINGPARM_HIST_AMB_EST_METHOD \ |
charlesmn | 0:3ac96e360672 | 741 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 7)) |
charlesmn | 0:3ac96e360672 | 742 | #define VL53L1_TUNINGPARM_HIST_AMB_THRESH_SIGMA_0 \ |
charlesmn | 0:3ac96e360672 | 743 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 8)) |
charlesmn | 0:3ac96e360672 | 744 | #define VL53L1_TUNINGPARM_HIST_AMB_THRESH_SIGMA_1 \ |
charlesmn | 0:3ac96e360672 | 745 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 9)) |
charlesmn | 0:3ac96e360672 | 746 | #define VL53L1_TUNINGPARM_HIST_MIN_AMB_THRESH_EVENTS \ |
charlesmn | 0:3ac96e360672 | 747 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 10)) |
charlesmn | 0:3ac96e360672 | 748 | #define VL53L1_TUNINGPARM_HIST_AMB_EVENTS_SCALER \ |
charlesmn | 0:3ac96e360672 | 749 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 11)) |
charlesmn | 0:3ac96e360672 | 750 | #define VL53L1_TUNINGPARM_HIST_NOISE_THRESHOLD \ |
charlesmn | 0:3ac96e360672 | 751 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 12)) |
charlesmn | 0:3ac96e360672 | 752 | #define VL53L1_TUNINGPARM_HIST_SIGNAL_TOTAL_EVENTS_LIMIT \ |
charlesmn | 0:3ac96e360672 | 753 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 13)) |
charlesmn | 0:3ac96e360672 | 754 | #define VL53L1_TUNINGPARM_HIST_SIGMA_EST_REF_MM \ |
charlesmn | 0:3ac96e360672 | 755 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 14)) |
charlesmn | 0:3ac96e360672 | 756 | #define VL53L1_TUNINGPARM_HIST_SIGMA_THRESH_MM \ |
charlesmn | 0:3ac96e360672 | 757 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 15)) |
charlesmn | 0:3ac96e360672 | 758 | #define VL53L1_TUNINGPARM_HIST_GAIN_FACTOR \ |
charlesmn | 0:3ac96e360672 | 759 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 16)) |
charlesmn | 0:3ac96e360672 | 760 | #define VL53L1_TUNINGPARM_CONSISTENCY_HIST_PHASE_TOLERANCE \ |
charlesmn | 0:3ac96e360672 | 761 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 17)) |
charlesmn | 0:3ac96e360672 | 762 | #define VL53L1_TUNINGPARM_CONSISTENCY_HIST_MIN_MAX_TOLERANCE_MM \ |
charlesmn | 0:3ac96e360672 | 763 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 18)) |
charlesmn | 0:3ac96e360672 | 764 | #define VL53L1_TUNINGPARM_CONSISTENCY_HIST_EVENT_SIGMA \ |
charlesmn | 0:3ac96e360672 | 765 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 19)) |
charlesmn | 0:3ac96e360672 | 766 | #define VL53L1_TUNINGPARM_CONSISTENCY_HIST_EVENT_SIGMA_MIN_SPAD_LIMIT \ |
charlesmn | 0:3ac96e360672 | 767 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 20)) |
charlesmn | 0:3ac96e360672 | 768 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_HISTO_LONG_RANGE \ |
charlesmn | 0:3ac96e360672 | 769 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 21)) |
charlesmn | 0:3ac96e360672 | 770 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_HISTO_MED_RANGE \ |
charlesmn | 0:3ac96e360672 | 771 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 22)) |
charlesmn | 0:3ac96e360672 | 772 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_HISTO_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 773 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 23)) |
charlesmn | 0:3ac96e360672 | 774 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_HISTO_LONG_RANGE \ |
charlesmn | 0:3ac96e360672 | 775 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 24)) |
charlesmn | 0:3ac96e360672 | 776 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_HISTO_MED_RANGE \ |
charlesmn | 0:3ac96e360672 | 777 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 25)) |
charlesmn | 0:3ac96e360672 | 778 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_HISTO_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 779 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 26)) |
charlesmn | 0:3ac96e360672 | 780 | #define VL53L1_TUNINGPARM_XTALK_DETECT_MIN_VALID_RANGE_MM \ |
charlesmn | 0:3ac96e360672 | 781 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 27)) |
charlesmn | 0:3ac96e360672 | 782 | #define VL53L1_TUNINGPARM_XTALK_DETECT_MAX_VALID_RANGE_MM \ |
charlesmn | 0:3ac96e360672 | 783 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 28)) |
charlesmn | 0:3ac96e360672 | 784 | #define VL53L1_TUNINGPARM_XTALK_DETECT_MAX_SIGMA_MM \ |
charlesmn | 0:3ac96e360672 | 785 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 29)) |
charlesmn | 0:3ac96e360672 | 786 | #define VL53L1_TUNINGPARM_XTALK_DETECT_MIN_MAX_TOLERANCE \ |
charlesmn | 0:3ac96e360672 | 787 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 30)) |
charlesmn | 0:3ac96e360672 | 788 | #define VL53L1_TUNINGPARM_XTALK_DETECT_MAX_VALID_RATE_KCPS \ |
charlesmn | 0:3ac96e360672 | 789 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 31)) |
charlesmn | 0:3ac96e360672 | 790 | #define VL53L1_TUNINGPARM_XTALK_DETECT_EVENT_SIGMA \ |
charlesmn | 0:3ac96e360672 | 791 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 32)) |
charlesmn | 0:3ac96e360672 | 792 | #define VL53L1_TUNINGPARM_HIST_XTALK_MARGIN_KCPS \ |
charlesmn | 0:3ac96e360672 | 793 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 33)) |
charlesmn | 0:3ac96e360672 | 794 | #define VL53L1_TUNINGPARM_CONSISTENCY_LITE_PHASE_TOLERANCE \ |
charlesmn | 0:3ac96e360672 | 795 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 34)) |
charlesmn | 0:3ac96e360672 | 796 | #define VL53L1_TUNINGPARM_PHASECAL_TARGET \ |
charlesmn | 0:3ac96e360672 | 797 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 35)) |
charlesmn | 0:3ac96e360672 | 798 | #define VL53L1_TUNINGPARM_LITE_CAL_REPEAT_RATE \ |
charlesmn | 0:3ac96e360672 | 799 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 36)) |
charlesmn | 0:3ac96e360672 | 800 | #define VL53L1_TUNINGPARM_LITE_RANGING_GAIN_FACTOR \ |
charlesmn | 0:3ac96e360672 | 801 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 37)) |
charlesmn | 0:3ac96e360672 | 802 | #define VL53L1_TUNINGPARM_LITE_MIN_CLIP_MM \ |
charlesmn | 0:3ac96e360672 | 803 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 38)) |
charlesmn | 0:3ac96e360672 | 804 | #define VL53L1_TUNINGPARM_LITE_LONG_SIGMA_THRESH_MM \ |
charlesmn | 0:3ac96e360672 | 805 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 39)) |
charlesmn | 0:3ac96e360672 | 806 | #define VL53L1_TUNINGPARM_LITE_MED_SIGMA_THRESH_MM \ |
charlesmn | 0:3ac96e360672 | 807 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 40)) |
charlesmn | 0:3ac96e360672 | 808 | #define VL53L1_TUNINGPARM_LITE_SHORT_SIGMA_THRESH_MM \ |
charlesmn | 0:3ac96e360672 | 809 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 41)) |
charlesmn | 0:3ac96e360672 | 810 | #define VL53L1_TUNINGPARM_LITE_LONG_MIN_COUNT_RATE_RTN_MCPS \ |
charlesmn | 0:3ac96e360672 | 811 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 42)) |
charlesmn | 0:3ac96e360672 | 812 | #define VL53L1_TUNINGPARM_LITE_MED_MIN_COUNT_RATE_RTN_MCPS \ |
charlesmn | 0:3ac96e360672 | 813 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 43)) |
charlesmn | 0:3ac96e360672 | 814 | #define VL53L1_TUNINGPARM_LITE_SHORT_MIN_COUNT_RATE_RTN_MCPS \ |
charlesmn | 0:3ac96e360672 | 815 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 44)) |
charlesmn | 0:3ac96e360672 | 816 | #define VL53L1_TUNINGPARM_LITE_SIGMA_EST_PULSE_WIDTH \ |
charlesmn | 0:3ac96e360672 | 817 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 45)) |
charlesmn | 0:3ac96e360672 | 818 | #define VL53L1_TUNINGPARM_LITE_SIGMA_EST_AMB_WIDTH_NS \ |
charlesmn | 0:3ac96e360672 | 819 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 46)) |
charlesmn | 0:3ac96e360672 | 820 | #define VL53L1_TUNINGPARM_LITE_SIGMA_REF_MM \ |
charlesmn | 0:3ac96e360672 | 821 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 47)) |
charlesmn | 0:3ac96e360672 | 822 | #define VL53L1_TUNINGPARM_LITE_RIT_MULT \ |
charlesmn | 0:3ac96e360672 | 823 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 48)) |
charlesmn | 0:3ac96e360672 | 824 | #define VL53L1_TUNINGPARM_LITE_SEED_CONFIG \ |
charlesmn | 0:3ac96e360672 | 825 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 49)) |
charlesmn | 0:3ac96e360672 | 826 | #define VL53L1_TUNINGPARM_LITE_QUANTIFIER \ |
charlesmn | 0:3ac96e360672 | 827 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 50)) |
charlesmn | 0:3ac96e360672 | 828 | #define VL53L1_TUNINGPARM_LITE_FIRST_ORDER_SELECT \ |
charlesmn | 0:3ac96e360672 | 829 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 51)) |
charlesmn | 0:3ac96e360672 | 830 | #define VL53L1_TUNINGPARM_LITE_XTALK_MARGIN_KCPS \ |
charlesmn | 0:3ac96e360672 | 831 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 52)) |
charlesmn | 0:3ac96e360672 | 832 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_LITE_LONG_RANGE \ |
charlesmn | 0:3ac96e360672 | 833 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 53)) |
charlesmn | 0:3ac96e360672 | 834 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_LITE_MED_RANGE \ |
charlesmn | 0:3ac96e360672 | 835 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 54)) |
charlesmn | 0:3ac96e360672 | 836 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_RTN_LITE_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 837 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 55)) |
charlesmn | 0:3ac96e360672 | 838 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_LITE_LONG_RANGE \ |
charlesmn | 0:3ac96e360672 | 839 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 56)) |
charlesmn | 0:3ac96e360672 | 840 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_LITE_MED_RANGE \ |
charlesmn | 0:3ac96e360672 | 841 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 57)) |
charlesmn | 0:3ac96e360672 | 842 | #define VL53L1_TUNINGPARM_INITIAL_PHASE_REF_LITE_SHORT_RANGE \ |
charlesmn | 0:3ac96e360672 | 843 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 58)) |
charlesmn | 0:3ac96e360672 | 844 | #define VL53L1_TUNINGPARM_TIMED_SEED_CONFIG \ |
charlesmn | 0:3ac96e360672 | 845 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 59)) |
charlesmn | 0:3ac96e360672 | 846 | #define VL53L1_TUNINGPARM_DMAX_CFG_SIGNAL_THRESH_SIGMA \ |
charlesmn | 0:3ac96e360672 | 847 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 60)) |
charlesmn | 0:3ac96e360672 | 848 | #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_0 \ |
charlesmn | 0:3ac96e360672 | 849 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 61)) |
charlesmn | 0:3ac96e360672 | 850 | #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_1 \ |
charlesmn | 0:3ac96e360672 | 851 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 62)) |
charlesmn | 0:3ac96e360672 | 852 | #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_2 \ |
charlesmn | 0:3ac96e360672 | 853 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 63)) |
charlesmn | 0:3ac96e360672 | 854 | #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_3 \ |
charlesmn | 0:3ac96e360672 | 855 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 64)) |
charlesmn | 0:3ac96e360672 | 856 | #define VL53L1_TUNINGPARM_DMAX_CFG_REFLECTANCE_ARRAY_4 \ |
charlesmn | 0:3ac96e360672 | 857 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 65)) |
charlesmn | 0:3ac96e360672 | 858 | #define VL53L1_TUNINGPARM_VHV_LOOPBOUND \ |
charlesmn | 0:3ac96e360672 | 859 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 66)) |
charlesmn | 0:3ac96e360672 | 860 | #define VL53L1_TUNINGPARM_REFSPADCHAR_DEVICE_TEST_MODE \ |
charlesmn | 0:3ac96e360672 | 861 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 67)) |
charlesmn | 0:3ac96e360672 | 862 | #define VL53L1_TUNINGPARM_REFSPADCHAR_VCSEL_PERIOD \ |
charlesmn | 0:3ac96e360672 | 863 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 68)) |
charlesmn | 0:3ac96e360672 | 864 | #define VL53L1_TUNINGPARM_REFSPADCHAR_PHASECAL_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 865 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 69)) |
charlesmn | 0:3ac96e360672 | 866 | #define VL53L1_TUNINGPARM_REFSPADCHAR_TARGET_COUNT_RATE_MCPS \ |
charlesmn | 0:3ac96e360672 | 867 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 70)) |
charlesmn | 0:3ac96e360672 | 868 | #define VL53L1_TUNINGPARM_REFSPADCHAR_MIN_COUNTRATE_LIMIT_MCPS \ |
charlesmn | 0:3ac96e360672 | 869 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 71)) |
charlesmn | 0:3ac96e360672 | 870 | #define VL53L1_TUNINGPARM_REFSPADCHAR_MAX_COUNTRATE_LIMIT_MCPS \ |
charlesmn | 0:3ac96e360672 | 871 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 72)) |
charlesmn | 0:3ac96e360672 | 872 | #define VL53L1_TUNINGPARM_XTALK_EXTRACT_NUM_OF_SAMPLES \ |
charlesmn | 0:3ac96e360672 | 873 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 73)) |
charlesmn | 0:3ac96e360672 | 874 | #define VL53L1_TUNINGPARM_XTALK_EXTRACT_MIN_FILTER_THRESH_MM \ |
charlesmn | 0:3ac96e360672 | 875 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 74)) |
charlesmn | 0:3ac96e360672 | 876 | #define VL53L1_TUNINGPARM_XTALK_EXTRACT_MAX_FILTER_THRESH_MM \ |
charlesmn | 0:3ac96e360672 | 877 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 75)) |
charlesmn | 0:3ac96e360672 | 878 | #define VL53L1_TUNINGPARM_XTALK_EXTRACT_DSS_RATE_MCPS \ |
charlesmn | 0:3ac96e360672 | 879 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 76)) |
charlesmn | 0:3ac96e360672 | 880 | #define VL53L1_TUNINGPARM_XTALK_EXTRACT_PHASECAL_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 881 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 77)) |
charlesmn | 0:3ac96e360672 | 882 | #define VL53L1_TUNINGPARM_XTALK_EXTRACT_MAX_VALID_RATE_KCPS \ |
charlesmn | 0:3ac96e360672 | 883 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 78)) |
charlesmn | 0:3ac96e360672 | 884 | #define VL53L1_TUNINGPARM_XTALK_EXTRACT_SIGMA_THRESHOLD_MM \ |
charlesmn | 0:3ac96e360672 | 885 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 79)) |
charlesmn | 0:3ac96e360672 | 886 | #define VL53L1_TUNINGPARM_XTALK_EXTRACT_DSS_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 887 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 80)) |
charlesmn | 0:3ac96e360672 | 888 | #define VL53L1_TUNINGPARM_XTALK_EXTRACT_BIN_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 889 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 81)) |
charlesmn | 0:3ac96e360672 | 890 | #define VL53L1_TUNINGPARM_OFFSET_CAL_DSS_RATE_MCPS \ |
charlesmn | 0:3ac96e360672 | 891 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 82)) |
charlesmn | 0:3ac96e360672 | 892 | #define VL53L1_TUNINGPARM_OFFSET_CAL_PHASECAL_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 893 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 83)) |
charlesmn | 0:3ac96e360672 | 894 | #define VL53L1_TUNINGPARM_OFFSET_CAL_MM_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 895 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 84)) |
charlesmn | 0:3ac96e360672 | 896 | #define VL53L1_TUNINGPARM_OFFSET_CAL_RANGE_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 897 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 85)) |
charlesmn | 0:3ac96e360672 | 898 | #define VL53L1_TUNINGPARM_OFFSET_CAL_PRE_SAMPLES \ |
charlesmn | 0:3ac96e360672 | 899 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 86)) |
charlesmn | 0:3ac96e360672 | 900 | #define VL53L1_TUNINGPARM_OFFSET_CAL_MM1_SAMPLES \ |
charlesmn | 0:3ac96e360672 | 901 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 87)) |
charlesmn | 0:3ac96e360672 | 902 | #define VL53L1_TUNINGPARM_OFFSET_CAL_MM2_SAMPLES \ |
charlesmn | 0:3ac96e360672 | 903 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 88)) |
charlesmn | 0:3ac96e360672 | 904 | #define VL53L1_TUNINGPARM_ZONE_CAL_DSS_RATE_MCPS \ |
charlesmn | 0:3ac96e360672 | 905 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 89)) |
charlesmn | 0:3ac96e360672 | 906 | #define VL53L1_TUNINGPARM_ZONE_CAL_PHASECAL_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 907 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 90)) |
charlesmn | 0:3ac96e360672 | 908 | #define VL53L1_TUNINGPARM_ZONE_CAL_DSS_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 909 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 91)) |
charlesmn | 0:3ac96e360672 | 910 | #define VL53L1_TUNINGPARM_ZONE_CAL_PHASECAL_NUM_SAMPLES \ |
charlesmn | 0:3ac96e360672 | 911 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 92)) |
charlesmn | 0:3ac96e360672 | 912 | #define VL53L1_TUNINGPARM_ZONE_CAL_RANGE_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 913 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 93)) |
charlesmn | 0:3ac96e360672 | 914 | #define VL53L1_TUNINGPARM_ZONE_CAL_ZONE_NUM_SAMPLES \ |
charlesmn | 0:3ac96e360672 | 915 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 94)) |
charlesmn | 0:3ac96e360672 | 916 | #define VL53L1_TUNINGPARM_SPADMAP_VCSEL_PERIOD \ |
charlesmn | 0:3ac96e360672 | 917 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 95)) |
charlesmn | 0:3ac96e360672 | 918 | #define VL53L1_TUNINGPARM_SPADMAP_VCSEL_START \ |
charlesmn | 0:3ac96e360672 | 919 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 96)) |
charlesmn | 0:3ac96e360672 | 920 | #define VL53L1_TUNINGPARM_SPADMAP_RATE_LIMIT_MCPS \ |
charlesmn | 0:3ac96e360672 | 921 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 97)) |
charlesmn | 0:3ac96e360672 | 922 | #define VL53L1_TUNINGPARM_LITE_DSS_CONFIG_TARGET_TOTAL_RATE_MCPS \ |
charlesmn | 0:3ac96e360672 | 923 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 98)) |
charlesmn | 0:3ac96e360672 | 924 | #define VL53L1_TUNINGPARM_RANGING_DSS_CONFIG_TARGET_TOTAL_RATE_MCPS \ |
charlesmn | 0:3ac96e360672 | 925 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 99)) |
charlesmn | 0:3ac96e360672 | 926 | #define VL53L1_TUNINGPARM_MZ_DSS_CONFIG_TARGET_TOTAL_RATE_MCPS \ |
charlesmn | 0:3ac96e360672 | 927 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 100)) |
charlesmn | 0:3ac96e360672 | 928 | #define VL53L1_TUNINGPARM_TIMED_DSS_CONFIG_TARGET_TOTAL_RATE_MCPS \ |
charlesmn | 0:3ac96e360672 | 929 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 101)) |
charlesmn | 0:3ac96e360672 | 930 | #define VL53L1_TUNINGPARM_LITE_PHASECAL_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 931 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 102)) |
charlesmn | 0:3ac96e360672 | 932 | #define VL53L1_TUNINGPARM_RANGING_LONG_PHASECAL_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 933 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 103)) |
charlesmn | 0:3ac96e360672 | 934 | #define VL53L1_TUNINGPARM_RANGING_MED_PHASECAL_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 935 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 104)) |
charlesmn | 0:3ac96e360672 | 936 | #define VL53L1_TUNINGPARM_RANGING_SHORT_PHASECAL_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 937 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 105)) |
charlesmn | 0:3ac96e360672 | 938 | #define VL53L1_TUNINGPARM_MZ_LONG_PHASECAL_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 939 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 106)) |
charlesmn | 0:3ac96e360672 | 940 | #define VL53L1_TUNINGPARM_MZ_MED_PHASECAL_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 941 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 107)) |
charlesmn | 0:3ac96e360672 | 942 | #define VL53L1_TUNINGPARM_MZ_SHORT_PHASECAL_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 943 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 108)) |
charlesmn | 0:3ac96e360672 | 944 | #define VL53L1_TUNINGPARM_TIMED_PHASECAL_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 945 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 109)) |
charlesmn | 0:3ac96e360672 | 946 | #define VL53L1_TUNINGPARM_LITE_MM_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 947 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 110)) |
charlesmn | 0:3ac96e360672 | 948 | #define VL53L1_TUNINGPARM_RANGING_MM_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 949 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 111)) |
charlesmn | 0:3ac96e360672 | 950 | #define VL53L1_TUNINGPARM_MZ_MM_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 951 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 112)) |
charlesmn | 0:3ac96e360672 | 952 | #define VL53L1_TUNINGPARM_TIMED_MM_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 953 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 113)) |
charlesmn | 0:3ac96e360672 | 954 | #define VL53L1_TUNINGPARM_LITE_RANGE_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 955 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 114)) |
charlesmn | 0:3ac96e360672 | 956 | #define VL53L1_TUNINGPARM_RANGING_RANGE_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 957 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 115)) |
charlesmn | 0:3ac96e360672 | 958 | #define VL53L1_TUNINGPARM_MZ_RANGE_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 959 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 116)) |
charlesmn | 0:3ac96e360672 | 960 | #define VL53L1_TUNINGPARM_TIMED_RANGE_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 961 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 117)) |
charlesmn | 0:3ac96e360672 | 962 | #define VL53L1_TUNINGPARM_DYNXTALK_SMUDGE_MARGIN \ |
charlesmn | 0:3ac96e360672 | 963 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 118)) |
charlesmn | 0:3ac96e360672 | 964 | #define VL53L1_TUNINGPARM_DYNXTALK_NOISE_MARGIN \ |
charlesmn | 0:3ac96e360672 | 965 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 119)) |
charlesmn | 0:3ac96e360672 | 966 | #define VL53L1_TUNINGPARM_DYNXTALK_XTALK_OFFSET_LIMIT \ |
charlesmn | 0:3ac96e360672 | 967 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 120)) |
charlesmn | 0:3ac96e360672 | 968 | #define VL53L1_TUNINGPARM_DYNXTALK_XTALK_OFFSET_LIMIT_HI \ |
charlesmn | 0:3ac96e360672 | 969 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 121)) |
charlesmn | 0:3ac96e360672 | 970 | #define VL53L1_TUNINGPARM_DYNXTALK_SAMPLE_LIMIT \ |
charlesmn | 0:3ac96e360672 | 971 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 122)) |
charlesmn | 0:3ac96e360672 | 972 | #define VL53L1_TUNINGPARM_DYNXTALK_SINGLE_XTALK_DELTA \ |
charlesmn | 0:3ac96e360672 | 973 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 123)) |
charlesmn | 0:3ac96e360672 | 974 | #define VL53L1_TUNINGPARM_DYNXTALK_AVERAGED_XTALK_DELTA \ |
charlesmn | 0:3ac96e360672 | 975 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 124)) |
charlesmn | 0:3ac96e360672 | 976 | #define VL53L1_TUNINGPARM_DYNXTALK_CLIP_LIMIT \ |
charlesmn | 0:3ac96e360672 | 977 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 125)) |
charlesmn | 0:3ac96e360672 | 978 | #define VL53L1_TUNINGPARM_DYNXTALK_SCALER_CALC_METHOD \ |
charlesmn | 0:3ac96e360672 | 979 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 126)) |
charlesmn | 0:3ac96e360672 | 980 | #define VL53L1_TUNINGPARM_DYNXTALK_XGRADIENT_SCALER \ |
charlesmn | 0:3ac96e360672 | 981 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 127)) |
charlesmn | 0:3ac96e360672 | 982 | #define VL53L1_TUNINGPARM_DYNXTALK_YGRADIENT_SCALER \ |
charlesmn | 0:3ac96e360672 | 983 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 128)) |
charlesmn | 0:3ac96e360672 | 984 | #define VL53L1_TUNINGPARM_DYNXTALK_USER_SCALER_SET \ |
charlesmn | 0:3ac96e360672 | 985 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 129)) |
charlesmn | 0:3ac96e360672 | 986 | #define VL53L1_TUNINGPARM_DYNXTALK_SMUDGE_COR_SINGLE_APPLY \ |
charlesmn | 0:3ac96e360672 | 987 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 130)) |
charlesmn | 0:3ac96e360672 | 988 | #define VL53L1_TUNINGPARM_DYNXTALK_XTALK_AMB_THRESHOLD \ |
charlesmn | 0:3ac96e360672 | 989 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 131)) |
charlesmn | 0:3ac96e360672 | 990 | #define VL53L1_TUNINGPARM_DYNXTALK_NODETECT_AMB_THRESHOLD_KCPS \ |
charlesmn | 0:3ac96e360672 | 991 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 132)) |
charlesmn | 0:3ac96e360672 | 992 | #define VL53L1_TUNINGPARM_DYNXTALK_NODETECT_SAMPLE_LIMIT \ |
charlesmn | 0:3ac96e360672 | 993 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 133)) |
charlesmn | 0:3ac96e360672 | 994 | #define VL53L1_TUNINGPARM_DYNXTALK_NODETECT_XTALK_OFFSET_KCPS \ |
charlesmn | 0:3ac96e360672 | 995 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 134)) |
charlesmn | 0:3ac96e360672 | 996 | #define VL53L1_TUNINGPARM_DYNXTALK_NODETECT_MIN_RANGE_MM \ |
charlesmn | 0:3ac96e360672 | 997 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 135)) |
charlesmn | 0:3ac96e360672 | 998 | #define VL53L1_TUNINGPARM_LOWPOWERAUTO_VHV_LOOP_BOUND \ |
charlesmn | 0:3ac96e360672 | 999 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 136)) |
charlesmn | 0:3ac96e360672 | 1000 | #define VL53L1_TUNINGPARM_LOWPOWERAUTO_MM_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 1001 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 137)) |
charlesmn | 0:3ac96e360672 | 1002 | #define VL53L1_TUNINGPARM_LOWPOWERAUTO_RANGE_CONFIG_TIMEOUT_US \ |
charlesmn | 0:3ac96e360672 | 1003 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 138)) |
charlesmn | 0:3ac96e360672 | 1004 | #define VL53L1_TUNINGPARM_VERY_SHORT_DSS_RATE_MCPS \ |
charlesmn | 0:3ac96e360672 | 1005 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 139)) |
charlesmn | 0:3ac96e360672 | 1006 | #define VL53L1_TUNINGPARM_PHASECAL_PATCH_POWER \ |
charlesmn | 0:3ac96e360672 | 1007 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 140)) |
charlesmn | 0:3ac96e360672 | 1008 | #define VL53L1_TUNINGPARM_HIST_MERGE \ |
charlesmn | 0:3ac96e360672 | 1009 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 141)) |
charlesmn | 0:3ac96e360672 | 1010 | #define VL53L1_TUNINGPARM_RESET_MERGE_THRESHOLD \ |
charlesmn | 0:3ac96e360672 | 1011 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 142)) |
charlesmn | 0:3ac96e360672 | 1012 | #define VL53L1_TUNINGPARM_HIST_MERGE_MAX_SIZE \ |
charlesmn | 0:3ac96e360672 | 1013 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 143)) |
charlesmn | 0:3ac96e360672 | 1014 | #define VL53L1_TUNINGPARM_DYNXTALK_MAX_SMUDGE_FACTOR \ |
charlesmn | 0:3ac96e360672 | 1015 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 144)) |
charlesmn | 0:3ac96e360672 | 1016 | #define VL53L1_TUNINGPARM_UWR_ENABLE \ |
charlesmn | 0:3ac96e360672 | 1017 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 145)) |
charlesmn | 0:3ac96e360672 | 1018 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_1_MIN \ |
charlesmn | 0:3ac96e360672 | 1019 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 146)) |
charlesmn | 0:3ac96e360672 | 1020 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_1_MAX \ |
charlesmn | 0:3ac96e360672 | 1021 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 147)) |
charlesmn | 0:3ac96e360672 | 1022 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_2_MIN \ |
charlesmn | 0:3ac96e360672 | 1023 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 148)) |
charlesmn | 0:3ac96e360672 | 1024 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_2_MAX \ |
charlesmn | 0:3ac96e360672 | 1025 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 149)) |
charlesmn | 0:3ac96e360672 | 1026 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_3_MIN \ |
charlesmn | 0:3ac96e360672 | 1027 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 150)) |
charlesmn | 0:3ac96e360672 | 1028 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_3_MAX \ |
charlesmn | 0:3ac96e360672 | 1029 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 151)) |
charlesmn | 0:3ac96e360672 | 1030 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_4_MIN \ |
charlesmn | 0:3ac96e360672 | 1031 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 152)) |
charlesmn | 0:3ac96e360672 | 1032 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_4_MAX \ |
charlesmn | 0:3ac96e360672 | 1033 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 153)) |
charlesmn | 0:3ac96e360672 | 1034 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_5_MIN \ |
charlesmn | 0:3ac96e360672 | 1035 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 154)) |
charlesmn | 0:3ac96e360672 | 1036 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_5_MAX \ |
charlesmn | 0:3ac96e360672 | 1037 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 155)) |
charlesmn | 0:3ac96e360672 | 1038 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_6_MIN \ |
charlesmn | 0:3ac96e360672 | 1039 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 156)) |
charlesmn | 0:3ac96e360672 | 1040 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_ZONE_6_MAX \ |
charlesmn | 0:3ac96e360672 | 1041 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 157)) |
charlesmn | 0:3ac96e360672 | 1042 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_1_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1043 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 158)) |
charlesmn | 0:3ac96e360672 | 1044 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_1_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1045 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 159)) |
charlesmn | 0:3ac96e360672 | 1046 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_2_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1047 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 160)) |
charlesmn | 0:3ac96e360672 | 1048 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_2_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1049 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 161)) |
charlesmn | 0:3ac96e360672 | 1050 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_3_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1051 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 162)) |
charlesmn | 0:3ac96e360672 | 1052 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_3_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1053 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 163)) |
charlesmn | 0:3ac96e360672 | 1054 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_4_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1055 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 164)) |
charlesmn | 0:3ac96e360672 | 1056 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_4_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1057 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 165)) |
charlesmn | 0:3ac96e360672 | 1058 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_5_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1059 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 166)) |
charlesmn | 0:3ac96e360672 | 1060 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_5_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1061 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 167)) |
charlesmn | 0:3ac96e360672 | 1062 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_6_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1063 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 168)) |
charlesmn | 0:3ac96e360672 | 1064 | #define VL53L1_TUNINGPARM_UWR_MEDIUM_CORRECTION_ZONE_6_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1065 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 169)) |
charlesmn | 0:3ac96e360672 | 1066 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_1_MIN \ |
charlesmn | 0:3ac96e360672 | 1067 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 170)) |
charlesmn | 0:3ac96e360672 | 1068 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_1_MAX \ |
charlesmn | 0:3ac96e360672 | 1069 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 171)) |
charlesmn | 0:3ac96e360672 | 1070 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_2_MIN \ |
charlesmn | 0:3ac96e360672 | 1071 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 172)) |
charlesmn | 0:3ac96e360672 | 1072 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_2_MAX \ |
charlesmn | 0:3ac96e360672 | 1073 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 173)) |
charlesmn | 0:3ac96e360672 | 1074 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_3_MIN \ |
charlesmn | 0:3ac96e360672 | 1075 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 174)) |
charlesmn | 0:3ac96e360672 | 1076 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_3_MAX \ |
charlesmn | 0:3ac96e360672 | 1077 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 175)) |
charlesmn | 0:3ac96e360672 | 1078 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_4_MIN \ |
charlesmn | 0:3ac96e360672 | 1079 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 176)) |
charlesmn | 0:3ac96e360672 | 1080 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_4_MAX \ |
charlesmn | 0:3ac96e360672 | 1081 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 177)) |
charlesmn | 0:3ac96e360672 | 1082 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_5_MIN \ |
charlesmn | 0:3ac96e360672 | 1083 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 178)) |
charlesmn | 0:3ac96e360672 | 1084 | #define VL53L1_TUNINGPARM_UWR_LONG_ZONE_5_MAX \ |
charlesmn | 0:3ac96e360672 | 1085 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 179)) |
charlesmn | 0:3ac96e360672 | 1086 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_1_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1087 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 180)) |
charlesmn | 0:3ac96e360672 | 1088 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_1_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1089 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 181)) |
charlesmn | 0:3ac96e360672 | 1090 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_2_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1091 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 182)) |
charlesmn | 0:3ac96e360672 | 1092 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_2_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1093 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 183)) |
charlesmn | 0:3ac96e360672 | 1094 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_3_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1095 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 184)) |
charlesmn | 0:3ac96e360672 | 1096 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_3_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1097 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 185)) |
charlesmn | 0:3ac96e360672 | 1098 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_4_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1099 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 186)) |
charlesmn | 0:3ac96e360672 | 1100 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_4_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1101 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 187)) |
charlesmn | 0:3ac96e360672 | 1102 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_5_RANGEA \ |
charlesmn | 0:3ac96e360672 | 1103 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 188)) |
charlesmn | 0:3ac96e360672 | 1104 | #define VL53L1_TUNINGPARM_UWR_LONG_CORRECTION_ZONE_5_RANGEB \ |
charlesmn | 0:3ac96e360672 | 1105 | ((VL53L1_TuningParms) (VL53L1_TUNINGPARM_PUBLIC_PAGE_BASE_ADDRESS + 189)) |
charlesmn | 0:3ac96e360672 | 1106 | |
charlesmn | 0:3ac96e360672 | 1107 | |
charlesmn | 0:3ac96e360672 | 1108 | |
charlesmn | 0:3ac96e360672 | 1109 | |
charlesmn | 0:3ac96e360672 | 1110 | |
charlesmn | 0:3ac96e360672 | 1111 | #endif |
charlesmn | 0:3ac96e360672 | 1112 | |
charlesmn | 0:3ac96e360672 | 1113 | |
charlesmn | 0:3ac96e360672 | 1114 | |
charlesmn | 0:3ac96e360672 | 1115 | |
charlesmn | 0:3ac96e360672 | 1116 | |
charlesmn | 0:3ac96e360672 | 1117 |