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.

72 lines
2.2 KiB

3 years ago
#ifndef HONAPACKET_H
#define HONAPACKET_H
#include <QtGlobal>
#include <QMetaType>
3 years ago
#include "LowLevel/Utils/Utils.h"
class HonaPacket
3 years ago
{
private:
3 years ago
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;
3 years ago
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);
/******************************************************************/
3 years ago
};
Q_DECLARE_METATYPE(HonaPacket);
Q_DECLARE_METATYPE(QList<HonaPacket>);
3 years ago
#endif //HONAPACKET_H