Skip to content

Commit 95c9c60

Browse files
Fix asynUint32Digital interface.
1 parent 084b996 commit 95c9c60

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

devEcmcSup/com/ecmcAsynPortDriver.cpp

+27-1
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,33 @@ asynStatus ecmcAsynPortDriver::readInt32(asynUser *pasynUser,
578578
return asynError;
579579
}
580580

581-
return pEcmcParamInUseArray_[function]->readInt32(value);;
581+
return pEcmcParamInUseArray_[function]->readInt32(value);
582+
}
583+
584+
asynStatus ecmcAsynPortDriver::writeUInt32Digital(asynUser *pasynUser,
585+
epicsUInt32 value,
586+
epicsUInt32 mask) {
587+
int function = pasynUser->reason;
588+
const char *functionName = "writeUInt32Digital";
589+
590+
if(checkParamNameAndId(function,functionName) != asynSuccess) {
591+
return asynError;
592+
}
593+
594+
return pEcmcParamInUseArray_[function]->writeUInt32Digital(value, mask);
595+
}
596+
597+
asynStatus ecmcAsynPortDriver::readUInt32Digital(asynUser *pasynUser,
598+
epicsUInt32 *value,
599+
epicsUInt32 mask) {
600+
int function = pasynUser->reason;
601+
const char *functionName = "readUInt32Digital";
602+
603+
if(checkParamNameAndId(function,functionName) != asynSuccess) {
604+
return asynError;
605+
}
606+
607+
return pEcmcParamInUseArray_[function]->readUInt32Digital(value, mask);
582608
}
583609

584610
asynStatus ecmcAsynPortDriver::writeFloat64(asynUser *pasynUser,

devEcmcSup/com/ecmcAsynPortDriver.h

+7-1
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,16 @@ class ecmcAsynPortDriver : public asynPortDriver {
4444
epicsInt32 value);
4545
virtual asynStatus readInt32(asynUser *pasynUser,
4646
epicsInt32 *value);
47+
virtual asynStatus writeUInt32Digital(asynUser *pasynUser,
48+
epicsUInt32 value,
49+
epicsUInt32 mask);
50+
virtual asynStatus readUInt32Digital(asynUser *pasynUser,
51+
epicsUInt32 *value,
52+
epicsUInt32 mask);
4753
virtual asynStatus writeFloat64(asynUser *pasynUser,
4854
epicsFloat64 value);
4955
virtual asynStatus readFloat64(asynUser *pasynUser,
50-
epicsFloat64 *value);
56+
epicsFloat64 *value);
5157
virtual asynStatus writeInt8Array(asynUser *pasynUser,
5258
epicsInt8 *value,
5359
size_t nElements);

0 commit comments

Comments
 (0)