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.

53 lines
1.3 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: voltage.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of VOLTAGE.H
  13. //----------------------------------------------------------------------------
  14. #ifndef __VOLTAGE__H__INCLUDED__
  15. #define __VOLTAGE__H__INCLUDED__
  16. #include "..\lgs\stdafx.h"
  17. #ifdef INCLUDE_WINDOWS_DEFINITIONS
  18. #include "..\lgs\Board.h"
  19. #else
  20. #include "..\EmulateLGS\EmulateHW.h"
  21. #endif
  22. class CVoltage
  23. {
  24. public:
  25. CVoltage();
  26. virtual ~CVoltage();
  27. public:
  28. virtual BOOL Create( LGS::PVOLTAGE_PARAMETERS pParameters );
  29. virtual void Invalidate( BOOL bVoltageOk );
  30. virtual void Destroy();
  31. public:
  32. // protocol processing
  33. BOOL GetVoltage();
  34. void OnProtocolLgsState2Command( BYTE& bFlags );
  35. // settings
  36. LGS::VOLTAGE_PARAMETERS& GetParameters() { return m_VoltageParameters; }
  37. void SetParameters( LGS::PVOLTAGE_PARAMETERS pParameters ) { m_VoltageParameters = *pParameters; }
  38. private:
  39. LGS::VOLTAGE_PARAMETERS m_VoltageParameters;
  40. private:
  41. BOOL m_bBoardVoltage;
  42. BOOL m_bBoardVoltageChanged;
  43. INT m_nBoardVoltageValue;
  44. };
  45. #endif