|
|
@ -42,6 +42,7 @@ void ZCanProtocolParser::initialize(IZCanReceiver* cancmder) { |
|
|
|
REGFN(step_motor_read_tmc4361a_state); |
|
|
|
REGFN(step_motor_read_tmc2160_status); |
|
|
|
REGFN(step_motor_read_tmc2160_state); |
|
|
|
REGFN(step_motor_read_io_index_in_stm32); |
|
|
|
|
|
|
|
REGFN(mini_servo_enable); |
|
|
|
REGFN(mini_servo_read_pos); |
|
|
@ -57,6 +58,8 @@ void ZCanProtocolParser::initialize(IZCanReceiver* cancmder) { |
|
|
|
REGFN(board_read_ext_io); |
|
|
|
REGFN(board_write_ext_io); |
|
|
|
REGFN(board_read_muti_io); |
|
|
|
REGFN(board_read_inio_index_in_stm32); |
|
|
|
REGFN(board_read_outio_index_in_stm32); |
|
|
|
|
|
|
|
REGFN(code_scaner_start_scan); |
|
|
|
REGFN(code_scaner_stop_scan); |
|
|
@ -311,6 +314,12 @@ int32_t ZCanProtocolParser::step_motor_read_tmc2160_state(cmdcontxt_t* cxt) { |
|
|
|
cxt->acklen = 4; |
|
|
|
return module->step_motor_read_tmc2160_state(&ack[0]); |
|
|
|
} |
|
|
|
int32_t ZCanProtocolParser::step_motor_read_io_index_in_stm32(cmdcontxt_t* cxt) { |
|
|
|
CHECK_AND_GET_MODULE(1); |
|
|
|
int32_t* ack = (int32_t*)cxt->ackbuf; |
|
|
|
cxt->acklen = 4; |
|
|
|
return module->step_motor_read_io_index_in_stm32(cxt->params[0], ack); |
|
|
|
} |
|
|
|
|
|
|
|
#undef MODULE_CLASS
|
|
|
|
#define MODULE_CLASS ZIMiniServo
|
|
|
@ -390,6 +399,19 @@ int32_t ZCanProtocolParser::board_read_muti_io(cmdcontxt_t* cxt) { |
|
|
|
return module->board_read_muti_io(ack); |
|
|
|
} |
|
|
|
|
|
|
|
int32_t ZCanProtocolParser::board_read_inio_index_in_stm32(cmdcontxt_t* cxt) { |
|
|
|
CHECK_AND_GET_MODULE(1); |
|
|
|
int32_t* ack = (int32_t*)cxt->ackbuf; |
|
|
|
cxt->acklen = 4; |
|
|
|
return module->board_read_inio_index_in_stm32(cxt->params[0], ack); |
|
|
|
} |
|
|
|
int32_t ZCanProtocolParser::board_read_outio_index_in_stm32(cmdcontxt_t* cxt) { |
|
|
|
CHECK_AND_GET_MODULE(1); |
|
|
|
int32_t* ack = (int32_t*)cxt->ackbuf; |
|
|
|
cxt->acklen = 4; |
|
|
|
return module->board_read_outio_index_in_stm32(cxt->params[0], ack); |
|
|
|
} |
|
|
|
|
|
|
|
#undef MODULE_CLASS
|
|
|
|
|
|
|
|
/***********************************************************************************************************************
|
|
|
|