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.

103 lines
2.0 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: DTKS576.h
  9. // AUTHOR: Chizhevskiy Sergey
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of CLgDevicePTZTKS576
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__DEVICE__PTZ__TK__S576__H__INCLUDED__
  15. #define __LG__DEVICE__PTZ__TK__S576__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif // _MSC_VER > 1000
  19. #ifdef __BORLANDC__
  20. #include "..\LgLib\Comm\PTKS576.h"
  21. #include "..\LgLib\Device\LgDevPTZ.h"
  22. #else
  23. #include "..\Comm\PTKS576.h"
  24. #include "LgDevPTZ.h"
  25. #endif
  26. class CLgDevicePTZTKS576 :
  27. public CLgDevicePTZ
  28. {
  29. public:
  30. CLgDevicePTZTKS576();
  31. virtual ~CLgDevicePTZTKS576();
  32. public:
  33. virtual BOOL WriteProc( void *pProtocol, PLONG pTimeout );
  34. virtual BOOL ReadProc( void *pProtocol, LONG lTimeout, BOOL bLastChance );
  35. public:
  36. BOOL CmdInit();
  37. protected:
  38. virtual void OnEvtInit() = 0;
  39. private:
  40. enum
  41. {
  42. STAGE_SET_AUTO_FOCUS,
  43. STAGE_SET_PAN,
  44. STAGE_SET_PAN_DELAY,
  45. STAGE_SET_TILT,
  46. STAGE_SET_TILT_DELAY,
  47. STAGE_SET_ZOOM,
  48. STAGE_SET_ZOOM_DELAY,
  49. // STAGE_SET_FOCUS,
  50. // STAGE_SET_FOCUS_DELAY,
  51. STAGE_GET_PAN,
  52. STAGE_GET_PAN_DELAY,
  53. STAGE_GET_TILT,
  54. STAGE_GET_TILT_DELAY,
  55. STAGE_GET_ZOOM,
  56. STAGE_PAN,
  57. STAGE_PAN_DELAY,
  58. STAGE_TILT,
  59. STAGE_TILT_DELAY,
  60. STAGE_ZOOM,
  61. STAGE_ZOOM_DELAY,
  62. STAGE_FOCUS,
  63. STAGE_FOCUS_DELAY,
  64. };
  65. public:
  66. enum
  67. {
  68. CMD_INIT = CMD_DEVICE_PTZ + 1,
  69. EVT_INIT = EVT_DEVICE_PTZ + 1,
  70. };
  71. /*
  72. private:
  73. BYTE m_bAddress;
  74. */
  75. private:
  76. INT m_nMode;
  77. INT m_nStage;
  78. INT m_nNoReplyCount;
  79. INT m_nNotInPositionCount;
  80. private:
  81. PTZ_POSITION m_TempPosition;
  82. private:
  83. BOOL m_bReadOnlyHeader;
  84. private:
  85. void OnPerformCmd();
  86. };
  87. #endif