ISIS Logo
INSTETC
INSTETC IOC
Macros | Functions | Variables
instetcDriver.cpp File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <math.h>
#include <exception>
#include <iostream>
#include <sstream>
#include <fstream>
#include <sys/stat.h>
#include <list>
#include <algorithm>
#include <iterator>
#include <vector>
#include <epicsTypes.h>
#include <epicsTime.h>
#include <epicsThread.h>
#include <epicsString.h>
#include <epicsTimer.h>
#include <epicsMutex.h>
#include <epicsEvent.h>
#include <iocsh.h>
#include "instetcDriver.h"
#include <macLib.h>
#include <epicsGuard.h>
#include <epicsExport.h>

Go to the source code of this file.

Macros

#define LEN_BUFFER   10024 /* needs to match size if char waveform in DB file */
 

Functions

static int instetcConfigure (const char *portName, const char *logFilePath, const int lineCount, const double pollingPeriod)
 EPICS iocsh callable function to call constructor of lvDCOMInterface(). More...
 
static void initCallFunc (const iocshArgBuf *args)
 
static void instetcRegister (void)
 
 epicsExportRegistrar (instetcRegister)
 

Variables

static const char * driverName ="instetcDriver"
 
static const iocshArg initArg0 = { "portName", iocshArgString}
 The name of the asyn driver port we will create. More...
 
static const iocshArg initArg1 = { "logFilePath", iocshArgString}
 The path to the file we will monitor. More...
 
static const iocshArg initArg2 = { "lineCount", iocshArgInt}
 The number of log file lines to broadcast. More...
 
static const iocshArg initArg3 = { "pollingPeriod", iocshArgDouble}
 The number of seconds between file reads. More...
 
static const iocshArg *const initArgs [] = { &initArg0, &initArg1, &initArg2, &initArg3 }
 
static const iocshFuncDef initFuncDef = {"instetcConfigure", sizeof(initArgs) / sizeof(iocshArg*), initArgs}
 

Macro Definition Documentation

#define LEN_BUFFER   10024 /* needs to match size if char waveform in DB file */

Definition at line 129 of file instetcDriver.cpp.

Referenced by instetcDriver::pollerThread().

Function Documentation

epicsExportRegistrar ( instetcRegister  )
static void initCallFunc ( const iocshArgBuf *  args)
static

Definition at line 182 of file instetcDriver.cpp.

References instetcConfigure().

Referenced by instetcRegister().

static int instetcConfigure ( const char *  portName,
const char *  logFilePath,
const int  lineCount,
const double  pollingPeriod 
)
static

EPICS iocsh callable function to call constructor of lvDCOMInterface().

Parameters
[in]portNameThe name of the asyn driver port we will create.

Definition at line 157 of file instetcDriver.cpp.

Referenced by initCallFunc().

static void instetcRegister ( void  )
static

Definition at line 187 of file instetcDriver.cpp.

References initCallFunc().

Variable Documentation

const char* driverName ="instetcDriver"
static

Definition at line 33 of file instetcDriver.cpp.

Referenced by instetcDriver::instetcDriver().

const iocshArg initArg0 = { "portName", iocshArgString}
static

The name of the asyn driver port we will create.

Definition at line 173 of file instetcDriver.cpp.

const iocshArg initArg1 = { "logFilePath", iocshArgString}
static

The path to the file we will monitor.

Definition at line 174 of file instetcDriver.cpp.

const iocshArg initArg2 = { "lineCount", iocshArgInt}
static

The number of log file lines to broadcast.

Definition at line 175 of file instetcDriver.cpp.

const iocshArg initArg3 = { "pollingPeriod", iocshArgDouble}
static

The number of seconds between file reads.

Definition at line 176 of file instetcDriver.cpp.

const iocshArg* const initArgs[] = { &initArg0, &initArg1, &initArg2, &initArg3 }
static

Definition at line 178 of file instetcDriver.cpp.

const iocshFuncDef initFuncDef = {"instetcConfigure", sizeof(initArgs) / sizeof(iocshArg*), initArgs}
static

Definition at line 180 of file instetcDriver.cpp.

Copyright © 2013 Science and Technology Facilities Council | Generated by   doxygen 1.8.5