-
Notifications
You must be signed in to change notification settings - Fork 2
aSub records
Tom Willemsen edited this page Jun 22, 2018
·
28 revisions
aSub records are useful when the output of a device is too complicated to be reasonably parsed in .protocol files.
Declare a .dbd
file with the names of all the functions declared in the C
file which will be called by EPICS.
function(function_name)
function(another_function_name)
[...]
Need to define a C function which will be called by the aSub record:
static long function_name(aSubRecord *prec)
{
return 0;
}
Need to tie in this function to the epics database with a call to epicsRegisterFunction
:
epicsRegisterFunction(function_name);