Hi
I am working on a driver based on asynPortDriver interface, the problem is that this statement
int function = pasynUser->reason;
Will always return 0 no matter which parameter string I pass in the INP field. The solution was to include “asynDrvUserMask” as part of the interface mask in the base class constructor even though I am not using drvUserCreate method (But
I am using pasynOctetSyncIO). This was the call to the base class constructor:
asynPortDriver(port_name, 255, asynInt32Mask | asynFloat64Mask | asynDrvUserMask, 0, ASYN_CANBLOCK | ASYN_MULTIDEVICE, 1, 0, 0)
So what is the purpose of this interface?
Best Regards,
Abdalla