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.
25 lines
607 B
C++
25 lines
607 B
C++
#pragma once
|
|
class CAdvantechCommon_ACM
|
|
{
|
|
public:
|
|
CAdvantechCommon_ACM(UINT_PTR hDev, long lSlaveID, long lPointNo);
|
|
~CAdvantechCommon_ACM(void);
|
|
|
|
int InitCard(int nHardwareIniTypeCardNo);
|
|
|
|
int CloseCard(int nPhysicalCardID);
|
|
|
|
bool ReadVoltage(int nRange, double *pVoltage);
|
|
|
|
bool ReadInput(unsigned short *pState);
|
|
|
|
bool WriteOutputBit(bool bState);
|
|
|
|
bool WriteVoltage(double dVoltage);
|
|
|
|
private:
|
|
UINT_PTR m_hDev; // for CInput & COutput class
|
|
long m_lSlaveID; // only used for CInput class
|
|
long m_lPointNo; // only used for CInput class
|
|
};
|