|
@ -55,7 +55,7 @@ void ZCanProtocolParser::initialize(IZCanReceiver* cancmder) { |
|
|
REGFN(mini_servo_rotate); |
|
|
REGFN(mini_servo_rotate); |
|
|
REGFN(mini_servo_rotate_with_torque); |
|
|
REGFN(mini_servo_rotate_with_torque); |
|
|
|
|
|
|
|
|
REGFN(board_read_ext_io); |
|
|
|
|
|
|
|
|
REGFN(board_read_ext_inio); |
|
|
REGFN(board_write_ext_outio); |
|
|
REGFN(board_write_ext_outio); |
|
|
REGFN(board_read_muti_inio); |
|
|
REGFN(board_read_muti_inio); |
|
|
REGFN(board_read_inio_index_in_stm32); |
|
|
REGFN(board_read_inio_index_in_stm32); |
|
@ -381,11 +381,11 @@ int32_t ZCanProtocolParser::mini_servo_rotate_with_torque(cmdcontxt_t* cxt) { |
|
|
* ZIBoard * |
|
|
* ZIBoard * |
|
|
***********************************************************************************************************************/ |
|
|
***********************************************************************************************************************/ |
|
|
#define MODULE_CLASS ZIBoard
|
|
|
#define MODULE_CLASS ZIBoard
|
|
|
int32_t ZCanProtocolParser::board_read_ext_io(cmdcontxt_t* cxt) { |
|
|
|
|
|
|
|
|
int32_t ZCanProtocolParser::board_read_ext_inio(cmdcontxt_t* cxt) { |
|
|
CHECK_AND_GET_MODULE(1); |
|
|
CHECK_AND_GET_MODULE(1); |
|
|
int32_t* ack = (int32_t*)cxt->ackbuf; |
|
|
int32_t* ack = (int32_t*)cxt->ackbuf; |
|
|
cxt->acklen = 4; |
|
|
cxt->acklen = 4; |
|
|
return module->board_read_ext_io(cxt->params[0], ack); |
|
|
|
|
|
|
|
|
return module->board_read_ext_inio(cxt->params[0], ack); |
|
|
} |
|
|
} |
|
|
int32_t ZCanProtocolParser::board_write_ext_outio(cmdcontxt_t* cxt) { |
|
|
int32_t ZCanProtocolParser::board_write_ext_outio(cmdcontxt_t* cxt) { |
|
|
CHECK_AND_GET_MODULE(2); |
|
|
CHECK_AND_GET_MODULE(2); |
|
|