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.

65 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: DeviceLGS.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of DeviceLGS.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __DEVICE__LGS__H__INCLUDED__
  15. #define __DEVICE__LGS__H__INCLUDED__
  16. #include "..\..\Lglib\Templ.h"
  17. #include "..\..\Lglib\Device\LgDeviceLGS.h"
  18. #if _MSC_VER > 1000
  19. #pragma once
  20. #endif
  21. // Base class for common LGS
  22. class CDeviceLGS
  23. {
  24. public:
  25. CDeviceLGS();
  26. virtual ~CDeviceLGS();
  27. protected:
  28. friend class CSensorLGS;
  29. void SetSensorLGS( CSensorLGS *pLGS ) { m_pSensor = pLGS; }
  30. protected:
  31. virtual BOOL LGS_PostReset();
  32. virtual BOOL LGS_PostRestart();
  33. virtual BOOL LGS_PostEnable( BOOL bEnable );
  34. virtual BOOL LGS_PostGetHiddenZones();
  35. virtual BOOL LGS_PostSetHiddenZones( CLgDeviceLGS::LGS_HZ_ARRAY& HzArray );
  36. virtual BOOL LGS_PostGetCalibrationTable( INT nDevice );
  37. virtual BOOL LGS_PostSetCalibrationTable( CLgDeviceLGS::LGS_CALIBRATION_TABLE& cTable );
  38. protected:
  39. CSensorLGS *m_pSensor;
  40. protected:
  41. enum{ LGSC_ENABLE, LGSC_RESET, LGSC_RESTART, LGSC_GET_HZ, LGSC_SET_HZ, LGSC_GET_CT, LGSC_SET_CT };
  42. struct LGSEVENT
  43. {
  44. BYTE id;
  45. BOOL bEnable;
  46. BOOL bConnected;
  47. CLgDeviceLGS::LGS_HZ_ARRAY HzArray;
  48. CLgDeviceLGS::LGS_CALIBRATION_TABLE CtTable;
  49. };
  50. CLgQueueP<LGSEVENT,100> m_Queue;
  51. };
  52. #endif