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.

145 lines
4.1 KiB

3 years ago
#include "../../include/LowLevel/HonaLowLevelAPI.h"
3 years ago
#include "qdebug.h"
#include "QTime"
bool HonaLowLevelAPI::getHsruIsStarted() const
{
return _hsruIsStarted;
}
/*************************************************************************************************/
void HonaLowLevelAPI::setHsruIsStarted(bool hsruIsStarted)
{
_hsruIsStarted = hsruIsStarted;
}
/*************************************************************************************************/
bool HonaLowLevelAPI::getHiruIsStarted() const
{
return _hiruIsStarted;
}
/*************************************************************************************************/
void HonaLowLevelAPI::setHiruIsStarted(bool hiruIsStarted)
{
_hiruIsStarted = hiruIsStarted;
}
/*************************************************************************************************/
HonaLowLevelAPI::HonaLowLevelAPI(QObject* parent) : QObject(parent)
3 years ago
{
}
3 years ago
3 years ago
/*************************************************************************************************/
bool HonaLowLevelAPI::isHsruStarted()
{
3 years ago
return getHsruIsStarted();
3 years ago
}
/*************************************************************************************************/
bool HonaLowLevelAPI::isHiruStarted()
{
3 years ago
return getHiruIsStarted();
}
/*************************************************************************************************/
void HonaLowLevelAPI::deviceReset()
{
3 years ago
/*
QTime t;
t.elapsed()
PLX_STATUS status = base.DeviceReset();
qDebug() << "Board Reseted, status: " + status.ToString());
if (status == PLX_STATUS.ApiSuccess)
{
toaStartBoard = (ulong) (DateTime.Now.Ticks);
return ApiResult.Success;
}
else
return ApiResult.Error; */
}
/*************************************************************************************************/
3 years ago
void HonaLowLevelAPI::setConfig(HonaSetting* honaSetting)
{
3 years ago
//Initial State Checking
/*
HonaRegisterBuffer = new uint[8]; // Mode4 :: changed from 5 to 8 by H.H
DeviceReadRegisters(0x10000000, ref HonaRegisterBuffer);
_honaSetting = Settings;
HonaFillRegisters(Settings);
DeviceWriteRegisters(0x10000000, HonaRegisterBuffer);
HonaRegisterBuffer = new uint[8]; // Mode4 :: changed from 5 to 8 by H.H
DeviceReadRegisters(0x10000000, ref HonaRegisterBuffer);
return ApiResult.Success; */
}
/*************************************************************************************************/
HonaSetting HonaLowLevelAPI::getConfig()
{
}
/*************************************************************************************************/
QString HonaLowLevelAPI::getSwVersion()
{
}
/*************************************************************************************************/
QString HonaLowLevelAPI::getDeviceId()
{
}
/*************************************************************************************************/
void HonaLowLevelAPI::hsruStarte()
{
}
/*************************************************************************************************/
void HonaLowLevelAPI::hiruStart()
{
}
/*************************************************************************************************/
void HonaLowLevelAPI::init()
{
}
/*************************************************************************************************/
void HonaLowLevelAPI::writeSettingToRegisters(HonaSetting& honaSetting)
{
}
/*************************************************************************************************/
void HonaLowLevelAPI::setConfig()
{
}
/*************************************************************************************************/
void HonaLowLevelAPI::hsruMainThread()
{
}
/*************************************************************************************************/
void HonaLowLevelAPI::hiruReadThread()
{
}
/*************************************************************************************************/
void HonaLowLevelAPI::hsruUpdateThread()
{
}
/*************************************************************************************************/
int HonaLowLevelAPI::hiruGetDOA()
{
}
/*************************************************************************************************/