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.
58 lines
2.0 KiB
58 lines
2.0 KiB
#ifndef __PROTOCOL_LGS_HEADERS__
|
|
#define __PROTOCOL_LGS_HEADERS__
|
|
|
|
#include "../../components/base/basicFunctionality.h"
|
|
#include "../../components/base/basicTransport.h"
|
|
#include "../../components/base/basicMutex.h"
|
|
#include "../../components/base/basicEventHeap.h"
|
|
#include "../../hardware/soc/general/3DLRF.h"
|
|
#include "protocol.h"
|
|
#include "protocolLGS_data.h"
|
|
#include "../../alg/lgs/mask.h"
|
|
#include "../../alg/lgs/detectorStructures.h"
|
|
|
|
|
|
#ifdef _CLIENT_APPLICATION_
|
|
#define SEND_TAG MASTER_TAG
|
|
#define ACCEPT_TAG SENSOR_TAG
|
|
#else
|
|
#define SEND_TAG SENSOR_TAG
|
|
#define ACCEPT_TAG MASTER_TAG
|
|
#endif
|
|
|
|
//Multibyte
|
|
class protocolLGSM: public protocolParser{
|
|
private:
|
|
basicLogCollection *m_pLog;
|
|
basicMutex m_mInquiryMutex;
|
|
protected:
|
|
uint8_t m_bDeviceID;
|
|
int packetChecker( uint8_t *Buffer, size_t BufferSize);
|
|
protocolPackage *packetExtractor( uint8_t *Buffer, size_t BufferSize);
|
|
public:
|
|
explicit protocolLGSM( basicTransport *Transport = NULL, uint8_t DeviceID = 0 );
|
|
virtual ~protocolLGSM();
|
|
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; };
|
|
};
|
|
// Single Byte
|
|
class protocolLGSS: public protocolParser{
|
|
private:
|
|
basicLogCollection *m_pLog;
|
|
basicMutex m_mInquiryMutex;
|
|
protected:
|
|
uint8_t m_bDeviceID;
|
|
int packetChecker( uint8_t *Buffer, size_t BufferSize);
|
|
protocolPackage *packetExtractor( uint8_t *Buffer, size_t BufferSize);
|
|
public:
|
|
explicit protocolLGSS( basicTransport *Transport = NULL, uint8_t DeviceID = 0 );
|
|
virtual ~protocolLGSS();
|
|
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; };
|
|
};
|
|
|
|
#endif
|