Old fashion design for PC-104
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.

57 lines
1.3 KiB

4 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. //----------------------------------------------------------------------------
  2. // Laser Guard Ltd.
  3. // Copyright � 2000-2002. All Rights Reserved.
  4. // Version 1.0 01/01/2000
  5. // Last modification: 08/10/2003
  6. // PROJECT:
  7. // SUBSYSTEM:
  8. // FILE: LgNetSocketMD.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgNetSocketMD.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__NET__SOCKET__LGS__H__INCLUDED__
  15. #define __LG__NET__SOCKET__LGS__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "LgNetSocket.h"
  20. #include "..\Comm\RS485.h"
  21. #include "..\Comm\ProtLGSm.h"
  22. class CLgNetSocketMD : public CLgNetSocket
  23. {
  24. public:
  25. CLgNetSocketMD();
  26. virtual ~CLgNetSocketMD();
  27. public:
  28. BOOL Create( LPCTSTR pCommPort, INT nBaudRate, BOOL bSpyMode, BOOL bDemo );
  29. void Destroy();
  30. public:
  31. virtual BOOL SetBaudrate( DWORD nBaudrate );
  32. public:
  33. // virtual BOOL AttachDevice( CLgNetSocketDevice* );
  34. virtual BOOL Link( CLgLink<CLgNetSocketDevice,CLgNetSocket>* );
  35. protected:
  36. virtual BOOL OnTransaction();
  37. BOOL OnTransaction_();
  38. protected:
  39. CConnectionRS485 m_Connection;
  40. CProtocolLGS m_Protocol;
  41. protected:
  42. BOOL IsSpyMode() { return m_bSpyMode; }
  43. private:
  44. BOOL m_bSpyMode;
  45. };
  46. #endif