You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.0 KiB

3 years ago
#ifndef HONALOWLEVELAPI_H
#define HONALOWLEVELAPI_H
#include <QObject>
3 years ago
#include "LowLevel/Setting/Setting.h"
#include "HonaPacket.h"
3 years ago
class HonaLowLevelAPI : public QObject
{
Q_OBJECT
3 years ago
private:
bool _hsruIsStarted;
bool _hiruIsStarted;
HonaSetting _honaSetting;
3 years ago
public:
explicit HonaLowLevelAPI(QObject* parent = nullptr);
bool isHsruStarted();
bool isHiruStarted();
void deviceReset();
3 years ago
void setConfig(HonaSetting* honaSetting);
HonaSetting getConfig();
QString getSwVersion();
QString getDeviceId();
void hsruStarte();
void hiruStart();
void init();
3 years ago
3 years ago
bool getHsruIsStarted() const;
void setHsruIsStarted(bool hsruIsStarted);
bool getHiruIsStarted() const;
void setHiruIsStarted(bool hiruIsStarted);
private:
void writeSettingToRegisters(HonaSetting& honaSetting);
void setConfig();
void hsruMainThread();
void hiruReadThread();
void hsruUpdateThread();
int hiruGetDOA();
3 years ago
signals:
3 years ago
void signalToTop(QList<HonaPacket*> honaPacketList, int i, int j);
//uncrustify off
public slots:
//uncrustify on
3 years ago
};
#endif //HONALOWLEVELAPI_H