Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hw monitor error codes for d500 added #12818

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions src/hw-monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) {
Expand Down
Loading