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.
29 lines
506 B
29 lines
506 B
#ifndef HARDWAREPACKET_H
|
|
#define HARDWAREPACKET_H
|
|
|
|
#include <QObject>
|
|
|
|
#include "model/ultrasoundModule/UsPacket.h"
|
|
#include "model/hardware/service/PacketFormat.h"
|
|
|
|
class HardwarePacket
|
|
{
|
|
protected:
|
|
quint16 batch;
|
|
quint8 subBatch;
|
|
quint8 type;
|
|
quint8 frameCounter;
|
|
|
|
quint16 Extract16BitValue(QByteArray buffer, int index);
|
|
|
|
public:
|
|
HardwarePacket();
|
|
virtual ~HardwarePacket()
|
|
{
|
|
}
|
|
|
|
virtual void decode(QByteArray buffer);
|
|
virtual UsPacket getUsPacket(int fps) = 0;
|
|
};
|
|
|
|
#endif //HARDWAREPACKET_H
|
|
|