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.

78 lines
1.5 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: Laserguard libraries
  7. // SUBSYSTEM: Devices support library
  8. // FILE: DPG3AD.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of CLgDevicePTZHebron
  13. //----------------------------------------------------------------------------
  14. #ifndef __DEVICE__HEBRON__H__INCLUDED__
  15. #define __DEVICE__HEBRON__H__INCLUDED__
  16. #pragma once
  17. #ifdef __BORLANDC__
  18. #include "..\LgLib\Device\DDopler.h"
  19. #include "..\LgLib\Comm\HEBRON.h"
  20. #else
  21. #include "DDopler.h"
  22. #include "..\Comm\ProtLGSm.h"
  23. #include "..\Comm\Hebron.h"
  24. #endif
  25. class CLgDevicePTZHebron : public CLgDeviceDopler
  26. {
  27. public:
  28. CLgDevicePTZHebron();
  29. virtual ~CLgDevicePTZHebron();
  30. public:
  31. virtual BOOL WriteProc( void *pProtocol, PLONG pTimeout );
  32. virtual BOOL ReadProc( void *pProtocol, LONG lTimeout, BOOL bLastChance );
  33. public:
  34. BOOL CmdInit();
  35. protected:
  36. virtual void OnEvtInit() = 0;
  37. private:
  38. enum
  39. {
  40. STAGE_GOTO_POSITION,
  41. STAGE_GET_POSITION,
  42. };
  43. public:
  44. enum
  45. {
  46. CMD_INIT = CMD_DEVICE_DOPLER + 1,
  47. EVT_INIT = EVT_DEVICE_DOPLER + 1,
  48. };
  49. private:
  50. INT m_nMode;
  51. BOOL m_bModeDopler;
  52. INT m_nStage;
  53. INT m_nNoReplyCount;
  54. INT m_nNotInPositionCount;
  55. private:
  56. PTZ_POSITION m_TempPosition;
  57. private:
  58. INT m_nMaskIndex;
  59. private:
  60. void OnPerformCmd();
  61. };
  62. #endif