You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
// InputController_HSL.h: interface for the CInputController_HSL class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_INPUTCONTROLLER_HSL_H__C65A5953_5477_4A99_8182_BBDE284C5449__INCLUDED_)
|
|
#define AFX_INPUTCONTROLLER_HSL_H__C65A5953_5477_4A99_8182_BBDE284C5449__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "InputControllerBase.h"
|
|
|
|
class CInputController_HSL : public CInputControllerBase
|
|
{
|
|
public:
|
|
CInputController_HSL();
|
|
virtual ~CInputController_HSL();
|
|
|
|
// method to initialise the input controller card
|
|
BOOL Init(int nCardType, CArray<stCard, stCard> &astCard);
|
|
|
|
// method to close the input controller card
|
|
void Close(int nCardType);
|
|
|
|
// method to query if the input is OFF
|
|
BOOL IsOff(const CInputSetting &InputSetting);
|
|
|
|
// method to query if the input is ON
|
|
BOOL IsOn(const CInputSetting &InputSetting);
|
|
|
|
// method to query for current analog voltage of analog output
|
|
BOOL GetVoltage(const CInputSetting &InputSetting, double &dVoltage, int nRange);
|
|
|
|
private:
|
|
BOOL GetState(const CInputSetting &InputSetting, bool bGetOnState);
|
|
};
|
|
|
|
#endif // !defined(AFX_INPUTCONTROLLER_HSL_H__C65A5953_5477_4A99_8182_BBDE284C5449__INCLUDED_)
|