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: DeviceVMs.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of DeviceVMs.h
//----------------------------------------------------------------------------
// DeviceVideoMatrix.h: interface for the CDeviceVMs class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DEVICEVIDEOMATRIX_H__91F2F4A1_525E_41D3_9840_04BC81ADDBDE__INCLUDED_)
#define AFX_DEVICEVIDEOMATRIX_H__91F2F4A1_525E_41D3_9840_04BC81ADDBDE__INCLUDED_
#include "Device.h"
#include "DeviceVM.h"
#include "QueueCommon.h"
#if _MSC_VER > 1000
#pragma once
#endif
// "Migvan" video mul
class CDeviceVMs : public CDevice, public CDeviceVM {public: CDeviceVMs(); virtual ~CDeviceVMs();
public: enum{ INPUT_COUNT = 8, OUTPUT_COUNT = 4 }; void SetAutoInit( BOOL bAutoInit ) { m_bAutoInit = bAutoInit; } void SetHardwareID( LPBYTE pID ) { ::CopyMemory( m_pHardwareID, pID, sizeof(BYTE)*4 ); }
protected: friend class CSocketVM;
virtual void PostConnect( int nInput, int nOutput ); virtual void PostGetState();
void SetLogicalID( WORD wId ); BOOL GetCommand( LPBYTE pBuffer, DWORD &dwPause, BOOL &bPause ); BOOL SetAnswer( LPBYTE pBuffer, DWORD nCount );
private: enum{ STAGE_GET_HARDWARE_ID, STAGE_SET_LOGICAL_ID, STAGE_SET_CONNECT, STAGE_GET_CONNECT };
struct STAGE { int nStage; int nPause; int nCount; int nRetry; };
struct COMMAND { int nCount; int nStage; BOOL bPause; BOOL bSuccess; STAGE pStage[10]; };
static const COMMAND CMD_INIT; static const COMMAND CMD_AUTO_INIT; static const COMMAND CMD_GET_STATE; static const COMMAND CMD_CONNECT;
COMMAND m_Command; BOOL m_bCommand[ DVMC_COUNT ];
struct DATA_CONNECT { int pOutput[ OUTPUT_COUNT ]; }m_DataConnect;
private: BYTE m_pHardwareID[4]; BYTE m_pLogicalID[2]; BOOL m_bAutoInit;};
#endif // !defined(AFX_DEVICEVIDEOMATRIX_H__91F2F4A1_525E_41D3_9840_04BC81ADDBDE__INCLUDED_)
|