Browse Source

nothing

heydari
Alireza 3 years ago
parent
commit
e4db6f0ae0
  1. 8
      Plx/include/LowLevel/HonaLowLevelAPI.h
  2. 2
      Plx/include/LowLevel/Setting/Setting.h
  3. 6
      Plx/src/LowLevel/HonaLowLevelAPI.cpp

8
Plx/include/LowLevel/HonaLowLevelAPI.h

@ -18,7 +18,7 @@ class HonaLowLevelAPI : public QObject
private:
bool _hsruIsStarted;
bool _hiruIsStarted;
HonaSetting _honaSetting;
HonaSettings _honaSetting;
QWaitCondition _hsruReadDone, _hsruUpdateAck, _hsruStopEvent;
QMutex _mutex;
int _threadSforValue = 0;
@ -32,8 +32,8 @@ public:
bool isHiruStarted();
void deviceReset();
void setConfig(HonaSetting* honaSetting);
HonaSetting getConfig();
void setConfig(HonaSettings* honaSetting);
HonaSettings getConfig();
QString getSwVersion();
QString getDeviceId();
void hsruStart();
@ -48,7 +48,7 @@ public:
void setHiruIsStarted(bool hiruIsStarted);
private:
void writeSettingToRegisters(HonaSetting& settings);
void writeSettingToRegisters(HonaSettings& settings);
void setConfig();
void hsruMainThread();
void hsruReadThread();

2
Plx/include/LowLevel/Setting/Setting.h

@ -32,7 +32,7 @@ struct hsruSettings_t
};
/***********************************************************************************************/
struct HonaSetting
struct HonaSettings
{
hiruSettings_t hiruSettings;
hsruSettings_t hsruSettings;

6
Plx/src/LowLevel/HonaLowLevelAPI.cpp

@ -71,7 +71,7 @@ void HonaLowLevelAPI::deviceReset()
}
/*************************************************************************************************/
void HonaLowLevelAPI::setConfig(HonaSetting* honaSetting)
void HonaLowLevelAPI::setConfig(HonaSettings* honaSetting)
{
//Initial State Checking
/*
@ -89,7 +89,7 @@ void HonaLowLevelAPI::setConfig(HonaSetting* honaSetting)
}
/*************************************************************************************************/
HonaSetting HonaLowLevelAPI::getConfig()
HonaSettings HonaLowLevelAPI::getConfig()
{
}
@ -124,7 +124,7 @@ void HonaLowLevelAPI::init()
}
/*************************************************************************************************/
void HonaLowLevelAPI::writeSettingToRegisters(HonaSetting& settings)
void HonaLowLevelAPI::writeSettingToRegisters(HonaSettings& settings)
{
honaRegisterBuffer[0] = 0x00000000;
/************************************************************************/

Loading…
Cancel
Save