70 #ifndef VL53L1_ERROR_STRINGS_H_ 71 #define VL53L1_ERROR_STRINGS_H_ 92 char *pPalErrorString);
95 #ifndef VL53L1_USE_EMPTY_STRING 98 #define VL53L1_STRING_ERROR_NONE \ 100 #define VL53L1_STRING_ERROR_CALIBRATION_WARNING \ 101 "Calibration Warning Error" 102 #define VL53L1_STRING_ERROR_MIN_CLIPPED \ 104 #define VL53L1_STRING_ERROR_UNDEFINED \ 106 #define VL53L1_STRING_ERROR_INVALID_PARAMS \ 107 "Invalid parameters error" 108 #define VL53L1_STRING_ERROR_NOT_SUPPORTED \ 109 "Not supported error" 110 #define VL53L1_STRING_ERROR_RANGE_ERROR \ 112 #define VL53L1_STRING_ERROR_TIME_OUT \ 114 #define VL53L1_STRING_ERROR_MODE_NOT_SUPPORTED \ 115 "Mode not supported error" 116 #define VL53L1_STRING_ERROR_BUFFER_TOO_SMALL \ 118 #define VL53L1_STRING_ERROR_COMMS_BUFFER_TOO_SMALL \ 119 "Comms Buffer too small" 120 #define VL53L1_STRING_ERROR_GPIO_NOT_EXISTING \ 122 #define VL53L1_STRING_ERROR_GPIO_FUNCTIONALITY_NOT_SUPPORTED \ 123 "GPIO funct not supported" 124 #define VL53L1_STRING_ERROR_CONTROL_INTERFACE \ 125 "Control Interface Error" 126 #define VL53L1_STRING_ERROR_INVALID_COMMAND \ 127 "Invalid Command Error" 128 #define VL53L1_STRING_ERROR_DIVISION_BY_ZERO \ 129 "Division by zero Error" 130 #define VL53L1_STRING_ERROR_REF_SPAD_INIT \ 131 "Reference Spad Init Error" 132 #define VL53L1_STRING_ERROR_GPH_SYNC_CHECK_FAIL \ 133 "GPH Sync Check Fail - API out of sync" 134 #define VL53L1_STRING_ERROR_STREAM_COUNT_CHECK_FAIL \ 135 "Stream Count Check Fail - API out of sync" 136 #define VL53L1_STRING_ERROR_GPH_ID_CHECK_FAIL \ 137 "GPH ID Check Fail - API out of sync" 138 #define VL53L1_STRING_ERROR_ZONE_STREAM_COUNT_CHECK_FAIL \ 139 "Zone Stream Count Check Fail - API out of sync" 140 #define VL53L1_STRING_ERROR_ZONE_GPH_ID_CHECK_FAIL \ 141 "Zone GPH ID Check Fail - API out of sync" 143 #define VL53L1_STRING_ERROR_XTALK_EXTRACTION_NO_SAMPLES_FAIL \ 144 "No Xtalk using full array - Xtalk Extract Fail" 145 #define VL53L1_STRING_ERROR_XTALK_EXTRACTION_SIGMA_LIMIT_FAIL \ 146 "Xtalk does not meet required sigma limit - Xtalk Extract Fail" 148 #define VL53L1_STRING_ERROR_OFFSET_CAL_NO_SAMPLE_FAIL \ 149 "Offset Cal - one of more stages with no valid samples - fatal" 150 #define VL53L1_STRING_ERROR_OFFSET_CAL_NO_SPADS_ENABLED_FAIL \ 151 "Offset Cal - one of more stages with no SPADS enables - fatal" 152 #define VL53L1_STRING_ERROR_ZONE_CAL_NO_SAMPLE_FAIL \ 153 "Zone Cal - one of more zones with no valid samples - fatal" 155 #define VL53L1_STRING_WARNING_REF_SPAD_CHAR_NOT_ENOUGH_SPADS \ 156 "Ref SPAD Char - Not Enough Good SPADs" 157 #define VL53L1_STRING_WARNING_REF_SPAD_CHAR_RATE_TOO_HIGH \ 158 "Ref SPAD Char - Final Ref Rate too high" 159 #define VL53L1_STRING_WARNING_REF_SPAD_CHAR_RATE_TOO_LOW \ 160 "Ref SPAD Char - Final Ref Rate too low" 162 #define VL53L1_STRING_WARNING_OFFSET_CAL_MISSING_SAMPLES \ 163 "Offset Cal - Less than the requested number of valid samples" 164 #define VL53L1_STRING_WARNING_OFFSET_CAL_SIGMA_TOO_HIGH \ 165 "Offset Cal - Sigma estimate value too high - offset not stable" 166 #define VL53L1_STRING_WARNING_OFFSET_CAL_RATE_TOO_HIGH \ 167 "Offset Cal - Rate too high - in pile up" 168 #define VL53L1_STRING_WARNING_OFFSET_CAL_SPAD_COUNT_TOO_LOW \ 169 "Offset Cal - Insufficient SPADs - offset may not be stable" 171 #define VL53L1_STRING_WARNING_ZONE_CAL_MISSING_SAMPLES \ 172 "Zone Cal - One or more zone with less than requested valid samples" 173 #define VL53L1_STRING_WARNING_ZONE_CAL_SIGMA_TOO_HIGH \ 174 "Zone Cal - One of more zones the sigma estimate too high" 175 #define VL53L1_STRING_WARNING_ZONE_CAL_RATE_TOO_HIGH \ 176 "Zone Cal - One of more zones with rate too high - in pile up" 178 #define VL53L1_STRING_WARNING_XTALK_NO_SAMPLES_FOR_GRADIENT \ 179 "Xtalk - Gradient sample num = 0" 180 #define VL53L1_STRING_WARNING_XTALK_SIGMA_LIMIT_FOR_GRADIENT \ 181 "Xtalk - Gradient Sigma > Limit" 182 #define VL53L1_STRING_WARNING_XTALK_MISSING_SAMPLES \ 183 "Xtalk - Some missing and invalid samples" 185 #define VL53L1_STRING_ERROR_DEVICE_FIRMWARE_TOO_OLD \ 186 "Device Firmware too old" 187 #define VL53L1_STRING_ERROR_DEVICE_FIRMWARE_TOO_NEW \ 188 "Device Firmware too new" 189 #define VL53L1_STRING_ERROR_UNIT_TEST_FAIL \ 191 #define VL53L1_STRING_ERROR_FILE_READ_FAIL \ 193 #define VL53L1_STRING_ERROR_FILE_WRITE_FAIL \ 196 #define VL53L1_STRING_ERROR_NOT_IMPLEMENTED \ 197 "Not implemented error" 198 #define VL53L1_STRING_UNKNOW_ERROR_CODE \ Error Code definitions for VL53L1 API.
VL53L1_Error VL53L1_get_pal_error_string(VL53L1_Error PalErrorCode, char *pPalErrorString)
Generates an error string for the input PAL error code.