24 #include "eventRecord.h" 29 static long read_event(eventRecord *
prec);
39 eventRecord *
prec = (eventRecord *)pcommon;
41 if (recGblInitConstantLink(&prec->inp,
DBF_STRING, prec->val))
52 static long readLocked(
struct link *pinp,
void *vvt)
57 if (!status && pvt->
ptime)
58 dbGetTimeStamp(pinp, pvt->
ptime);
63 static long read_event(eventRecord *
prec)
68 if (dbLinkIsConstant(&prec->inp))
71 vt.
ptime = (dbLinkIsConstant(&prec->tsel) &&
74 status = dbLinkDoLocked(&prec->inp, readLocked, &vt);
75 if (status == S_db_noLSET)
76 status = readLocked(&prec->inp, &vt);
79 if (strcmp(vt.
newEvent, prec->val) != 0) {
81 prec->epvt = eventNameToHandle(prec->val);
char newEvent[MAX_STRING_SIZE]
epicsExportAddress(dset, devEventSoft)
Miscellaneous macro definitions.
#define epicsTimeEventDeviceTime
EPICS time stamp, for use from C code.