/*============================================================================= Name: ffGlob.h Abs: This include file contains external definitions of GLOBAL variables for the the ff-aware IOC Auth: xx-jun-2004, diane fairley (DFAIRLEY): created Rev: 02 feb 2005, Debbie Rogind -----------------------------------------------------------------------------*/ #include "copyright_SLAC.h" /* SLAC copyright comments */ /*----------------------------------------------------------------------------- Mod: (newest to oldest) 25-apr-2006 added ffGetLOCA2Name, ffCpyLOCA2Name (dfairley) 25-Aug-2004 Added DBNODES (drogind) DD-MMM-YYYY, My Name: Changed such and such to so and so. etc. etc. DD-MMM-YYYY, Your Name: More changes ... The ordering of the revision history should be such that the NEWEST changes are at the HEAD of the list. =============================================================================*/ #ifndef ffGlob_H #define ffGlob_H /* c includes */ #include /* clock_gettime, struct timespec */ /* epics includes */ #include /* epicsEventId */ #include /* IOSCANPVT */ #ifdef __rtems__ #include #endif /* ffIOC includes */ #include "ffStructs.h" /* ffThread_ts, ffSocket_ts, etc. */ #include "ffTimer.h" /* ffTimer_ts */ /* global variables to ioc declared global in ffGlob.c */ extern ffThread_ts ffThreads_as[MAX_THREADS]; /* global runtime data and diagnostics struct */ extern loopRT_ts loopRT_as[MAX_LOOPS]; /* list of POIs for the fiducial funtion to match against */ extern ffPOIs_ts ffPOIs_s; /* each entry initialized by the loop thread */ /*list of events that must be fired for this fiducial */ extern ffWakupEvents_ts ffWakeupEvents_s; extern ffTimer_ts ffTimer_s; extern unsigned long volatile ffDelay_in_usec; /*extern unsigned int ffClockFreq;*/ extern char ffIocName_a[5]; extern void * ffSmMsgPvt_p; /* pointer to small-message pool */ extern void * ffLrgMsgPvt_p; /* pointer to large-message pool */ extern execDiags_ts execDiagnostics_s; extern epicsBoolean dbExists; /* function prototypes */ epicsTimeStamp timeDiff(epicsTimeStamp start, epicsTimeStamp end); epicsTimeStamp timeAdd(epicsTimeStamp start, epicsTimeStamp end); epicsThreadId ffThreadGetTid(const ffThread_te thrd_e); epicsMessageQueueId ffThreadGetMqId(const ffThread_te thrd_e); void ffGlobCpyIOCName(void); char* ffGetIOCName(void); void ffSetNotify(const epicsBoolean val); epicsBoolean ffGetNotify (void); void ffGlobInitGlobals(void); void ffGlobInitDevSupport(void); void ffGlobCpyLOCAName(void); char* ffGetLOCAName(void); void ffGlobCpyLOCA2Name(void); char* ffGetLOCA2Name(void); void ffGlobCpySpareStartLoop(void); char* ffGetSpareStartLoop(void); void ffGlobCpySpareStopLoop(void); char* ffGetSpareStopLoop(void); #endif /*ffGlob_H*/