#ifndef HONALOWLEVELAPI_H #define HONALOWLEVELAPI_H #include #include "LowLevel/Setting/Setting.h" #include "HonaPacket.h" class HonaLowLevelAPI : public QObject { Q_OBJECT private: bool _hsruIsStarted; bool _hiruIsStarted; HonaSetting _honaSetting; public: explicit HonaLowLevelAPI(QObject* parent = nullptr); bool isHsruStarted(); bool isHiruStarted(); void deviceReset(); void setConfig(HonaSetting* honaSetting); HonaSetting getConfig(); QString getSwVersion(); QString getDeviceId(); void hsruStarte(); void hiruStart(); void init(); 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(); signals: void signalToTop(QList honaPacketList, int i, int j); //uncrustify off public slots: //uncrustify on }; #endif //HONALOWLEVELAPI_H