From c3fd861ae1783d2a4be7f9d91ef2284259d8c973 Mon Sep 17 00:00:00 2001 From: Remi Bettan Date: Tue, 2 Apr 2024 15:45:42 +0300 Subject: [PATCH] hw monitor error codes for d500 added --- src/hw-monitor.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/src/hw-monitor.h b/src/hw-monitor.h index a83e74b700..dd1258ffd4 100644 --- a/src/hw-monitor.h +++ b/src/hw-monitor.h @@ -116,6 +116,27 @@ namespace librealsense hwm_IspFail = -63, hwm_Unknown = -64, hwm_LastError = hwm_Unknown - 1, + hwm_hkr_InvalidCommand = 1, + hwm_hkr_InvalidParam = 2, + hwm_hkr_HwNotReady = 3, + hwm_hkr_UnauthorizedUserAction = 4, + hwm_hkr_IntegrityError = 5, + hwm_hkr_CrcError = 6, + hwm_hkr_GpioInNumberInvalid = 7, + hwm_hkr_GpioInDirectionInvalid = 8, + hwm_hkr_IllegalAddress = 9, + hwm_hkr_IllegalSize = 10, + hwm_hkr_ParamsTableNotValid = 11, + hwm_hkr_ParamsTableIdNotValid = 12, + hwm_hkr_ParamsTableWrongExistingSize = 13, + hwm_hkr_SpiReadFailed = 14, + hwm_hkr_SpiWriteFailed = 15, + hwm_hkr_TableIsEmpty = 16, + hwm_hkr_ValueOutOfRange = 17, + hwm_hkr_OperationTimeout = 18, + hwm_hkr_CommandNotSupported = 19, + hwm_hkr_IncompleteData = 20, + hwm_hkr_SwNotReady = 21, }; // Elaborate HW Monitor response @@ -187,6 +208,27 @@ namespace librealsense { hwmon_response::hwm_IspFail, "Isp fail" }, { hwmon_response::hwm_Unknown, "Unresolved error" }, { hwmon_response::hwm_LastError, "Last error" }, + { hwmon_response::hwm_hkr_InvalidCommand, "Invalid Command" }, + { hwmon_response::hwm_hkr_InvalidParam, "Invalid Param" }, + { hwmon_response::hwm_hkr_HwNotReady, "HW Not Ready" }, + { hwmon_response::hwm_hkr_UnauthorizedUserAction, "Unauthorized User Action" }, + { hwmon_response::hwm_hkr_IntegrityError, "Integrity Error" }, + { hwmon_response::hwm_hkr_CrcError, "CRC error" }, + { hwmon_response::hwm_hkr_GpioInNumberInvalid, "GPIO In Number Invalid" }, + { hwmon_response::hwm_hkr_GpioInDirectionInvalid, "GPIO In Direction Invalid" }, + { hwmon_response::hwm_hkr_IllegalAddress, "Illegal Address" }, + { hwmon_response::hwm_hkr_IllegalSize, "Illegal Size" }, + { hwmon_response::hwm_hkr_ParamsTableNotValid, "Params Table Not Valid" }, + { hwmon_response::hwm_hkr_ParamsTableIdNotValid, "Params Table ID Not Valid" }, + { hwmon_response::hwm_hkr_ParamsTableWrongExistingSize, "Params Table Wrong Existing Size" }, + { hwmon_response::hwm_hkr_SpiReadFailed, "Spi Read Failed" }, + { hwmon_response::hwm_hkr_SpiWriteFailed, "Spi Write Failed" }, + { hwmon_response::hwm_hkr_TableIsEmpty, "Table is Empty" }, + { hwmon_response::hwm_hkr_ValueOutOfRange, "Value Out Of Range" }, + { hwmon_response::hwm_hkr_OperationTimeout, "Operation Timeout" }, + { hwmon_response::hwm_hkr_CommandNotSupported, "Command Not Supported" }, + { hwmon_response::hwm_hkr_IncompleteData, "Incomplete Data" }, + { hwmon_response::hwm_hkr_SwNotReady, "SW Not Ready" }, }; inline std::string hwmon_error2str(hwmon_response e) {