Skip to content

Commit

Permalink
Fix asynUint32Digital interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
anderssandstrom committed Nov 13, 2020
1 parent 084b996 commit 95c9c60
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
28 changes: 27 additions & 1 deletion devEcmcSup/com/ecmcAsynPortDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 7 additions & 1 deletion devEcmcSup/com/ecmcAsynPortDriver.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 95c9c60

Please sign in to comment.