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.

57 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:
  7. // SUBSYSTEM:
  8. // FILE: LgNetDeviceGPIOLPT.h
  9. // AUTHOR: Sergey Chizhevskiy
  10. // OVERVIEW
  11. // ~~~~~~~~
  12. // Header file of LgNetDeviceGPIOLPT.h
  13. //----------------------------------------------------------------------------
  14. #ifndef __LG__NET__DEVICE__GPIO__LPT__H__INCLUDED__
  15. #define __LG__NET__DEVICE__GPIO__LPT__H__INCLUDED__
  16. #include "LgNetDevice.h"
  17. #include "..\Thread.h"
  18. #include "LgNetMessageGPIO.h"
  19. #include "..\Device\LgDeviceGPIOLPT.h"
  20. class CLgNetDeviceGPIOLPT :
  21. public CLgNetDevice,
  22. public CLgDeviceGPIOLPT,
  23. private CLgThread
  24. {
  25. public:
  26. CLgNetDeviceGPIOLPT();
  27. virtual ~CLgNetDeviceGPIOLPT();
  28. public:
  29. BOOL Create( LPCTSTR pPort, BOOL bDataOutput );
  30. void Destroy();
  31. protected:
  32. // events
  33. virtual void OnEvtGetOutput( INT nOutput, BOOL bOn );
  34. virtual void OnEvtSetOutput( INT nOutput, BOOL bOn );
  35. virtual void OnEvtGetOutputAll( PGPIO_PINS pPins );
  36. virtual void OnEvtGetInput( INT nInput, BOOL bOn );
  37. virtual void OnEvtGetInputAll( PGPIO_PINS pPins );
  38. virtual void OnEvtInputChange( INT nInput, BOOL bOn );
  39. virtual void OnEvtCommandError( INT nCommand, LPCTSTR pFormat, ... );
  40. protected:
  41. // inherit from thread
  42. virtual DWORD ThreadProc();
  43. private:
  44. CLgNetMessageGPIO m_InMsg;
  45. CLgNetMessageGPIO m_OutMsg;
  46. };
  47. #endif