|
|
|
#ifndef HONAPACKET_H
|
|
|
|
#define HONAPACKET_H
|
|
|
|
|
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QMetaType>
|
|
|
|
|
|
|
|
|
|
|
|
#include "LowLevel/Utils/Utils.h"
|
|
|
|
|
|
|
|
class HonaPacket
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
qreal toaClock = 1.0e7;
|
|
|
|
honaPacketType m_PacketType;
|
|
|
|
quint32 m_PacketNumber;
|
|
|
|
quint64 m_Toa;
|
|
|
|
quint32 m_Doa;
|
|
|
|
quint32 m_Pa1;
|
|
|
|
quint32 m_Pa2;
|
|
|
|
quint32 m_Pa3;
|
|
|
|
quint32 m_Pa4;
|
|
|
|
quint32 m_Code;
|
|
|
|
quint64 m_CodeL;
|
|
|
|
quint64 m_CodeM;
|
|
|
|
quint8 m4Status;
|
|
|
|
|
|
|
|
public:
|
|
|
|
HonaPacket();
|
|
|
|
/******************************************************************/
|
|
|
|
honaPacketType getPacketType();
|
|
|
|
void setPacketType(honaPacketType temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint32 getPacketNumber();
|
|
|
|
void setPacketNumber(quint32 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint64 getToa();
|
|
|
|
void setToa(quint64 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint32 getDoa();
|
|
|
|
void setDoa(quint32 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint32 getPa1();
|
|
|
|
void setPa1(quint32 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint32 getPa2();
|
|
|
|
void setPa2(quint32 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint32 getPa3();
|
|
|
|
void setPa3(quint32 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint32 getPa4();
|
|
|
|
void setPa4(quint32 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint32 getCode();
|
|
|
|
void setCode(quint32 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint64 getCodeL();
|
|
|
|
void setCodeL(quint64 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint64 getCodeM();
|
|
|
|
void setCodeM(quint64 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
quint8 getm4Status();
|
|
|
|
void setm4Status(quint8 temp);
|
|
|
|
/******************************************************************/
|
|
|
|
};
|
|
|
|
|
|
|
|
Q_DECLARE_METATYPE(HonaPacket);
|
|
|
|
Q_DECLARE_METATYPE(QList<HonaPacket>);
|
|
|
|
|
|
|
|
#endif //HONAPACKET_H
|