18 #include "dbAccessDefs.h" 22 #define DEVSUPNAME "devBiDbState" 24 static long add_record (
struct dbCommon *pdbc)
26 biRecord *
prec = (biRecord *) pdbc;
28 if (
INST_IO != prec->inp.type) {
29 recGblRecordError(S_db_badField, (
void *) prec,
DEVSUPNAME ": Illegal INP field");
30 return(S_db_badField);
33 if (!(prec->dpvt = dbStateFind(prec->inp.value.instio.string)) &&
34 prec->inp.value.instio.string &&
35 '\0' != *prec->inp.value.instio.string) {
37 prec->inp.value.instio.string);
38 prec->dpvt = dbStateCreate(prec->inp.value.instio.string);
43 static long del_record (
struct dbCommon *pdbc)
45 biRecord *
prec = (biRecord *) pdbc;
50 static struct dsxt myDsxt = {
55 static long init(
int pass)
62 static long read_bi(biRecord *
prec)
65 prec->val = dbStateGet(prec->dpvt);
void devExtend(dsxt *pdsxt)
long(* add_record)(struct dbCommon *precord)
long(* del_record)(struct dbCommon *precord)
epicsExportAddress(dset, devBiDbState)
int errlogSevPrintf(errlogSevEnum severity, const char *pFormat,...)