添加广播方式升级

This commit is contained in:
ranchuan
2023-11-29 15:36:45 +08:00
parent a0b0f41c39
commit e34b8111dc
30 changed files with 1388 additions and 146 deletions

View File

@@ -16,14 +16,14 @@ typedef std::function<void(myarray data)> prot_m4_cb;
typedef struct
{
prot_m4_cb fun;
QList<prot_m4_cb> funs;
myarray cmd;
} HandleM4_def;
class prot_m4 : public QObject
{
public:
prot_m4() { if_ = nullptr; }
prot_m4() { if_ = nullptr;wait=0; }
~prot_m4() {}
void init();
bool set_irq_fun(prot_m4_cb fun, myarray data);
@@ -40,6 +40,8 @@ protected:
Codec *codec_;
QThread thread;
myarray recv_data;
int wait;
QList<myarray> send_list;
};
prot_m4 *protM4();