#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
};
