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.1 KiB
53 lines
1.1 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: DirectOutput.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of DirectOutput.h
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __RELAY__H__INCLUDED__
|
|
#define __RELAY__H__INCLUDED__
|
|
|
|
#include "..\..\LgLib\Templ.h"
|
|
|
|
class CDirectOutput
|
|
{
|
|
public:
|
|
CDirectOutput();
|
|
virtual ~CDirectOutput();
|
|
|
|
protected:
|
|
friend class CDeviceDO;
|
|
|
|
public:
|
|
void CmdOn( BOOL bOn );
|
|
BOOL ConnectToDevice( CDeviceDO *pDeviceDO, int nBit, int nSensorBit );
|
|
|
|
public:
|
|
int GetSubIndex() { return m_nSubIndex; }
|
|
|
|
protected:
|
|
enum{ DOC_SET_STATE };
|
|
struct DOEVENT
|
|
{
|
|
BYTE id;
|
|
BOOL bOn;
|
|
};
|
|
CLgQueueP<DOEVENT,100> m_Queue;
|
|
|
|
protected:
|
|
friend class CSensor;
|
|
void PostOn( BOOL bOn );
|
|
CDeviceDO *m_pDeviceDO;
|
|
int m_nBit;
|
|
int m_nSubIndex;
|
|
};
|
|
|
|
#endif
|