NetShrVar
An EPICS support module to export National Instruments Network Shared Variables as process variables
|
Implementation of NetShrVarDriver class and NetShrVarConfigure() iocsh command. More...
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <math.h>
#include <exception>
#include <iostream>
#include <shareLib.h>
#include <epicsTypes.h>
#include <epicsTime.h>
#include <epicsThread.h>
#include <epicsString.h>
#include <epicsTimer.h>
#include <epicsMutex.h>
#include <epicsEvent.h>
#include <errlog.h>
#include <iocsh.h>
#include "convertToString.h"
#include "NetShrVarInterface.h"
#include "NetShrVarDriver.h"
#include <epicsExport.h>
Go to the source code of this file.
Functions | |
int | NetShrVarConfigure (const char *portName, const char *configSection, const char *configFile, int pollPeriod, int options) |
EPICS iocsh callable function to call constructor of NetShrVarInterface(). More... | |
static void | initCallFunc (const iocshArgBuf *args) |
static void | NetShrVarRegister (void) |
Register new commands with EPICS IOC shell. More... | |
epicsExportRegistrar (NetShrVarRegister) | |
Variables | |
static const char * | driverName ="NetShrVarDriver" |
Name of driver for use in message printing. More... | |
static const iocshArg | initArg0 = { "portName", iocshArgString} |
The name of the asyn driver port we will create. More... | |
static const iocshArg | initArg1 = { "configSection", iocshArgString} |
section name of configFile to use to configure this asyn port More... | |
static const iocshArg | initArg2 = { "configFile", iocshArgString} |
Path to the XML input file to load configuration information from. More... | |
static const iocshArg | initArg3 = { "pollPeriod", iocshArgInt} |
poll period (ms) More... | |
static const iocshArg | initArg4 = { "options", iocshArgInt} |
options as per NetShrVarOptions enum More... | |
static const iocshArg *const | initArgs [] |
static const iocshFuncDef | initFuncDef = {"NetShrVarConfigure", sizeof(initArgs) / sizeof(iocshArg*), initArgs} |
Implementation of NetShrVarDriver class and NetShrVarConfigure() iocsh command.
Definition in file NetShrVarDriver.cpp.
epicsExportRegistrar | ( | NetShrVarRegister | ) |
|
static |
Definition at line 362 of file NetShrVarDriver.cpp.
References NetShrVarConfigure().
Referenced by NetShrVarRegister().
int NetShrVarConfigure | ( | const char * | portName, |
const char * | configSection, | ||
const char * | configFile, | ||
int | pollPeriod, | ||
int | options | ||
) |
EPICS iocsh callable function to call constructor of NetShrVarInterface().
The function is registered via NetShrVarRegister().
[in] | portName | The name of the asyn driver port we will create. |
[in] | configSection | section name of configFile to use to configure this asyn port |
[in] | configFile | Path to the XML input file to load configuration information from. |
[in] | pollPeriod | poll period (ms) |
[in] | options | options as per NetShrVarOptions enum |
Definition at line 322 of file NetShrVarDriver.cpp.
Referenced by initCallFunc().
|
static |
Register new commands with EPICS IOC shell.
Definition at line 368 of file NetShrVarDriver.cpp.
References initCallFunc().
|
static |
Name of driver for use in message printing.
Definition at line 40 of file NetShrVarDriver.cpp.
Referenced by NetShrVarDriver::NetShrVarDriver(), NetShrVarDriver::readArrayValue(), NetShrVarDriver::writeArrayValue(), NetShrVarDriver::writeOctet(), and NetShrVarDriver::writeValue().
|
static |
The name of the asyn driver port we will create.
Definition at line 348 of file NetShrVarDriver.cpp.
|
static |
section name of configFile to use to configure this asyn port
Definition at line 349 of file NetShrVarDriver.cpp.
|
static |
Path to the XML input file to load configuration information from.
Definition at line 350 of file NetShrVarDriver.cpp.
|
static |
poll period (ms)
Definition at line 351 of file NetShrVarDriver.cpp.
|
static |
options as per NetShrVarOptions enum
Definition at line 352 of file NetShrVarDriver.cpp.
|
static |
Definition at line 354 of file NetShrVarDriver.cpp.
|
static |
Definition at line 360 of file NetShrVarDriver.cpp.