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.

25 lines
972 B

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