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
57 lines
1.5 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: LgNetDeviceGPIOLPT.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of LgNetDeviceGPIOLPT.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __LG__NET__DEVICE__GPIO__LPT__H__INCLUDED__
|
|
#define __LG__NET__DEVICE__GPIO__LPT__H__INCLUDED__
|
|
|
|
#include "LgNetDevice.h"
|
|
#include "..\Thread.h"
|
|
#include "LgNetMessageGPIO.h"
|
|
#include "..\Device\LgDeviceGPIOLPT.h"
|
|
|
|
class CLgNetDeviceGPIOLPT :
|
|
public CLgNetDevice,
|
|
public CLgDeviceGPIOLPT,
|
|
private CLgThread
|
|
{
|
|
public:
|
|
CLgNetDeviceGPIOLPT();
|
|
virtual ~CLgNetDeviceGPIOLPT();
|
|
|
|
public:
|
|
BOOL Create( LPCTSTR pPort, BOOL bDataOutput );
|
|
void Destroy();
|
|
|
|
protected:
|
|
// events
|
|
virtual void OnEvtGetOutput( INT nOutput, BOOL bOn );
|
|
virtual void OnEvtSetOutput( INT nOutput, BOOL bOn );
|
|
virtual void OnEvtGetOutputAll( PGPIO_PINS pPins );
|
|
|
|
virtual void OnEvtGetInput( INT nInput, BOOL bOn );
|
|
virtual void OnEvtGetInputAll( PGPIO_PINS pPins );
|
|
|
|
virtual void OnEvtInputChange( INT nInput, BOOL bOn );
|
|
|
|
virtual void OnEvtCommandError( INT nCommand, LPCTSTR pFormat, ... );
|
|
|
|
protected:
|
|
// inherit from thread
|
|
virtual DWORD ThreadProc();
|
|
|
|
private:
|
|
CLgNetMessageGPIO m_InMsg;
|
|
CLgNetMessageGPIO m_OutMsg;
|
|
};
|
|
|
|
#endif
|