38 #include <unordered_map> 54 m_ADSD3100ErrLookup = {
68 "Laser driver active time too long."},
70 "Laser driver input open or short detected."},
72 "Laser driver enabled for too long of time."},
74 "Laser driver disabled for too short of time."},
79 m_ADSD3500StatusLookup = {
82 "The JBLF filter size speficied is incorrect."},
84 "An unsupported command was sent to the ASDD3500."},
86 "A register write or read operation does not match any valid " 89 "The ADSD3500 firmware CRC check failed."},
91 "The imager firmware is not valid."},
96 "SPI Master error occured, which this impacts the ADSD3500 - " 97 "image communication."},
100 "SPI Master error occured during communication between the " 101 "ASDSD3500 and the imager."},
105 "This is when timer is expired but ADSD3500 is not able to send " 106 "out frame due to some error."},
108 "Dynamic mode switching is being set, but it is not enabled."},
110 "The selected dyanamic mode configuration is not valid."},
112 "An incorrect phase invalid value specified."},
114 "Firmware update is complete."},
125 std::string ret =
"";
127 auto it = m_ADSD3500StatusLookup.find(value);
129 if (it != m_ADSD3500StatusLookup.end()) {
130 ret = m_ADSD3500StatusLookup[value];
143 std::string ret =
"";
145 auto it = m_ADSD3100ErrLookup.find(value);
147 if (it != m_ADSD3100ErrLookup.end()) {
148 ret = m_ADSD3100ErrLookup[value];
161 std::string ret =
"";
369 std::unordered_map<uint16_t, std::string> m_ADSD3500StatusLookup;
370 std::unordered_map<uint16_t, std::string> m_ADSD3100ErrLookup;
374 #endif //ADSD3500_DEFS const uint16_t ADSD3500_STATUS_SPIM_ERROR
SPI Master error occured, which this impacts the ADSD3500 - image communication.
const uint16_t ADSD3100_ERR_LASER_VLD_LOW
Laser driver supply too low. Imager error codes read via "Get Imager Error Code" (0x0038) command Not...
const uint16_t ADSD3500_STATUS_INVALID_CCB
The imager CCB file is not valid.
const uint16_t ADSD3500_STATUS_UNSUPPORTED_CMD
An unsupported command was sent to the ASDD3500.
const uint16_t ADSD3100_ERR_LVDS_PULSE_LONG
Laser driver active time too long. Imager error codes read via "Get Imager Error Code" (0x0038) comma...
const uint16_t ADSD3500_STATUS_INVALID_DYNAMIC_MODE_COMPOSITIONS
The selected dyanamic mode configuration is not valid.
const uint16_t ADSD3100_ERR_LASER_CHIPID
Laser driver invalid chip ID. Imager error codes read via "Get Imager Error Code" (0x0038) command No...
const uint16_t ADSD3500_STATUS_FIRMWARE_UPDATE_COMPLETE
Firmware update is complete.
const uint16_t ADSD3500_STATUS_TIMEOUT_ERROR
This is when timer is expired but ADSD3500 is not able to send out frame due to some error.
std::string GetStringADSD3030(uint16_t value)
Returns a string for a given target (adsdType) and error code for the ADSD3030.
const uint16_t ADSD3500_STATUS_INVALID_FIRMWARE_CRC
The ADSD3500 firmware CRC check failed.
std::string GetStringADSD3500(uint16_t value)
Returns a string for a given target (adsdType) and error code for the ADSD3500.
const uint16_t ADSD3500_STATUS_INVALID_MEMORY_REGION
TODO.
const uint16_t ADSD3500_STATUS_IMAGER_ERROR
The imager reported an error.
const uint16_t ADSD3100_ERR_OVERHEAT_IMAGER
Imager sensor overheat. Imager error codes read via "Get Imager Error Code" (0x0038) command Note,...
const uint16_t ADSD3500_STATUS_INVALID_PHASE_INVALID_VALUE
An incorrect phase invalid value specified.
const uint16_t ADSD3500_STATUS_NVM_WRITE_COMPLETE
NVM update is complete.
const uint16_t ADSD3100_ERR_LASER_SHORT_LEN_OFF
Laser driver disabled for too short of time. Imager error codes read via "Get Imager Error Code" (0x0...
const uint16_t ADSD3100_ERR_LASER_NO_DIFFUSER
Laser diffuser problem. Imager error codes read via "Get Imager Error Code" (0x0038) command Note,...
const uint16_t ADSD3100_ERR_OVERHEAT_LD
Laser driver overheat. Imager error codes read via "Get Imager Error Code" (0x0038) command Note,...
const uint16_t ADSD3100_ERR_LVDS_HIGH_DC
Laser driver duty cycle too large. Imager error codes read via "Get Imager Error Code" (0x0038) comma...
const uint16_t ADSD3500_STATUS_FLASH_FILE_PARSE_ERROR
Flash update error.
const uint16_t ADSD3500_STATUS_INVALID_JBLF_FILTER_SIZE
The JBLF filter size speficied is incorrect.
const uint16_t ADSD3100_ERR_LASER_LPS_READ
Laser driver corrupted data. Imager error codes read via "Get Imager Error Code" (0x0038) command Not...
const uint16_t ADSD3100_ERR_LASER_LPS
Corrupted laser driver data. Imager error codes read via "Get Imager Error Code" (0x0038) command Not...
const uint16_t ADSD3100_ERR_MODE_MODE_DRIVER
Invalid LD mode selection. Imager error codes read via "Get Imager Error Code" (0x0038) command Note,...
const uint16_t ADSD3100_ERR_LVDS_OPEN_SHORT
Laser driver input open or short detected. Imager error codes read via "Get Imager Error Code" (0x003...
const uint16_t ADSD3500_STATUS_INVALID_IMAGER
The imager firmware is not valid.
const uint16_t ADSD3500_STATUS_IMAGER_BOOT_FAILURE
Unable to boot the imager.
const uint16_t ADSD3100_ERR_LASER_VLD_HIGH
Laser driver supply too high. Imager error codes read via "Get Imager Error Code" (0x0038) command No...
const uint16_t ADSD3500_STATUS_DYNAMIC_MODE_SWITCHING_NOT_ENABLED
Dynamic mode switching is being set, but it is not enabled.
const uint16_t ADSD3100_ERR_LASER_SHORT
Laser driver shorted to GND. Imager error codes read via "Get Imager Error Code" (0x0038) command Not...
const uint16_t ADSD3100_ERR_LASER_LONG_LEN_ON
Laser driver enabled for too long of time. Imager error codes read via "Get Imager Error Code" (0x003...
const uint16_t ADSD3100_ERR_PLLLOCK_LOCK2
PLLLOCK error location 2. Imager error codes read via "Get Imager Error Code" (0x0038) command Note,...
const uint16_t ADSD3500_STATUS_IMAGER_COMMUNICATION_ERROR
SPI Master error occured during communication between the ASDSD3500 and the imager.
const uint16_t ADSD3100_ERR_MODE_USECASE
Invalid mode selection. Imager error codes read via "Get Imager Error Code" (0x0038) command Note,...
const uint16_t ADSD3100_ERR_PLLLOCK_LOCK3
PLLLOCK error location 3. Imager error codes read via "Get Imager Error Code" (0x0038) command Note,...
const uint16_t ADSD3500_STATUS_INVALID_MODE
Mode selected is invalid.
Error codes from the ADSD3500, ADSD3100, ADSD3030 Usage: Included with aditof/camera....
std::string GetStringADSD3100(uint16_t value)
Returns a string for a given target (adsdType) and error code for the ADSD3100.
const uint16_t ADSD3500_STATUS_INVALID_CHIPID
The imager chip ID is invalid.
const uint16_t ADSD3500_STATUS_FLASH_HEADER_PARSE_ERROR
Flash update error.
const uint16_t ADSD3100_ERR_PLLLOCK_LOCK1
PLLLOCK error location 1. Imager error codes read via "Get Imager Error Code" (0x0038) command Note,...