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.
 
 
 
 
 

65 lines
1.3 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT: Laserguard libraries
// SUBSYSTEM: Devices support library
// FILE: LgDeviceGPIOCOM.h
// AUTHOR: Chizhevskiy Sergey
// OVERVIEW
// ~~~~~~~~
// Header file of CLgDeviceGPIOCOM
//----------------------------------------------------------------------------
#ifndef __LG__DEVICE__GPIO__COM__H__INCLUDED__
#define __LG__DEVICE__GPIO__COM__H__INCLUDED__
#if _MSC_VER > 1000
#pragma once
#endif
#include "LgDeviceGPIO.h"
class CLgDeviceGPIOCOM :
public CLgDeviceGPIO
{
public:
CLgDeviceGPIOCOM();
virtual ~CLgDeviceGPIOCOM();
public:
BOOL Create( LPCTSTR pPort, BOOL bSelfTest, INT nSelfTestTimeout );
void Destroy();
protected:
virtual BOOL ReadWriteProc();
private:
typedef struct GISTEREZIS
{
BOOL bCurrentOn;
BOOL bSavedOn;
LARGE_INTEGER liTime;
}GISTEREZIS;
private:
enum { GPIO_COM_INFINITE = 200 };
GISTEREZIS m_pGisteresis[4];
private:
HANDLE m_hCommPort;
DWORD m_dwInputStatus;
private:
BOOL m_pOutput[2];
private:
static DWORD s_dwControlBits[];
private:
BOOL m_bSelfTest;
INT m_nSelfTestTimeout;
};
#endif