6 #include <mbboRecord.h> 12 #include <epicsExport.h> 20 init_bo_src_inp(boRecord* pbo) {
23 if(pbo->out.type != VME_IO) {
24 errlogPrintf(
"ERROR: Hardware link not VME_IO : %s\n", pbo->name);
25 return(S_db_badField);
29 std::string parm(pbo->out.value.vmeio.parm);
32 }
catch(std::runtime_error& e) {
33 errlogPrintf(
"ERROR: %s : %s\n", e.what(), pbo->name);
35 }
catch(std::exception& e) {
36 errlogPrintf(
"ERROR: %s : %s\n", e.what(), pbo->name);
45 write_bo_src_inp(boRecord* pbo) {
51 throw std::runtime_error(
"Device pvt field not initialized");
53 inp->
setDbusMap(pbo->out.value.vmeio.signal, pbo->val != 0);
54 }
catch(std::runtime_error& e) {
55 errlogPrintf(
"ERROR: %s : %s\n", e.what(), pbo->name);
57 }
catch(std::exception& e) {
58 errlogPrintf(
"ERROR: %s : %s\n", e.what(), pbo->name);
73 (DEVSUPFUN)init_bo_src_inp,
75 (DEVSUPFUN)write_bo_src_inp,
static Object * getObject(const std::string &name)
common_dset devBoEvgDbusSrcInp
epicsExportAddress(dset, devBoEvgDbusSrcInp)