|
|
@ -100,6 +100,8 @@ void ZCanProtocolParser::initialize(IZCanReceiver* cancmder) { |
|
|
|
REGFN(xymotor_move_to); |
|
|
|
REGFN(xymotor_move_to_zero); |
|
|
|
REGFN(xymotor_read_pos); |
|
|
|
REGFN(xymotor_read_inio); |
|
|
|
REGFN(xymotor_read_inio_index_in_stm32); |
|
|
|
#if 1
|
|
|
|
REGFN(a8000_optical_module_power_ctrl); |
|
|
|
REGFN(a8000_optical_open_laser); |
|
|
@ -650,6 +652,20 @@ int32_t ZCanProtocolParser::xymotor_read_pos(cmdcontxt_t* cxt) { |
|
|
|
return module->xymotor_read_pos(&ack[0], &ack[1]); |
|
|
|
} |
|
|
|
|
|
|
|
int32_t ZCanProtocolParser::xymotor_read_inio(cmdcontxt_t* cxt) { |
|
|
|
CHECK_AND_GET_MODULE(1); |
|
|
|
int32_t* ack = (int32_t*)cxt->ackbuf; |
|
|
|
cxt->acklen = 4; |
|
|
|
return module->xymotor_read_inio(cxt->params[0], ack); |
|
|
|
} |
|
|
|
|
|
|
|
int32_t ZCanProtocolParser::xymotor_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->xymotor_read_inio_index_in_stm32(cxt->params[0], ack); |
|
|
|
} |
|
|
|
|
|
|
|
#undef MODULE_CLASS
|
|
|
|
|
|
|
|
#if 1
|
|
|
|