1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 <2025> | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 <2025> |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: write and read functions in asyn |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, 高振华 <gaozh at ihep.ac.cn> |
Date: | Fri, 11 Apr 2025 03:23:41 +0000 |
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
|