添加自研批检仪检测命令

This commit is contained in:
ranchuan
2023-11-27 14:31:00 +08:00
parent b3a0d7b57c
commit a0b0f41c39
45 changed files with 3778 additions and 2628 deletions

View File

@@ -1,7 +1,6 @@
#ifndef PROT_M4_H
#define PROT_M4_H
#include "QObject"
#include "base/base.h"
#include "QList"
@@ -10,44 +9,39 @@
#include "base/mycfg.h"
#include "QThread"
using namespace std;
using namespace std::placeholders;
typedef std::function<void(myarray data)> prot_m4_cb;
typedef struct
{
prot_m4_cb fun;
myarray cmd;
} HandleM4_def;
typedef struct{
prot_m4_cb fun;
myarray cmd;
}HandleM4_def;
class prot_m4:public QObject
class prot_m4 : public QObject
{
public:
prot_m4(){if_=nullptr;}
~prot_m4(){}
void init();
bool set_irq_fun(prot_m4_cb fun,myarray data);
bool del_irq_fun(prot_m4_cb fun,myarray data);
prot_m4() { if_ = nullptr; }
~prot_m4() {}
void init();
bool set_irq_fun(prot_m4_cb fun, myarray data);
bool del_irq_fun(prot_m4_cb fun, myarray data);
public slots:
void send_data_slot(myarray data);
protected:
bool exe_cb_fun(myarray data);
protected:
InterFace *if_;
QList<HandleM4_def> funs;
Codec *codec_;
QThread thread;
myarray recv_data;
};
void send_data_slot(myarray data);
protected:
bool exe_cb_fun(myarray data);
protected:
InterFace *if_;
QList<HandleM4_def> funs;
Codec *codec_;
QThread thread;
myarray recv_data;
};
prot_m4 *protM4();
#endif // PROT_M4_H