#include #include #include #include #ifdef DEBUG_PRINT #include /* for DEBUGPRINT */ #endif #include "drvPac.h" #ifdef DEBUG_PRINT int dbSubPacFlag = 4; #endif long dbSubPacInit(subRecord *precord) { return OK; } long dbSubPacUpdateFPGA(subRecord *precord) { int rc; int type = (int)(precord->a); #ifdef DEBUG_PRINT DEBUGPRINT(DP_INFO, dbSubPacFlag, ("dbSubPacUpdateFPGA: %s updating fpga for input type %d\n", precord->name, type)); #endif rc = pacUpdateFPGA(type); #ifdef DEBUG_PRINT DEBUGPRINT(DP_INFO, dbSubPacFlag, ("dbSubPacUpdateFPGA: Record %s with input %d\n", precord->name, (int)precord->a)); #endif precord->udf = 0; return(0); } /* Register these symbols for use by IOC code: */ #ifdef DEBUG_PRINT epicsExportAddress(int, dbSubPacFlag); #endif epicsRegisterFunction(dbSubPacInit); epicsRegisterFunction(dbSubPacUpdateFPGA);