实现赋码仪命令

升级小板程序失败时停止
This commit is contained in:
ranchuan
2023-12-21 18:51:58 +08:00
parent af964ad733
commit d1e617afd3
22 changed files with 1291 additions and 43 deletions

View File

@@ -6,6 +6,11 @@
#include "prot_cmd/cmd_slave.h"
// 把小板的返回数据转化为自研批检仪上位机的格式
myarray tran_slave_to_selfdev_check(myarray &data);
// 检测 自研批检仪
class selfdev_check : public HandlePc
{
@@ -182,7 +187,7 @@ public:
int dolater(int cmd, myarray data);
void timeout();
public slots:
void slave_end_slot(int addr,int ack, slave_data data);
virtual void slave_end_slot(int addr,int ack, slave_data data);
protected:
QList<myarray> slave_acked;
int slave_acked_num;
@@ -294,6 +299,35 @@ signals:
// 赋码仪配置参数
class coder_sysparam : public HandlePc
{
Q_OBJECT
public:
coder_sysparam() : HandlePc() {
}
~coder_sysparam() {
}
int dolater(int cmd, myarray data);
void timeout();
};
// 赋码仪基本信息
class coder_bootinfo : public selfdev_bootinfo
{
Q_OBJECT
public:
coder_bootinfo() : selfdev_bootinfo() {
}
~coder_bootinfo() {
}
void slave_end_slot(int addr,int ack, slave_data data);
};