|
|
@ -15,8 +15,8 @@ void ZCanProtocolParser::initialize(IZCanReceiver* cancmder) { |
|
|
|
m_cancmder->registerListener(this); |
|
|
|
|
|
|
|
REGFN(module_ping); |
|
|
|
REGFN(module_stop); |
|
|
|
REGFN(module_break); |
|
|
|
// REGFN(module_stop);
|
|
|
|
// REGFN(module_break);
|
|
|
|
// REGFN(module_get_last_exec_status);
|
|
|
|
REGFN(module_get_status); |
|
|
|
REGFN(module_set_reg); |
|
|
@ -31,8 +31,8 @@ void ZCanProtocolParser::initialize(IZCanReceiver* cancmder) { |
|
|
|
// REGFN(module_factory_reset);
|
|
|
|
// REGFN(module_flush_cfg);
|
|
|
|
// REGFN(module_active_cfg);
|
|
|
|
REGFN(module_read_raw); |
|
|
|
REGFN(module_enable); |
|
|
|
// REGFN(module_read_raw);
|
|
|
|
// REGFN(module_enable);
|
|
|
|
// REGFN(module_start);
|
|
|
|
|
|
|
|
REGFN(step_motor_enable); |
|
|
@ -137,14 +137,14 @@ int32_t ZCanProtocolParser::module_ping(cmdcontxt_t* cxt) { |
|
|
|
CHECK_AND_GET_MODULE(0); |
|
|
|
return module->module_ping(); |
|
|
|
} |
|
|
|
int32_t ZCanProtocolParser::module_stop(cmdcontxt_t* cxt) { |
|
|
|
CHECK_AND_GET_MODULE(0); |
|
|
|
return module->module_stop(); |
|
|
|
} |
|
|
|
int32_t ZCanProtocolParser::module_break(cmdcontxt_t* cxt) { |
|
|
|
CHECK_AND_GET_MODULE(0); |
|
|
|
return module->module_break(); |
|
|
|
} |
|
|
|
// int32_t ZCanProtocolParser::module_stop(cmdcontxt_t* cxt) {
|
|
|
|
// CHECK_AND_GET_MODULE(0);
|
|
|
|
// return module->module_stop();
|
|
|
|
// }
|
|
|
|
// int32_t ZCanProtocolParser::module_break(cmdcontxt_t* cxt) {
|
|
|
|
// CHECK_AND_GET_MODULE(0);
|
|
|
|
// return module->module_break();
|
|
|
|
// }
|
|
|
|
// int32_t ZCanProtocolParser::module_get_last_exec_status(cmdcontxt_t* cxt) {
|
|
|
|
// CHECK_AND_GET_MODULE(0);
|
|
|
|
// int32_t* ack = (int32_t*)cxt->ackbuf;
|
|
|
@ -215,16 +215,16 @@ int32_t ZCanProtocolParser::module_clear_error(cmdcontxt_t* cxt) { |
|
|
|
// CHECK_AND_GET_MODULE(0);
|
|
|
|
// return module->module_active_cfg();
|
|
|
|
// }
|
|
|
|
int32_t ZCanProtocolParser::module_read_raw(cmdcontxt_t* cxt) { |
|
|
|
CHECK_AND_GET_MODULE(1); |
|
|
|
int32_t* ack = (int32_t*)cxt->ackbuf; |
|
|
|
cxt->acklen = ZCANCMD_READ_BUF_MAX_SIZE; |
|
|
|
return module->module_read_raw(cxt->param[0], cxt->ackbuf, &cxt->acklen); |
|
|
|
} |
|
|
|
int32_t ZCanProtocolParser::module_enable(cmdcontxt_t* cxt) { |
|
|
|
CHECK_AND_GET_MODULE(1); |
|
|
|
return module->module_enable(cxt->param[0]); |
|
|
|
} |
|
|
|
// int32_t ZCanProtocolParser::module_read_raw(cmdcontxt_t* cxt) {
|
|
|
|
// CHECK_AND_GET_MODULE(1);
|
|
|
|
// int32_t* ack = (int32_t*)cxt->ackbuf;
|
|
|
|
// cxt->acklen = ZCANCMD_READ_BUF_MAX_SIZE;
|
|
|
|
// return module->module_read_raw(cxt->param[0], cxt->ackbuf, &cxt->acklen);
|
|
|
|
// }
|
|
|
|
// int32_t ZCanProtocolParser::module_enable(cmdcontxt_t* cxt) {
|
|
|
|
// CHECK_AND_GET_MODULE(1);
|
|
|
|
// return module->module_enable(cxt->param[0]);
|
|
|
|
// }
|
|
|
|
// int32_t ZCanProtocolParser::module_start(cmdcontxt_t* cxt) {
|
|
|
|
// CHECK_AND_GET_MODULE(0);
|
|
|
|
// return module->module_start();
|
|
|
|