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.
|
|
//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright � 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: RELAY.H
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of RELAY.H
//----------------------------------------------------------------------------
#ifndef __RELAY__H__INCLUDED__
#define __RELAY__H__INCLUDED__
#include "..\lgs\stdafx.h"
#include "..\lglib\device\lgdevptz.h"
#include "..\lglib\comm\lgsm.h"
#ifdef INCLUDE_WINDOWS_DEFINITIONS
#include "..\lgs\Isr.h"
#include "..\lgs\Stream.h"
#include "..\lgs\Board.h"
#else
#include "..\EmulateLGS\EmulateHW.h"
#endif
class CRelay{public: CRelay(); virtual ~CRelay();
public: virtual BOOL Create( CBoard *pBoard, LGS::PRELAY_PARAMETERS pParameters ); virtual void Invalidate( WORD nFastTimer, DWORD nSlowTimer ); virtual void Destroy();
public: // protocol processing
void OnProtocolLgsRelayCommand( PBYTE pReadBuffer, INT& nReadCount, PBYTE pSendBuffer, INT& nSendCount ); // tagget processing
void OnTarget( INT nAngle, INT nRange ); // settings
LGS::RELAY_PARAMETERS& GetParameters() { return m_RelayParameters; } void SetParameters( LGS::PRELAY_PARAMETERS pParameters ) { m_RelayParameters = *pParameters; }
private: void SetRelay( BOOL bOn );
private: DWORD m_dwAutoDelayTime; LONG m_lAutoDelayTimeout;
private: CBoard *m_pBoard; BYTE m_bOutput;
private: LGS::RELAY_PARAMETERS m_RelayParameters;};
#endif
|