diff --git a/devEcmcSup/com/ecmcAsynPortDriver.cpp b/devEcmcSup/com/ecmcAsynPortDriver.cpp index 3ace5deb..a9911e3a 100644 --- a/devEcmcSup/com/ecmcAsynPortDriver.cpp +++ b/devEcmcSup/com/ecmcAsynPortDriver.cpp @@ -578,7 +578,33 @@ asynStatus ecmcAsynPortDriver::readInt32(asynUser *pasynUser, return asynError; } - return pEcmcParamInUseArray_[function]->readInt32(value);; + return pEcmcParamInUseArray_[function]->readInt32(value); +} + +asynStatus ecmcAsynPortDriver::writeUInt32Digital(asynUser *pasynUser, + epicsUInt32 value, + epicsUInt32 mask) { + int function = pasynUser->reason; + const char *functionName = "writeUInt32Digital"; + + if(checkParamNameAndId(function,functionName) != asynSuccess) { + return asynError; + } + + return pEcmcParamInUseArray_[function]->writeUInt32Digital(value, mask); +} + +asynStatus ecmcAsynPortDriver::readUInt32Digital(asynUser *pasynUser, + epicsUInt32 *value, + epicsUInt32 mask) { + int function = pasynUser->reason; + const char *functionName = "readUInt32Digital"; + + if(checkParamNameAndId(function,functionName) != asynSuccess) { + return asynError; + } + + return pEcmcParamInUseArray_[function]->readUInt32Digital(value, mask); } asynStatus ecmcAsynPortDriver::writeFloat64(asynUser *pasynUser, diff --git a/devEcmcSup/com/ecmcAsynPortDriver.h b/devEcmcSup/com/ecmcAsynPortDriver.h index 7110b986..63a977d6 100644 --- a/devEcmcSup/com/ecmcAsynPortDriver.h +++ b/devEcmcSup/com/ecmcAsynPortDriver.h @@ -44,10 +44,16 @@ class ecmcAsynPortDriver : public asynPortDriver { epicsInt32 value); virtual asynStatus readInt32(asynUser *pasynUser, epicsInt32 *value); + virtual asynStatus writeUInt32Digital(asynUser *pasynUser, + epicsUInt32 value, + epicsUInt32 mask); + virtual asynStatus readUInt32Digital(asynUser *pasynUser, + epicsUInt32 *value, + epicsUInt32 mask); virtual asynStatus writeFloat64(asynUser *pasynUser, epicsFloat64 value); virtual asynStatus readFloat64(asynUser *pasynUser, - epicsFloat64 *value); + epicsFloat64 *value); virtual asynStatus writeInt8Array(asynUser *pasynUser, epicsInt8 *value, size_t nElements);