ISIS Logo
ECLAB
An EPICS support module to export potentiostat values as process variables
Functions | Variables
ECLabDriver.cpp File Reference

Implementation of ECLabDriver class and ECLabConfigure() iocsh command. More...

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <math.h>
#include <exception>
#include <iostream>
#include <map>
#include <vector>
#include <fstream>
#include <algorithm>
#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 <macLib.h>
#include "BLFunctions.h"
#include "ECLabInterface.h"
#include "ECLabDriver.h"
#include "ECLabParams.h"
#include <epicsExport.h>

Go to the source code of this file.

Functions

int ECLabConfigure (const char *portName, const char *ip)
 The function is registered via EClabRegister(). More...
 
static void initCallFunc (const iocshArgBuf *args)
 
static void ECLabRegister (void)
 Register new commands with EPICS IOC shell. More...
 
 epicsExportRegistrar (ECLabRegister)
 

Variables

static const char * driverName ="ECLabDriver"
 Name of driver for use in message printing. More...
 
static const iocshArg initArg0 = { "portName", iocshArgString}
 A name for the asyn driver instance we will create - used to refer to it from EPICS DB files. More...
 
static const iocshArg initArg1 = { "ip", iocshArgString}
 IP address used. More...
 
static const iocshArg *const initArgs [] = { &initArg0, &initArg1 }
 
static const iocshFuncDef initFuncDef = {"ECLabConfigure", sizeof(initArgs) / sizeof(iocshArg*), initArgs}
 

Detailed Description

Implementation of ECLabDriver class and ECLabConfigure() iocsh command.

Author
Freddie Akeroyd, STFC ISIS Facility, GB

Definition in file ECLabDriver.cpp.

Function Documentation

int ECLabConfigure ( const char *  portName,
const char *  ip 
)

The function is registered via EClabRegister().

Parameters
[in]portNameA name for the asyn driver instance we will create - used to refer to it from EPICS DB files.

Definition at line 636 of file ECLabDriver.cpp.

Referenced by initCallFunc().

static void ECLabRegister ( void  )
static

Register new commands with EPICS IOC shell.

Definition at line 664 of file ECLabDriver.cpp.

References initCallFunc().

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

Definition at line 658 of file ECLabDriver.cpp.

References ECLabConfigure().

Referenced by ECLabRegister().

Variable Documentation

const char* driverName ="ECLabDriver"
static

Name of driver for use in message printing.

Definition at line 41 of file ECLabDriver.cpp.

Referenced by ECLabDriver::ECLabDriver(), ECLabDriver::writeFloat64(), ECLabDriver::writeInt32(), and ECLabDriver::writeOctet().

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

A name for the asyn driver instance we will create - used to refer to it from EPICS DB files.

Definition at line 652 of file ECLabDriver.cpp.

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

IP address used.

Definition at line 653 of file ECLabDriver.cpp.

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

Definition at line 654 of file ECLabDriver.cpp.

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

Definition at line 656 of file ECLabDriver.cpp.

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