|
|
@ -67,6 +67,7 @@ typedef enum { |
|
|
|
kxymotor_x_find_zero_edge_fail = ERROR_CODE(300, 6), // 离开零点失败
|
|
|
|
kxymotor_y_find_zero_edge_fail = ERROR_CODE(300, 7), // 离开零点失败
|
|
|
|
kmotor_run_overtime = ERROR_CODE(300, 8), // 运行超时
|
|
|
|
kmotor_not_enable = ERROR_CODE(300, 9), // 电机未使能
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief STMP2错误 |
|
|
@ -102,6 +103,17 @@ typedef enum { |
|
|
|
kmicro_uartRecvFail = ERROR_CODE(500, 2), //
|
|
|
|
kmicro_adcRecvFail = ERROR_CODE(500, 3), //
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief step motor error |
|
|
|
*/ |
|
|
|
kstep_motor_not_found_zero_point = ERROR_CODE(600, 0), // 未找到零点
|
|
|
|
kstep_motor_not_go_zero = ERROR_CODE(600, 1), // 设备未归零
|
|
|
|
kstep_motor_over_temperature = ERROR_CODE(600, 2), // 过温
|
|
|
|
kstep_motor_over_voltage = ERROR_CODE(600, 3), // 过压
|
|
|
|
kstep_motor_run_overtime = ERROR_CODE(600, 4), // 运行超时
|
|
|
|
kstep_motor_not_enable = ERROR_CODE(600, 5), // 电机未使能
|
|
|
|
kstep_motor_ioindex_out_of_range = ERROR_CODE(600, 6), // IO超出范围
|
|
|
|
|
|
|
|
} error_t; |
|
|
|
|
|
|
|
const char* error2str(int32_t code); |
|
|
|