#ifndef KNOB_CA_H #define KNOB_CA_H #ifdef __cplusplus extern "C" { #endif #include #include /* Structure representing one channel * some copied from base catools/tools_lib */ typedef struct { char name[MAX_NAME_LENGTH]; chid chid; long dbfType; long dbrType; unsigned long nElems; /* True length of data in value */ unsigned long reqElems; /* Requested length of data */ int status; /* Used by CA */ int cstatus; /* Our internal status, used for create_channel and create_subscription */ void *value; /* DBR_TIME data structure, this is what we subscribe to for .VAL */ void *info; /* DBR_CTRL data structure for EGU, limits, etc. Larger struct so we only get this once */ int newinfo; /* Flag to indicate updated channel info */ int newvalue; /* Flag to indicate updated channel value */ long dbfTypeInfo; long dbrTypeInfo; int badtype; /* Flag to indicate data type is not supported */ epicsMutexId mtx; } cachan_ts; #ifdef __cplusplus }; #endif #endif /* KNOB_CA_H guard macro */