添加一些基本类

This commit is contained in:
andy
2023-11-21 20:28:23 +08:00
commit b1b69d307f
21 changed files with 1453 additions and 0 deletions

25
interface/interface.h Normal file
View File

@@ -0,0 +1,25 @@
#ifndef INTERFACE_H
#define INTERFACE_H
#include <QObject>
#include "base/base.h"
using namespace std;
using namespace std::placeholders;
typedef std::function<void(void)> irq_cb;
class InterFace : public QObject
{
Q_OBJECT
public:
InterFace() {}
virtual ~InterFace() {}
virtual void init() = 0;
virtual int write(myarray data) = 0;
virtual void set_irq(irq_cb fun, myarray &data) = 0;
};
InterFace *interFaceFind(const char *name);
#endif // INTERFACE_H