Those functions are implemented by the asyn driver. asynInt32.h defines the interface, but the implementation is done in each driver.
They are analogous to C++ pure virtual functions that each derived class must implement.
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of 高振华 via Tech-talk <tech-talk at aps.anl.gov>
Sent: Thursday, April 10, 2025 8:46 PM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: write and read functions in asyn
Hi all,
I saw the prototype declarations for the write and read functions in this. h file(asyn/asyn/interfaces/asynInt32.h),
But I couldn't find the bodies of the write and read functions,
Does anyone know where it is?
typedef struct asynInt32 {
asynStatus (*write)(void *drvPvt, asynUser *pasynUser, epicsInt32 value);
asynStatus (*read)(void *drvPvt, asynUser *pasynUser, epicsInt32 *value);
asynStatus (*getBounds)(void *drvPvt, asynUser *pasynUser,
epicsInt32 *low, epicsInt32 *high);
asynStatus (*registerInterruptUser)(void *drvPvt,asynUser *pasynUser,
interruptCallbackInt32 callback, void *userPvt,
void **registrarPvt);
asynStatus (*cancelInterruptUser)(void *drvPvt, asynUser *pasynUser,
void *registrarPvt);
} asynInt32;
Thanks,
Gao Zhenhua
--
BSRF
Email:gaozh at ihep.ac.cn
|