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.
65 lines
1.6 KiB
65 lines
1.6 KiB
//----------------------------------------------------------------------------
|
|
// Laser Guard Ltd.
|
|
// Copyright © 2000-2002. All Rights Reserved.
|
|
// Version 1.0 01/01/2000
|
|
// Last modification: 08/10/2003
|
|
// PROJECT:
|
|
// SUBSYSTEM:
|
|
// FILE: DeviceLGS.h
|
|
// AUTHOR: Sergey Chizhevskiy
|
|
// OVERVIEW
|
|
// ~~~~~~~~
|
|
// Header file of DeviceLGS.h
|
|
//----------------------------------------------------------------------------
|
|
#ifndef __DEVICE__LGS__H__INCLUDED__
|
|
#define __DEVICE__LGS__H__INCLUDED__
|
|
|
|
#include "..\..\Lglib\Templ.h"
|
|
#include "..\..\Lglib\Device\LgDeviceLGS.h"
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
// Base class for common LGS
|
|
class CDeviceLGS
|
|
{
|
|
public:
|
|
CDeviceLGS();
|
|
virtual ~CDeviceLGS();
|
|
|
|
protected:
|
|
friend class CSensorLGS;
|
|
void SetSensorLGS( CSensorLGS *pLGS ) { m_pSensor = pLGS; }
|
|
|
|
protected:
|
|
virtual BOOL LGS_PostReset();
|
|
virtual BOOL LGS_PostRestart();
|
|
virtual BOOL LGS_PostEnable( BOOL bEnable );
|
|
virtual BOOL LGS_PostGetHiddenZones();
|
|
virtual BOOL LGS_PostSetHiddenZones( CLgDeviceLGS::LGS_HZ_ARRAY& HzArray );
|
|
virtual BOOL LGS_PostGetCalibrationTable( INT nDevice );
|
|
virtual BOOL LGS_PostSetCalibrationTable( CLgDeviceLGS::LGS_CALIBRATION_TABLE& cTable );
|
|
|
|
protected:
|
|
CSensorLGS *m_pSensor;
|
|
|
|
protected:
|
|
enum{ LGSC_ENABLE, LGSC_RESET, LGSC_RESTART, LGSC_GET_HZ, LGSC_SET_HZ, LGSC_GET_CT, LGSC_SET_CT };
|
|
struct LGSEVENT
|
|
{
|
|
BYTE id;
|
|
|
|
BOOL bEnable;
|
|
|
|
BOOL bConnected;
|
|
|
|
CLgDeviceLGS::LGS_HZ_ARRAY HzArray;
|
|
|
|
CLgDeviceLGS::LGS_CALIBRATION_TABLE CtTable;
|
|
};
|
|
|
|
CLgQueueP<LGSEVENT,100> m_Queue;
|
|
};
|
|
|
|
#endif
|