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.
|
|
|
#ifndef HONALOWLEVELAPI_H
|
|
|
|
#define HONALOWLEVELAPI_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class HonaLowLevelAPI : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void writeSettingToRegisters(HonaSetting& honaSetting);
|
|
|
|
void setConfig();
|
|
|
|
void hsruMainThread();
|
|
|
|
void hiruReadThread();
|
|
|
|
void hsruUpdateThread();
|
|
|
|
int hiruGetDOA();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void signalToTop(QList<&HonaPacket> honaPacketList, int i, int j);
|
|
|
|
//uncrustify off
|
|
|
|
public slots:
|
|
|
|
//uncrustify on
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif //HONALOWLEVELAPI_H
|