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.

76 lines
1.6 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__PHILIPS__G3__AUTO__DOME__H__INCLUDED__
  15. #define __LG__DEVICE__PTZ__PHILIPS__G3__AUTO__DOME__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\PTZPG3AD.h"
  22. #else
  23. #include "LgDevPTZ.h"
  24. #include "..\Comm\PTZPG3AD.h"
  25. #endif
  26. class CLgDevicePTZPG3AD : public CLgDevicePTZ
  27. {
  28. public:
  29. CLgDevicePTZPG3AD();
  30. virtual ~CLgDevicePTZPG3AD();
  31. public:
  32. BOOL SetOldType();
  33. public:
  34. virtual BOOL WriteProc( void *pProtocol, PLONG pTimeout );
  35. virtual BOOL ReadProc( void *pProtocol, LONG lTimeout, BOOL bLastChance );
  36. private:
  37. enum
  38. {
  39. STAGE_GOTO_POSITION,
  40. STAGE_GET_POSITION,
  41. STAGE_SET_IRIS,
  42. };
  43. private:
  44. INT m_nMode;
  45. INT m_nStage;
  46. INT m_nNoReplyCount;
  47. INT m_nNotInPositionCount;
  48. private:
  49. PTZ_POSITION m_TempPosition;
  50. private:
  51. PTZ_PHILIPS_G3_AUTODOME::PTZ_STATE m_PtzState;
  52. private:
  53. void OnPerformCmd();
  54. private:
  55. typedef PTZ_DEGREE (*PAN2DEGREE)( DWORD );
  56. typedef DWORD (*DEGREE2PAN)( PTZ_DEGREE );
  57. private:
  58. PAN2DEGREE m_pPan2Degree;
  59. DEGREE2PAN m_pDegree2Pan;
  60. };
  61. #endif