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

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __PROTOCOL_LGS_2D_HEADERS__
  2. #define __PROTOCOL_LGS_2D_HEADERS__
  3. #include "protocol.h"
  4. #include "protocolLGS_data.h"
  5. class protocolLGS_2D: public protocolParser{
  6. private:
  7. basicLogCollection * m_pLog;
  8. basicMutex m_mInquiryMutex;
  9. protected:
  10. uint8_t m_bDeviceID;
  11. basicTransport * m_oDataTransport;
  12. int packetChecker( uint8_t *Buffer, size_t BufferSize);
  13. protocolPackage * packetExtractor( uint8_t *Buffer, size_t BufferSize);
  14. public:
  15. explicit protocolLGS_2D( basicTransport *Transport = NULL, uint8_t DeviceID = 0 );
  16. virtual ~protocolLGS_2D();
  17. virtual bool create(void){ return protocolParser::create(); };
  18. uint8_t getDeviceID(void) { return m_bDeviceID; };
  19. basicTransport * getTransport(void) { return m_oDataTransport; };
  20. bool setDeviceID( uint8_t DeviceID ){ m_bDeviceID = DeviceID; return true; };
  21. bool setTransport(basicTransport* m_oDataTransport);
  22. };
  23. #endif