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.
26 lines
1008 B
26 lines
1008 B
#ifndef __PROTOCOL_LGS_2D_HEADERS__
|
|
#define __PROTOCOL_LGS_2D_HEADERS__
|
|
|
|
#include "protocol.h"
|
|
#include "protocolLGS_data.h"
|
|
|
|
class protocolLGS_2D: public protocolParser{
|
|
private:
|
|
basicLogCollection * m_pLog;
|
|
basicMutex m_mInquiryMutex;
|
|
protected:
|
|
uint8_t m_bDeviceID;
|
|
basicTransport * m_oDataTransport;
|
|
int packetChecker( uint8_t *Buffer, size_t BufferSize);
|
|
protocolPackage * packetExtractor( uint8_t *Buffer, size_t BufferSize);
|
|
public:
|
|
explicit protocolLGS_2D( basicTransport *Transport = NULL, uint8_t DeviceID = 0 );
|
|
virtual ~protocolLGS_2D();
|
|
virtual bool create(void){ return protocolParser::create(); };
|
|
uint8_t getDeviceID(void) { return m_bDeviceID; };
|
|
basicTransport * getTransport(void) { return m_oDataTransport; };
|
|
bool setDeviceID( uint8_t DeviceID ){ m_bDeviceID = DeviceID; return true; };
|
|
bool setTransport(basicTransport* m_oDataTransport);
|
|
};
|
|
|
|
#endif
|