|
|
@ -83,41 +83,6 @@ typedef enum { |
|
|
|
|
|
|
|
} ErrorCode_t; |
|
|
|
|
|
|
|
static inline const char *ErrorCodeToString(uint32_t code) { |
|
|
|
switch (code) { |
|
|
|
case kerr_noerror: |
|
|
|
return "noerror"; |
|
|
|
case kerr_overtime: |
|
|
|
return "overtime"; |
|
|
|
case kerr_invalid_param: |
|
|
|
return "invalid_param"; |
|
|
|
case kerr_invalid_param_num: |
|
|
|
return "invalid_param_num"; |
|
|
|
case kerr_subdevice_offline: |
|
|
|
return "subdevice_offline"; |
|
|
|
case kerr_function_not_support: |
|
|
|
return "function_not_support"; |
|
|
|
|
|
|
|
case kerr_motor_reset_error: |
|
|
|
return "motor_reset_error"; |
|
|
|
case kerr_motor_subdevice_offline: |
|
|
|
return "motor_subdevice_offline"; |
|
|
|
case kerr_motor_driver_error: |
|
|
|
return "motor_driver_error"; |
|
|
|
case kerr_motor_undervoltage_error: |
|
|
|
return "motor_undervoltage_error"; |
|
|
|
case kerr_AirBlowerError: |
|
|
|
return "AirBlowerError"; |
|
|
|
case kerr_HeaterError: |
|
|
|
return "HeaterError"; |
|
|
|
case kerr_BlowerError: |
|
|
|
return "BlowerError"; |
|
|
|
case kerr_ProportionalValveError: |
|
|
|
return "ProportionalValveError"; |
|
|
|
default: |
|
|
|
return "unkown"; |
|
|
|
} |
|
|
|
} |
|
|
|
typedef enum { |
|
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
|