11 #include <mbbiDirectRecord.h> 12 #include <mbboDirectRecord.h> 21 static long read_mbbidir_from_integer(mbbiDirectRecord* prec)
23 if (!prec->dpvt) {(void)recGblSetSevr(prec, COMM_ALARM, INVALID_ALARM);
return -1; }
29 scopedLock<mrf::Object> g(*priv->
O);
30 prec->rval = priv->
P->get();
34 }
CATCH(S_dev_badArgument)
40 (&add_record_inp<mbbiDirectRecord,epicsUInt32>),
43 &read_mbbidir_from_integer<epicsUInt32>,
49 (&add_record_inp<mbbiDirectRecord,epicsUInt16>),
52 &read_mbbidir_from_integer<epicsUInt16>,
59 static long write_mbbodir_from_integer(mbboDirectRecord* prec)
61 if (!prec->dpvt) {(void)recGblSetSevr(prec, COMM_ALARM, INVALID_ALARM);
return -1; }
67 scopedLock<mrf::Object> g(*priv->
O);
68 priv->
P->set(prec->rval);
70 prec->rbv = priv->
P->get();
74 }
CATCH(S_dev_badArgument)
79 (&add_record_out<mbboDirectRecord,epicsUInt32>),
82 &write_mbbodir_from_integer<epicsUInt32>,
89 (&add_record_out<mbboDirectRecord,epicsUInt16>),
92 &write_mbbodir_from_integer<epicsUInt16>,
95 #include <epicsExport.h>
OBJECT_DSET(MBBIDirFromUINT32,(&add_record_inp< mbbiDirectRecord, epicsUInt32 >), &del_record_property, &init_record_empty, &read_mbbidir_from_integer< epicsUInt32 >, NULL)
OBJECT_DSET_EXPORT(MBBIDirFromUINT32)
mrf::auto_ptr< mrf::property< T > > P