Define epicsExportAddress

Define Documentation

epicsExportAddress(typ, obj)

Declare an object for exporting.

The epicsExportAddress() macro must be used to declare any IOC object that is also named in a DBD file. For example a record support source file must contain a statement like:

epicsExportAddress(rset, myRSET);

A device support source file must contain a statement like:

epicsExportAddress(dset, devMyName);
Note that the typ parameter for a device support entry table must be spelled dset even if the obj was actually declared as some other type, say using typed_dset .

A driver support source file must contain a statement like:

epicsExportAddress(drvet, drvName);

A variable named in a DBD variable statement must be declared with:

int myDebug = 0;
epicsExportAddress(int, myDebug);
Only int and double are currently supported for DBD variables.

Note

C++ code needs to wrap with

extern "C" { } 

Parameters
  • typ – Object’s data type.

  • obj – Object’s name.