|
NINetVar
An EPICS support module to export National Instruments Network Shared Variables as process variables
|
Implementation of NINetVarDriver class and NINetVarConfigure() 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 <windows.h>#include "convertToString.h"#include "NINetVarInterface.h"#include "NINetVarDriver.h"#include <epicsExport.h>Go to the source code of this file.
Functions | |
| static void | seTransFunction (unsigned int u, EXCEPTION_POINTERS *pExp) |
| Function to translate a Win32 structured exception into a standard C++ exception. More... | |
| static void | registerStructuredExceptionHandler () |
| Register a handler for Win32 strcutured exceptions. This needs to be done on a per thread basis. More... | |
| int | NINetVarConfigure (const char *portName, const char *configSection, const char *configFile, int pollPeriod, int options) |
| EPICS iocsh callable function to call constructor of NINetVarInterface(). More... | |
| static void | initCallFunc (const iocshArgBuf *args) |
| static void | NINetVarRegister (void) |
| Register new commands with EPICS IOC shell. More... | |
| epicsExportRegistrar (NINetVarRegister) | |
Variables | |
| static const char * | driverName ="NINetVarDriver" |
| 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 NINetVarOptions enum More... | |
| static const iocshArg *const | initArgs [] |
| static const iocshFuncDef | initFuncDef = {"NINetVarConfigure", sizeof(initArgs) / sizeof(iocshArg*), initArgs} |
Implementation of NINetVarDriver class and NINetVarConfigure() iocsh command.
Definition in file NINetVarDriver.cpp.
| epicsExportRegistrar | ( | NINetVarRegister | ) |
|
static |
Definition at line 388 of file NINetVarDriver.cpp.
References NINetVarConfigure().
Referenced by NINetVarRegister().
| int NINetVarConfigure | ( | const char * | portName, |
| const char * | configSection, | ||
| const char * | configFile, | ||
| int | pollPeriod, | ||
| int | options | ||
| ) |
EPICS iocsh callable function to call constructor of NINetVarInterface().
The function is registered via NINetVarRegister().
| [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 NINetVarOptions enum |
Definition at line 347 of file NINetVarDriver.cpp.
References registerStructuredExceptionHandler().
Referenced by initCallFunc().
|
static |
Register new commands with EPICS IOC shell.
Definition at line 394 of file NINetVarDriver.cpp.
References initCallFunc().
|
static |
Register a handler for Win32 strcutured exceptions. This needs to be done on a per thread basis.
Definition at line 57 of file NINetVarDriver.cpp.
References seTransFunction().
Referenced by NINetVarConfigure(), NINetVarDriver::NINetVarTask(), NINetVarDriver::readArrayValue(), NINetVarDriver::writeArrayValue(), NINetVarDriver::writeOctet(), and NINetVarDriver::writeValue().
|
static |
Function to translate a Win32 structured exception into a standard C++ exception.
This is registered via registerStructuredExceptionHandler()
Definition at line 51 of file NINetVarDriver.cpp.
Referenced by registerStructuredExceptionHandler().
|
static |
Name of driver for use in message printing.
Definition at line 47 of file NINetVarDriver.cpp.
Referenced by NINetVarDriver::NINetVarDriver(), NINetVarDriver::readArrayValue(), NINetVarDriver::writeArrayValue(), NINetVarDriver::writeOctet(), and NINetVarDriver::writeValue().
|
static |
The name of the asyn driver port we will create.
Definition at line 374 of file NINetVarDriver.cpp.
|
static |
section name of configFile to use to configure this asyn port
Definition at line 375 of file NINetVarDriver.cpp.
|
static |
Path to the XML input file to load configuration information from.
Definition at line 376 of file NINetVarDriver.cpp.
|
static |
poll period (ms)
Definition at line 377 of file NINetVarDriver.cpp.
|
static |
options as per NINetVarOptions enum
Definition at line 378 of file NINetVarDriver.cpp.
|
static |
Definition at line 380 of file NINetVarDriver.cpp.
|
static |
Definition at line 386 of file NINetVarDriver.cpp.
1.8.8