hh
Dependents: VL53L0X-mbedOS-master VL53L0X-mbedOS-masterbb
vl53l0x_api_strings.h@2:a1dffa1ff38a, 2019-04-23 (annotated)
- Committer:
- mohamedachour
- Date:
- Tue Apr 23 14:27:07 2019 +0000
- Revision:
- 2:a1dffa1ff38a
- Parent:
- 0:e6fcdb78a136
xc
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mjarvisal | 0:e6fcdb78a136 | 1 | /******************************************************************************* |
mjarvisal | 0:e6fcdb78a136 | 2 | Copyright © 2016, STMicroelectronics International N.V. |
mjarvisal | 0:e6fcdb78a136 | 3 | All rights reserved. |
mjarvisal | 0:e6fcdb78a136 | 4 | |
mjarvisal | 0:e6fcdb78a136 | 5 | Redistribution and use in source and binary forms, with or without |
mjarvisal | 0:e6fcdb78a136 | 6 | modification, are permitted provided that the following conditions are met: |
mjarvisal | 0:e6fcdb78a136 | 7 | * Redistributions of source code must retain the above copyright |
mjarvisal | 0:e6fcdb78a136 | 8 | notice, this list of conditions and the following disclaimer. |
mjarvisal | 0:e6fcdb78a136 | 9 | * Redistributions in binary form must reproduce the above copyright |
mjarvisal | 0:e6fcdb78a136 | 10 | notice, this list of conditions and the following disclaimer in the |
mjarvisal | 0:e6fcdb78a136 | 11 | documentation and/or other materials provided with the distribution. |
mjarvisal | 0:e6fcdb78a136 | 12 | * Neither the name of STMicroelectronics nor the |
mjarvisal | 0:e6fcdb78a136 | 13 | names of its contributors may be used to endorse or promote products |
mjarvisal | 0:e6fcdb78a136 | 14 | derived from this software without specific prior written permission. |
mjarvisal | 0:e6fcdb78a136 | 15 | |
mjarvisal | 0:e6fcdb78a136 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND |
mjarvisal | 0:e6fcdb78a136 | 17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
mjarvisal | 0:e6fcdb78a136 | 18 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND |
mjarvisal | 0:e6fcdb78a136 | 19 | NON-INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED. |
mjarvisal | 0:e6fcdb78a136 | 20 | IN NO EVENT SHALL STMICROELECTRONICS INTERNATIONAL N.V. BE LIABLE FOR ANY |
mjarvisal | 0:e6fcdb78a136 | 21 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
mjarvisal | 0:e6fcdb78a136 | 22 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
mjarvisal | 0:e6fcdb78a136 | 23 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
mjarvisal | 0:e6fcdb78a136 | 24 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
mjarvisal | 0:e6fcdb78a136 | 25 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
mjarvisal | 0:e6fcdb78a136 | 26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
mjarvisal | 0:e6fcdb78a136 | 27 | *******************************************************************************/ |
mjarvisal | 0:e6fcdb78a136 | 28 | |
mjarvisal | 0:e6fcdb78a136 | 29 | #ifndef VL53L0X_API_STRINGS_H_ |
mjarvisal | 0:e6fcdb78a136 | 30 | #define VL53L0X_API_STRINGS_H_ |
mjarvisal | 0:e6fcdb78a136 | 31 | |
mjarvisal | 0:e6fcdb78a136 | 32 | #include "vl53l0x_def.h" |
mjarvisal | 0:e6fcdb78a136 | 33 | #include "vl53l0x_platform.h" |
mjarvisal | 0:e6fcdb78a136 | 34 | |
mjarvisal | 0:e6fcdb78a136 | 35 | #ifdef __cplusplus |
mjarvisal | 0:e6fcdb78a136 | 36 | extern "C" { |
mjarvisal | 0:e6fcdb78a136 | 37 | #endif |
mjarvisal | 0:e6fcdb78a136 | 38 | |
mjarvisal | 0:e6fcdb78a136 | 39 | |
mjarvisal | 0:e6fcdb78a136 | 40 | VL53L0X_Error VL53L0X_get_device_info(VL53L0X_DEV Dev, |
mjarvisal | 0:e6fcdb78a136 | 41 | VL53L0X_DeviceInfo_t *pVL53L0X_DeviceInfo); |
mjarvisal | 0:e6fcdb78a136 | 42 | |
mjarvisal | 0:e6fcdb78a136 | 43 | VL53L0X_Error VL53L0X_get_device_error_string(VL53L0X_DeviceError ErrorCode, |
mjarvisal | 0:e6fcdb78a136 | 44 | char *pDeviceErrorString); |
mjarvisal | 0:e6fcdb78a136 | 45 | |
mjarvisal | 0:e6fcdb78a136 | 46 | VL53L0X_Error VL53L0X_get_range_status_string(uint8_t RangeStatus, |
mjarvisal | 0:e6fcdb78a136 | 47 | char *pRangeStatusString); |
mjarvisal | 0:e6fcdb78a136 | 48 | |
mjarvisal | 0:e6fcdb78a136 | 49 | VL53L0X_Error VL53L0X_get_pal_error_string(VL53L0X_Error PalErrorCode, |
mjarvisal | 0:e6fcdb78a136 | 50 | char *pPalErrorString); |
mjarvisal | 0:e6fcdb78a136 | 51 | |
mjarvisal | 0:e6fcdb78a136 | 52 | VL53L0X_Error VL53L0X_get_pal_state_string(VL53L0X_State PalStateCode, |
mjarvisal | 0:e6fcdb78a136 | 53 | char *pPalStateString); |
mjarvisal | 0:e6fcdb78a136 | 54 | |
mjarvisal | 0:e6fcdb78a136 | 55 | VL53L0X_Error VL53L0X_get_sequence_steps_info( |
mjarvisal | 0:e6fcdb78a136 | 56 | VL53L0X_SequenceStepId SequenceStepId, |
mjarvisal | 0:e6fcdb78a136 | 57 | char *pSequenceStepsString); |
mjarvisal | 0:e6fcdb78a136 | 58 | |
mjarvisal | 0:e6fcdb78a136 | 59 | VL53L0X_Error VL53L0X_get_limit_check_info(VL53L0X_DEV Dev, uint16_t LimitCheckId, |
mjarvisal | 0:e6fcdb78a136 | 60 | char *pLimitCheckString); |
mjarvisal | 0:e6fcdb78a136 | 61 | |
mjarvisal | 0:e6fcdb78a136 | 62 | |
mjarvisal | 0:e6fcdb78a136 | 63 | #ifdef USE_EMPTY_STRING |
mjarvisal | 0:e6fcdb78a136 | 64 | #define VL53L0X_STRING_DEVICE_INFO_NAME "" |
mjarvisal | 0:e6fcdb78a136 | 65 | #define VL53L0X_STRING_DEVICE_INFO_NAME_TS0 "" |
mjarvisal | 0:e6fcdb78a136 | 66 | #define VL53L0X_STRING_DEVICE_INFO_NAME_TS1 "" |
mjarvisal | 0:e6fcdb78a136 | 67 | #define VL53L0X_STRING_DEVICE_INFO_NAME_TS2 "" |
mjarvisal | 0:e6fcdb78a136 | 68 | #define VL53L0X_STRING_DEVICE_INFO_NAME_ES1 "" |
mjarvisal | 0:e6fcdb78a136 | 69 | #define VL53L0X_STRING_DEVICE_INFO_TYPE "" |
mjarvisal | 0:e6fcdb78a136 | 70 | |
mjarvisal | 0:e6fcdb78a136 | 71 | /* PAL ERROR strings */ |
mjarvisal | 0:e6fcdb78a136 | 72 | #define VL53L0X_STRING_ERROR_NONE "" |
mjarvisal | 0:e6fcdb78a136 | 73 | #define VL53L0X_STRING_ERROR_CALIBRATION_WARNING "" |
mjarvisal | 0:e6fcdb78a136 | 74 | #define VL53L0X_STRING_ERROR_MIN_CLIPPED "" |
mjarvisal | 0:e6fcdb78a136 | 75 | #define VL53L0X_STRING_ERROR_UNDEFINED "" |
mjarvisal | 0:e6fcdb78a136 | 76 | #define VL53L0X_STRING_ERROR_INVALID_PARAMS "" |
mjarvisal | 0:e6fcdb78a136 | 77 | #define VL53L0X_STRING_ERROR_NOT_SUPPORTED "" |
mjarvisal | 0:e6fcdb78a136 | 78 | #define VL53L0X_STRING_ERROR_RANGE_ERROR "" |
mjarvisal | 0:e6fcdb78a136 | 79 | #define VL53L0X_STRING_ERROR_TIME_OUT "" |
mjarvisal | 0:e6fcdb78a136 | 80 | #define VL53L0X_STRING_ERROR_MODE_NOT_SUPPORTED "" |
mjarvisal | 0:e6fcdb78a136 | 81 | #define VL53L0X_STRING_ERROR_BUFFER_TOO_SMALL "" |
mjarvisal | 0:e6fcdb78a136 | 82 | #define VL53L0X_STRING_ERROR_GPIO_NOT_EXISTING "" |
mjarvisal | 0:e6fcdb78a136 | 83 | #define VL53L0X_STRING_ERROR_GPIO_FUNCTIONALITY_NOT_SUPPORTED "" |
mjarvisal | 0:e6fcdb78a136 | 84 | #define VL53L0X_STRING_ERROR_CONTROL_INTERFACE "" |
mjarvisal | 0:e6fcdb78a136 | 85 | #define VL53L0X_STRING_ERROR_INVALID_COMMAND "" |
mjarvisal | 0:e6fcdb78a136 | 86 | #define VL53L0X_STRING_ERROR_DIVISION_BY_ZERO "" |
mjarvisal | 0:e6fcdb78a136 | 87 | #define VL53L0X_STRING_ERROR_REF_SPAD_INIT "" |
mjarvisal | 0:e6fcdb78a136 | 88 | #define VL53L0X_STRING_ERROR_NOT_IMPLEMENTED "" |
mjarvisal | 0:e6fcdb78a136 | 89 | |
mjarvisal | 0:e6fcdb78a136 | 90 | #define VL53L0X_STRING_UNKNOW_ERROR_CODE "" |
mjarvisal | 0:e6fcdb78a136 | 91 | |
mjarvisal | 0:e6fcdb78a136 | 92 | |
mjarvisal | 0:e6fcdb78a136 | 93 | |
mjarvisal | 0:e6fcdb78a136 | 94 | /* Range Status */ |
mjarvisal | 0:e6fcdb78a136 | 95 | #define VL53L0X_STRING_RANGESTATUS_NONE "" |
mjarvisal | 0:e6fcdb78a136 | 96 | #define VL53L0X_STRING_RANGESTATUS_RANGEVALID "" |
mjarvisal | 0:e6fcdb78a136 | 97 | #define VL53L0X_STRING_RANGESTATUS_SIGMA "" |
mjarvisal | 0:e6fcdb78a136 | 98 | #define VL53L0X_STRING_RANGESTATUS_SIGNAL "" |
mjarvisal | 0:e6fcdb78a136 | 99 | #define VL53L0X_STRING_RANGESTATUS_MINRANGE "" |
mjarvisal | 0:e6fcdb78a136 | 100 | #define VL53L0X_STRING_RANGESTATUS_PHASE "" |
mjarvisal | 0:e6fcdb78a136 | 101 | #define VL53L0X_STRING_RANGESTATUS_HW "" |
mjarvisal | 0:e6fcdb78a136 | 102 | |
mjarvisal | 0:e6fcdb78a136 | 103 | |
mjarvisal | 0:e6fcdb78a136 | 104 | /* Range Status */ |
mjarvisal | 0:e6fcdb78a136 | 105 | #define VL53L0X_STRING_STATE_POWERDOWN "" |
mjarvisal | 0:e6fcdb78a136 | 106 | #define VL53L0X_STRING_STATE_WAIT_STATICINIT "" |
mjarvisal | 0:e6fcdb78a136 | 107 | #define VL53L0X_STRING_STATE_STANDBY "" |
mjarvisal | 0:e6fcdb78a136 | 108 | #define VL53L0X_STRING_STATE_IDLE "" |
mjarvisal | 0:e6fcdb78a136 | 109 | #define VL53L0X_STRING_STATE_RUNNING "" |
mjarvisal | 0:e6fcdb78a136 | 110 | #define VL53L0X_STRING_STATE_UNKNOWN "" |
mjarvisal | 0:e6fcdb78a136 | 111 | #define VL53L0X_STRING_STATE_ERROR "" |
mjarvisal | 0:e6fcdb78a136 | 112 | |
mjarvisal | 0:e6fcdb78a136 | 113 | |
mjarvisal | 0:e6fcdb78a136 | 114 | /* Device Specific */ |
mjarvisal | 0:e6fcdb78a136 | 115 | #define VL53L0X_STRING_DEVICEERROR_NONE "" |
mjarvisal | 0:e6fcdb78a136 | 116 | #define VL53L0X_STRING_DEVICEERROR_VCSELCONTINUITYTESTFAILURE "" |
mjarvisal | 0:e6fcdb78a136 | 117 | #define VL53L0X_STRING_DEVICEERROR_VCSELWATCHDOGTESTFAILURE "" |
mjarvisal | 0:e6fcdb78a136 | 118 | #define VL53L0X_STRING_DEVICEERROR_NOVHVVALUEFOUND "" |
mjarvisal | 0:e6fcdb78a136 | 119 | #define VL53L0X_STRING_DEVICEERROR_MSRCNOTARGET "" |
mjarvisal | 0:e6fcdb78a136 | 120 | #define VL53L0X_STRING_DEVICEERROR_SNRCHECK "" |
mjarvisal | 0:e6fcdb78a136 | 121 | #define VL53L0X_STRING_DEVICEERROR_RANGEPHASECHECK "" |
mjarvisal | 0:e6fcdb78a136 | 122 | #define VL53L0X_STRING_DEVICEERROR_SIGMATHRESHOLDCHECK "" |
mjarvisal | 0:e6fcdb78a136 | 123 | #define VL53L0X_STRING_DEVICEERROR_TCC "" |
mjarvisal | 0:e6fcdb78a136 | 124 | #define VL53L0X_STRING_DEVICEERROR_PHASECONSISTENCY "" |
mjarvisal | 0:e6fcdb78a136 | 125 | #define VL53L0X_STRING_DEVICEERROR_MINCLIP "" |
mjarvisal | 0:e6fcdb78a136 | 126 | #define VL53L0X_STRING_DEVICEERROR_RANGECOMPLETE "" |
mjarvisal | 0:e6fcdb78a136 | 127 | #define VL53L0X_STRING_DEVICEERROR_ALGOUNDERFLOW "" |
mjarvisal | 0:e6fcdb78a136 | 128 | #define VL53L0X_STRING_DEVICEERROR_ALGOOVERFLOW "" |
mjarvisal | 0:e6fcdb78a136 | 129 | #define VL53L0X_STRING_DEVICEERROR_RANGEIGNORETHRESHOLD "" |
mjarvisal | 0:e6fcdb78a136 | 130 | #define VL53L0X_STRING_DEVICEERROR_UNKNOWN "" |
mjarvisal | 0:e6fcdb78a136 | 131 | |
mjarvisal | 0:e6fcdb78a136 | 132 | /* Check Enable */ |
mjarvisal | 0:e6fcdb78a136 | 133 | #define VL53L0X_STRING_CHECKENABLE_SIGMA_FINAL_RANGE "" |
mjarvisal | 0:e6fcdb78a136 | 134 | #define VL53L0X_STRING_CHECKENABLE_SIGNAL_RATE_FINAL_RANGE "" |
mjarvisal | 0:e6fcdb78a136 | 135 | #define VL53L0X_STRING_CHECKENABLE_SIGNAL_REF_CLIP "" |
mjarvisal | 0:e6fcdb78a136 | 136 | #define VL53L0X_STRING_CHECKENABLE_RANGE_IGNORE_THRESHOLD "" |
mjarvisal | 0:e6fcdb78a136 | 137 | |
mjarvisal | 0:e6fcdb78a136 | 138 | /* Sequence Step */ |
mjarvisal | 0:e6fcdb78a136 | 139 | #define VL53L0X_STRING_SEQUENCESTEP_TCC "" |
mjarvisal | 0:e6fcdb78a136 | 140 | #define VL53L0X_STRING_SEQUENCESTEP_DSS "" |
mjarvisal | 0:e6fcdb78a136 | 141 | #define VL53L0X_STRING_SEQUENCESTEP_MSRC "" |
mjarvisal | 0:e6fcdb78a136 | 142 | #define VL53L0X_STRING_SEQUENCESTEP_PRE_RANGE "" |
mjarvisal | 0:e6fcdb78a136 | 143 | #define VL53L0X_STRING_SEQUENCESTEP_FINAL_RANGE "" |
mjarvisal | 0:e6fcdb78a136 | 144 | #else |
mjarvisal | 0:e6fcdb78a136 | 145 | #define VL53L0X_STRING_DEVICE_INFO_NAME "VL53L0X cut1.0" |
mjarvisal | 0:e6fcdb78a136 | 146 | #define VL53L0X_STRING_DEVICE_INFO_NAME_TS0 "VL53L0X TS0" |
mjarvisal | 0:e6fcdb78a136 | 147 | #define VL53L0X_STRING_DEVICE_INFO_NAME_TS1 "VL53L0X TS1" |
mjarvisal | 0:e6fcdb78a136 | 148 | #define VL53L0X_STRING_DEVICE_INFO_NAME_TS2 "VL53L0X TS2" |
mjarvisal | 0:e6fcdb78a136 | 149 | #define VL53L0X_STRING_DEVICE_INFO_NAME_ES1 "VL53L0X ES1 or later" |
mjarvisal | 0:e6fcdb78a136 | 150 | #define VL53L0X_STRING_DEVICE_INFO_TYPE "VL53L0X" |
mjarvisal | 0:e6fcdb78a136 | 151 | |
mjarvisal | 0:e6fcdb78a136 | 152 | /* PAL ERROR strings */ |
mjarvisal | 0:e6fcdb78a136 | 153 | #define VL53L0X_STRING_ERROR_NONE \ |
mjarvisal | 0:e6fcdb78a136 | 154 | "No Error" |
mjarvisal | 0:e6fcdb78a136 | 155 | #define VL53L0X_STRING_ERROR_CALIBRATION_WARNING \ |
mjarvisal | 0:e6fcdb78a136 | 156 | "Calibration Warning Error" |
mjarvisal | 0:e6fcdb78a136 | 157 | #define VL53L0X_STRING_ERROR_MIN_CLIPPED \ |
mjarvisal | 0:e6fcdb78a136 | 158 | "Min clipped error" |
mjarvisal | 0:e6fcdb78a136 | 159 | #define VL53L0X_STRING_ERROR_UNDEFINED \ |
mjarvisal | 0:e6fcdb78a136 | 160 | "Undefined error" |
mjarvisal | 0:e6fcdb78a136 | 161 | #define VL53L0X_STRING_ERROR_INVALID_PARAMS \ |
mjarvisal | 0:e6fcdb78a136 | 162 | "Invalid parameters error" |
mjarvisal | 0:e6fcdb78a136 | 163 | #define VL53L0X_STRING_ERROR_NOT_SUPPORTED \ |
mjarvisal | 0:e6fcdb78a136 | 164 | "Not supported error" |
mjarvisal | 0:e6fcdb78a136 | 165 | #define VL53L0X_STRING_ERROR_RANGE_ERROR \ |
mjarvisal | 0:e6fcdb78a136 | 166 | "Range error" |
mjarvisal | 0:e6fcdb78a136 | 167 | #define VL53L0X_STRING_ERROR_TIME_OUT \ |
mjarvisal | 0:e6fcdb78a136 | 168 | "Time out error" |
mjarvisal | 0:e6fcdb78a136 | 169 | #define VL53L0X_STRING_ERROR_MODE_NOT_SUPPORTED \ |
mjarvisal | 0:e6fcdb78a136 | 170 | "Mode not supported error" |
mjarvisal | 0:e6fcdb78a136 | 171 | #define VL53L0X_STRING_ERROR_BUFFER_TOO_SMALL \ |
mjarvisal | 0:e6fcdb78a136 | 172 | "Buffer too small" |
mjarvisal | 0:e6fcdb78a136 | 173 | #define VL53L0X_STRING_ERROR_GPIO_NOT_EXISTING \ |
mjarvisal | 0:e6fcdb78a136 | 174 | "GPIO not existing" |
mjarvisal | 0:e6fcdb78a136 | 175 | #define VL53L0X_STRING_ERROR_GPIO_FUNCTIONALITY_NOT_SUPPORTED \ |
mjarvisal | 0:e6fcdb78a136 | 176 | "GPIO funct not supported" |
mjarvisal | 0:e6fcdb78a136 | 177 | #define VL53L0X_STRING_ERROR_INTERRUPT_NOT_CLEARED \ |
mjarvisal | 0:e6fcdb78a136 | 178 | "Interrupt not Cleared" |
mjarvisal | 0:e6fcdb78a136 | 179 | #define VL53L0X_STRING_ERROR_CONTROL_INTERFACE \ |
mjarvisal | 0:e6fcdb78a136 | 180 | "Control Interface Error" |
mjarvisal | 0:e6fcdb78a136 | 181 | #define VL53L0X_STRING_ERROR_INVALID_COMMAND \ |
mjarvisal | 0:e6fcdb78a136 | 182 | "Invalid Command Error" |
mjarvisal | 0:e6fcdb78a136 | 183 | #define VL53L0X_STRING_ERROR_DIVISION_BY_ZERO \ |
mjarvisal | 0:e6fcdb78a136 | 184 | "Division by zero Error" |
mjarvisal | 0:e6fcdb78a136 | 185 | #define VL53L0X_STRING_ERROR_REF_SPAD_INIT \ |
mjarvisal | 0:e6fcdb78a136 | 186 | "Reference Spad Init Error" |
mjarvisal | 0:e6fcdb78a136 | 187 | #define VL53L0X_STRING_ERROR_NOT_IMPLEMENTED \ |
mjarvisal | 0:e6fcdb78a136 | 188 | "Not implemented error" |
mjarvisal | 0:e6fcdb78a136 | 189 | |
mjarvisal | 0:e6fcdb78a136 | 190 | #define VL53L0X_STRING_UNKNOW_ERROR_CODE \ |
mjarvisal | 0:e6fcdb78a136 | 191 | "Unknown Error Code" |
mjarvisal | 0:e6fcdb78a136 | 192 | |
mjarvisal | 0:e6fcdb78a136 | 193 | |
mjarvisal | 0:e6fcdb78a136 | 194 | |
mjarvisal | 0:e6fcdb78a136 | 195 | /* Range Status */ |
mjarvisal | 0:e6fcdb78a136 | 196 | #define VL53L0X_STRING_RANGESTATUS_NONE "No Update" |
mjarvisal | 0:e6fcdb78a136 | 197 | #define VL53L0X_STRING_RANGESTATUS_RANGEVALID "Range Valid" |
mjarvisal | 0:e6fcdb78a136 | 198 | #define VL53L0X_STRING_RANGESTATUS_SIGMA "Sigma Fail" |
mjarvisal | 0:e6fcdb78a136 | 199 | #define VL53L0X_STRING_RANGESTATUS_SIGNAL "Signal Fail" |
mjarvisal | 0:e6fcdb78a136 | 200 | #define VL53L0X_STRING_RANGESTATUS_MINRANGE "Min Range Fail" |
mjarvisal | 0:e6fcdb78a136 | 201 | #define VL53L0X_STRING_RANGESTATUS_PHASE "Phase Fail" |
mjarvisal | 0:e6fcdb78a136 | 202 | #define VL53L0X_STRING_RANGESTATUS_HW "Hardware Fail" |
mjarvisal | 0:e6fcdb78a136 | 203 | |
mjarvisal | 0:e6fcdb78a136 | 204 | |
mjarvisal | 0:e6fcdb78a136 | 205 | /* Range Status */ |
mjarvisal | 0:e6fcdb78a136 | 206 | #define VL53L0X_STRING_STATE_POWERDOWN "POWERDOWN State" |
mjarvisal | 0:e6fcdb78a136 | 207 | #define VL53L0X_STRING_STATE_WAIT_STATICINIT \ |
mjarvisal | 0:e6fcdb78a136 | 208 | "Wait for staticinit State" |
mjarvisal | 0:e6fcdb78a136 | 209 | #define VL53L0X_STRING_STATE_STANDBY "STANDBY State" |
mjarvisal | 0:e6fcdb78a136 | 210 | #define VL53L0X_STRING_STATE_IDLE "IDLE State" |
mjarvisal | 0:e6fcdb78a136 | 211 | #define VL53L0X_STRING_STATE_RUNNING "RUNNING State" |
mjarvisal | 0:e6fcdb78a136 | 212 | #define VL53L0X_STRING_STATE_UNKNOWN "UNKNOWN State" |
mjarvisal | 0:e6fcdb78a136 | 213 | #define VL53L0X_STRING_STATE_ERROR "ERROR State" |
mjarvisal | 0:e6fcdb78a136 | 214 | |
mjarvisal | 0:e6fcdb78a136 | 215 | |
mjarvisal | 0:e6fcdb78a136 | 216 | /* Device Specific */ |
mjarvisal | 0:e6fcdb78a136 | 217 | #define VL53L0X_STRING_DEVICEERROR_NONE "No Update" |
mjarvisal | 0:e6fcdb78a136 | 218 | #define VL53L0X_STRING_DEVICEERROR_VCSELCONTINUITYTESTFAILURE \ |
mjarvisal | 0:e6fcdb78a136 | 219 | "VCSEL Continuity Test Failure" |
mjarvisal | 0:e6fcdb78a136 | 220 | #define VL53L0X_STRING_DEVICEERROR_VCSELWATCHDOGTESTFAILURE \ |
mjarvisal | 0:e6fcdb78a136 | 221 | "VCSEL Watchdog Test Failure" |
mjarvisal | 0:e6fcdb78a136 | 222 | #define VL53L0X_STRING_DEVICEERROR_NOVHVVALUEFOUND \ |
mjarvisal | 0:e6fcdb78a136 | 223 | "No VHV Value found" |
mjarvisal | 0:e6fcdb78a136 | 224 | #define VL53L0X_STRING_DEVICEERROR_MSRCNOTARGET \ |
mjarvisal | 0:e6fcdb78a136 | 225 | "MSRC No Target Error" |
mjarvisal | 0:e6fcdb78a136 | 226 | #define VL53L0X_STRING_DEVICEERROR_SNRCHECK \ |
mjarvisal | 0:e6fcdb78a136 | 227 | "SNR Check Exit" |
mjarvisal | 0:e6fcdb78a136 | 228 | #define VL53L0X_STRING_DEVICEERROR_RANGEPHASECHECK \ |
mjarvisal | 0:e6fcdb78a136 | 229 | "Range Phase Check Error" |
mjarvisal | 0:e6fcdb78a136 | 230 | #define VL53L0X_STRING_DEVICEERROR_SIGMATHRESHOLDCHECK \ |
mjarvisal | 0:e6fcdb78a136 | 231 | "Sigma Threshold Check Error" |
mjarvisal | 0:e6fcdb78a136 | 232 | #define VL53L0X_STRING_DEVICEERROR_TCC \ |
mjarvisal | 0:e6fcdb78a136 | 233 | "TCC Error" |
mjarvisal | 0:e6fcdb78a136 | 234 | #define VL53L0X_STRING_DEVICEERROR_PHASECONSISTENCY \ |
mjarvisal | 0:e6fcdb78a136 | 235 | "Phase Consistency Error" |
mjarvisal | 0:e6fcdb78a136 | 236 | #define VL53L0X_STRING_DEVICEERROR_MINCLIP \ |
mjarvisal | 0:e6fcdb78a136 | 237 | "Min Clip Error" |
mjarvisal | 0:e6fcdb78a136 | 238 | #define VL53L0X_STRING_DEVICEERROR_RANGECOMPLETE \ |
mjarvisal | 0:e6fcdb78a136 | 239 | "Range Complete" |
mjarvisal | 0:e6fcdb78a136 | 240 | #define VL53L0X_STRING_DEVICEERROR_ALGOUNDERFLOW \ |
mjarvisal | 0:e6fcdb78a136 | 241 | "Range Algo Underflow Error" |
mjarvisal | 0:e6fcdb78a136 | 242 | #define VL53L0X_STRING_DEVICEERROR_ALGOOVERFLOW \ |
mjarvisal | 0:e6fcdb78a136 | 243 | "Range Algo Overlow Error" |
mjarvisal | 0:e6fcdb78a136 | 244 | #define VL53L0X_STRING_DEVICEERROR_RANGEIGNORETHRESHOLD \ |
mjarvisal | 0:e6fcdb78a136 | 245 | "Range Ignore Threshold Error" |
mjarvisal | 0:e6fcdb78a136 | 246 | #define VL53L0X_STRING_DEVICEERROR_UNKNOWN \ |
mjarvisal | 0:e6fcdb78a136 | 247 | "Unknown error code" |
mjarvisal | 0:e6fcdb78a136 | 248 | |
mjarvisal | 0:e6fcdb78a136 | 249 | /* Check Enable */ |
mjarvisal | 0:e6fcdb78a136 | 250 | #define VL53L0X_STRING_CHECKENABLE_SIGMA_FINAL_RANGE \ |
mjarvisal | 0:e6fcdb78a136 | 251 | "SIGMA FINAL RANGE" |
mjarvisal | 0:e6fcdb78a136 | 252 | #define VL53L0X_STRING_CHECKENABLE_SIGNAL_RATE_FINAL_RANGE \ |
mjarvisal | 0:e6fcdb78a136 | 253 | "SIGNAL RATE FINAL RANGE" |
mjarvisal | 0:e6fcdb78a136 | 254 | #define VL53L0X_STRING_CHECKENABLE_SIGNAL_REF_CLIP \ |
mjarvisal | 0:e6fcdb78a136 | 255 | "SIGNAL REF CLIP" |
mjarvisal | 0:e6fcdb78a136 | 256 | #define VL53L0X_STRING_CHECKENABLE_RANGE_IGNORE_THRESHOLD \ |
mjarvisal | 0:e6fcdb78a136 | 257 | "RANGE IGNORE THRESHOLD" |
mjarvisal | 0:e6fcdb78a136 | 258 | #define VL53L0X_STRING_CHECKENABLE_SIGNAL_RATE_MSRC \ |
mjarvisal | 0:e6fcdb78a136 | 259 | "SIGNAL RATE MSRC" |
mjarvisal | 0:e6fcdb78a136 | 260 | #define VL53L0X_STRING_CHECKENABLE_SIGNAL_RATE_PRE_RANGE \ |
mjarvisal | 0:e6fcdb78a136 | 261 | "SIGNAL RATE PRE RANGE" |
mjarvisal | 0:e6fcdb78a136 | 262 | |
mjarvisal | 0:e6fcdb78a136 | 263 | /* Sequence Step */ |
mjarvisal | 0:e6fcdb78a136 | 264 | #define VL53L0X_STRING_SEQUENCESTEP_TCC "TCC" |
mjarvisal | 0:e6fcdb78a136 | 265 | #define VL53L0X_STRING_SEQUENCESTEP_DSS "DSS" |
mjarvisal | 0:e6fcdb78a136 | 266 | #define VL53L0X_STRING_SEQUENCESTEP_MSRC "MSRC" |
mjarvisal | 0:e6fcdb78a136 | 267 | #define VL53L0X_STRING_SEQUENCESTEP_PRE_RANGE "PRE RANGE" |
mjarvisal | 0:e6fcdb78a136 | 268 | #define VL53L0X_STRING_SEQUENCESTEP_FINAL_RANGE "FINAL RANGE" |
mjarvisal | 0:e6fcdb78a136 | 269 | #endif /* USE_EMPTY_STRING */ |
mjarvisal | 0:e6fcdb78a136 | 270 | |
mjarvisal | 0:e6fcdb78a136 | 271 | |
mjarvisal | 0:e6fcdb78a136 | 272 | #ifdef __cplusplus |
mjarvisal | 0:e6fcdb78a136 | 273 | } |
mjarvisal | 0:e6fcdb78a136 | 274 | #endif |
mjarvisal | 0:e6fcdb78a136 | 275 | |
mjarvisal | 0:e6fcdb78a136 | 276 | #endif |
mjarvisal | 0:e6fcdb78a136 | 277 |