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.

71 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 CLgDevicePTZPG3AD
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__DEVICE__PTZ__AMERICAN__DYNAMICS__H__INCLUDED__
  15. #define __LG__DEVICE__PTZ__AMERICAN__DYNAMICS__H__INCLUDED__
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. #ifdef __BORLANDC__
  20. #include "..\LgLib\Device\LgDevPTZ.h"
  21. #include "..\LgLib\Comm\PTZAD.h"
  22. #else
  23. #include "LgDevPTZ.h"
  24. #include "..\Comm\PTZAD.h"
  25. #endif
  26. class CLgDevicePTZAmericanDynamics : public CLgDevicePTZ
  27. {
  28. public:
  29. CLgDevicePTZAmericanDynamics();
  30. virtual ~CLgDevicePTZAmericanDynamics();
  31. public:
  32. virtual BOOL WriteProc( void *pProtocol, PLONG pTimeout );
  33. virtual BOOL ReadProc( void *pProtocol, LONG lTimeout, BOOL bLastChance );
  34. private:
  35. enum
  36. {
  37. STAGE_GOTO_POSITION,
  38. STAGE_GET_POSITION,
  39. STAGE_SET_IRIS,
  40. };
  41. private:
  42. INT m_nMode;
  43. INT m_nStage;
  44. INT m_nNoReplyCount;
  45. INT m_nNotInPositionCount;
  46. private:
  47. PTZ_POSITION m_TempPosition;
  48. private:
  49. WORD m_wValuePan;
  50. WORD m_wValueTilt;
  51. WORD m_wValueZoom;
  52. BYTE m_bValueIris;
  53. private:
  54. PTZ_PERCENT m_Iris;
  55. private:
  56. void OnPerformCmd();
  57. };
  58. #endif