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.

77 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:
  7. // SUBSYSTEM:
  8. // FILE: DVicon.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of DVicon.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __PTZ__DEVICE__VICON__H__INCLUDED__
  15. #define __PTZ__DEVICE__VICON__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\PTZVicon.h"
  22. #else
  23. #include "LgDevPTZ.h"
  24. #include "..\Comm\PTZVicon.h"
  25. #endif
  26. class CLgDevicePTZVicon : public CLgDevicePTZ
  27. {
  28. public:
  29. CLgDevicePTZVicon();
  30. virtual ~CLgDevicePTZVicon();
  31. public:
  32. virtual BOOL WriteProc( void *pProtocol, PLONG pTimeout );
  33. virtual BOOL ReadProc( void *pProtocol, LONG lTimeout, BOOL bLastChance );
  34. public:
  35. BOOL CmdInit();
  36. protected:
  37. virtual void OnEvtInit() = 0;
  38. private:
  39. enum
  40. {
  41. STAGE_GOTO_POSITION,
  42. STAGE_GET_POSITION,
  43. STAGE_SET_IRIS,
  44. };
  45. public:
  46. enum
  47. {
  48. CMD_INIT = CMD_DEVICE_PTZ + 1,
  49. EVT_INIT = EVT_DEVICE_PTZ + 1,
  50. };
  51. private:
  52. INT m_nMode;
  53. INT m_nStage;
  54. INT m_nNoReplyCount;
  55. INT m_nNotInPositionCount;
  56. BOOL m_bSendHeader;
  57. BOOL m_bPause;
  58. private:
  59. PTZ_POSITION m_TempPosition;
  60. PTZ_VICON::PTZ_STATE m_PtzState;
  61. INT m_nResponseSize;
  62. private:
  63. void OnPerformCmd();
  64. };
  65. #endif