|
NINetVar
An EPICS support module to export National Instruments Network Shared Variables as process variables
|
EPICS Asyn port driver class. More...
#include <NINetVarDriver.h>
Public Member Functions | |
| NINetVarDriver (NINetVarInterface *netvarint, int poll_ms, const char *portName) | |
| Constructor for the NINetVarDriver class. More... | |
| virtual asynStatus | writeInt32 (asynUser *pasynUser, epicsInt32 value) |
| virtual asynStatus | writeFloat64 (asynUser *pasynUser, epicsFloat64 value) |
| write a float to the driver More... | |
| virtual asynStatus | writeOctet (asynUser *pasynUser, const char *value, size_t maxChars, size_t *nActual) |
| virtual asynStatus | writeInt8Array (asynUser *pasynUser, epicsInt8 *value, size_t nElements) |
| virtual asynStatus | writeInt16Array (asynUser *pasynUser, epicsInt16 *value, size_t nElements) |
| virtual asynStatus | writeInt32Array (asynUser *pasynUser, epicsInt32 *value, size_t nElements) |
| virtual asynStatus | writeFloat32Array (asynUser *pasynUser, epicsFloat32 *value, size_t nElements) |
| virtual asynStatus | writeFloat64Array (asynUser *pasynUser, epicsFloat64 *value, size_t nElements) |
| virtual asynStatus | readFloat32Array (asynUser *pasynUser, epicsFloat32 *value, size_t nElements, size_t *nIn) |
| virtual asynStatus | readFloat64Array (asynUser *pasynUser, epicsFloat64 *value, size_t nElements, size_t *nIn) |
| virtual asynStatus | readInt8Array (asynUser *pasynUser, epicsInt8 *value, size_t nElements, size_t *nIn) |
| virtual asynStatus | readInt16Array (asynUser *pasynUser, epicsInt16 *value, size_t nElements, size_t *nIn) |
| virtual asynStatus | readInt32Array (asynUser *pasynUser, epicsInt32 *value, size_t nElements, size_t *nIn) |
| virtual void | report (FILE *fp, int details) |
| EPICS driver report function for iocsh dbior command. More... | |
| int | pollTime () |
| void | updateValues () |
| void | shuttingDown (bool state) |
| bool | shuttingDown () |
Static Public Member Functions | |
| static void | epicsExitFunc (void *arg) |
Private Member Functions | |
| template<typename T > | |
| asynStatus | writeValue (asynUser *pasynUser, const char *functionName, T value) |
| write a value to the driver More... | |
| template<typename T > | |
| asynStatus | writeArrayValue (asynUser *pasynUser, const char *functionName, T *value, size_t nElements) |
| write an array to the driver More... | |
| template<typename T > | |
| asynStatus | readArrayValue (asynUser *pasynUser, const char *functionName, T *value, size_t nElements, size_t *nIn) |
Static Private Member Functions | |
| static void | NINetVarTask (void *arg) |
Private Attributes | |
| NINetVarInterface * | m_netvarint |
| int | m_poll_ms |
| bool | m_shutting_down |
EPICS Asyn port driver class.
Definition at line 32 of file NINetVarDriver.h.
| NINetVarDriver::NINetVarDriver | ( | NINetVarInterface * | netvarint, |
| int | poll_ms, | ||
| const char * | portName | ||
| ) |
Constructor for the NINetVarDriver class.
Calls constructor for the asynPortDriver base class and sets up driver parameters.
| [in] | netvarint | interface pointer created by NINetVarConfigure() |
| [in] | poll_ms | The name of the asyn driver port we will create. |
| [in] | portName | poll period (ms) |
Definition at line 279 of file NINetVarDriver.cpp.
References NINetVarInterface::createParams(), driverName, epicsExitFunc(), m_netvarint, and NINetVarTask().
|
static |
Definition at line 311 of file NINetVarDriver.cpp.
References shuttingDown().
Referenced by NINetVarDriver().
|
staticprivate |
Definition at line 322 of file NINetVarDriver.cpp.
References pollTime(), registerStructuredExceptionHandler(), shuttingDown(), and updateValues().
Referenced by NINetVarDriver().
|
inline |
|
private |
Definition at line 204 of file NINetVarDriver.cpp.
References driverName, m_netvarint, NINetVarInterface::readArrayValue(), and registerStructuredExceptionHandler().
Referenced by readFloat32Array(), readFloat64Array(), readInt16Array(), readInt32Array(), and readInt8Array().
|
virtual |
Definition at line 183 of file NINetVarDriver.cpp.
References readArrayValue().
|
virtual |
Definition at line 178 of file NINetVarDriver.cpp.
References readArrayValue().
|
virtual |
Definition at line 193 of file NINetVarDriver.cpp.
References readArrayValue().
|
virtual |
Definition at line 188 of file NINetVarDriver.cpp.
References readArrayValue().
|
virtual |
Definition at line 198 of file NINetVarDriver.cpp.
References readArrayValue().
|
virtual |
EPICS driver report function for iocsh dbior command.
Definition at line 259 of file NINetVarDriver.cpp.
References m_netvarint, and NINetVarInterface::report().
|
inline |
Definition at line 58 of file NINetVarDriver.h.
References m_shutting_down.
Referenced by epicsExitFunc(), and NINetVarTask().
|
inline |
Definition at line 59 of file NINetVarDriver.h.
References m_shutting_down.
|
inline |
Definition at line 53 of file NINetVarDriver.h.
References m_netvarint, and NINetVarInterface::updateValues().
Referenced by NINetVarTask().
|
private |
write an array to the driver
| T | Data type of value |
| [in] | pasynUser | pointer to AsynUser instance |
| [in] | functionName | Name of overloaded ASYN driver function that called us, used for diagnostics |
| [in] | value | Value to write |
| [in] | nElements | number of array elements |
Definition at line 103 of file NINetVarDriver.cpp.
References driverName, m_netvarint, registerStructuredExceptionHandler(), and NINetVarInterface::setArrayValue().
Referenced by writeFloat32Array(), writeFloat64Array(), writeInt16Array(), writeInt32Array(), and writeInt8Array().
|
virtual |
Definition at line 253 of file NINetVarDriver.cpp.
References writeArrayValue().
|
virtual |
write a float to the driver
| [in] | pasynUser | pointer to AsynUser instance |
| [in] | value | Value to write |
Definition at line 134 of file NINetVarDriver.cpp.
References writeValue().
|
virtual |
Definition at line 248 of file NINetVarDriver.cpp.
References writeArrayValue().
|
virtual |
Definition at line 238 of file NINetVarDriver.cpp.
References writeArrayValue().
|
virtual |
Definition at line 140 of file NINetVarDriver.cpp.
References writeValue().
|
virtual |
Definition at line 233 of file NINetVarDriver.cpp.
References writeArrayValue().
|
virtual |
Definition at line 243 of file NINetVarDriver.cpp.
References writeArrayValue().
|
virtual |
Definition at line 146 of file NINetVarDriver.cpp.
References driverName, m_netvarint, registerStructuredExceptionHandler(), and NINetVarInterface::setValue().
|
private |
write a value to the driver
| T | data type of value |
| [in] | pasynUser | pointer to AsynUser instance |
| [in] | functionName | Name of overloaded ASYN driver function that called us, used for diagnostics |
| [in] | value | Value to write |
Definition at line 68 of file NINetVarDriver.cpp.
References convertToString(), driverName, m_netvarint, registerStructuredExceptionHandler(), and NINetVarInterface::setValue().
Referenced by writeFloat64(), and writeInt32().
|
private |
Definition at line 62 of file NINetVarDriver.h.
Referenced by NINetVarDriver(), readArrayValue(), report(), updateValues(), writeArrayValue(), writeOctet(), and writeValue().
|
private |
Definition at line 63 of file NINetVarDriver.h.
Referenced by pollTime().
|
private |
Definition at line 64 of file NINetVarDriver.h.
Referenced by shuttingDown().
1.8.8