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.

51 lines
1.4 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: LgNetSocketMigvanPTZ.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgNetSocketMigvanPTZ.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__NET__SOCKET__MIGVAN__PTZ__H__INCLUDED__
  15. #define __LG__NET__SOCKET__MIGVAN__PTZ__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #include "LgNetSocket.h"
  20. #include "..\Comm\RS485.h"
  21. #include "..\Comm\ProtPTZm.h"
  22. class CLgNetSocketMigvanPTZ : public CLgNetSocket
  23. {
  24. public:
  25. CLgNetSocketMigvanPTZ();
  26. virtual ~CLgNetSocketMigvanPTZ();
  27. public:
  28. BOOL Create( LPCTSTR pCommPort, BOOL bDemo );
  29. void Destroy();
  30. public:
  31. // virtual BOOL AttachDevice( CLgNetSocketDevice* );
  32. // virtual BOOL DetachDevice( CLgNetSocketDevice* );
  33. virtual BOOL Link( CLgLink<CLgNetSocketDevice,CLgNetSocket>* );
  34. virtual BOOL Unlink( CLgLink<CLgNetSocketDevice,CLgNetSocket>* );
  35. private:
  36. // CConnectionRS485 m_Connection;
  37. CConnectionRS232 m_Connection;
  38. CProtocolMigvanPTZ m_Protocol;
  39. private:
  40. enum { MIN_ADDRESS = 1, MAX_ADDRESS = 254 };
  41. BYTE m_pAddressArray[ MAX_ADDRESS + 1 ];
  42. };
  43. #endif