ISIS Logo
ISISBEAM
ISIS Beam Information
Macros | Functions | Variables
isisbeamDriver.cpp File Reference

Driver for ISISBEAM. More...

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <math.h>
#include <exception>
#include <iostream>
#include <map>
#include <string>
#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 "isisbeamDriver.h"
#include <macLib.h>
#include <epicsGuard.h>
#include <epicsExport.h>
#include "1st_nd_post.h"

Go to the source code of this file.

Macros

#define MAX_ASYN_BL_PARAMS   300
 needs to be large enough to cover beamline parameters created dynamically in isisbeamDriver() More...
 
#define LEN_BUFFER   10024
 

Functions

static char * ts2_shutter_status (int stat)
 
static char * ts2_shutter_mode (int stat)
 
static char * ts2_vat_status (int stat)
 
static char * ts1_shutter_status (int stat, int beamline)
 
static void initCOM (void *)
 
int isisbeamConfigure (const char *portName)
 EPICS iocsh callable function to call constructor of isisbeamDriver(). More...
 
static void initCallFunc (const iocshArgBuf *args)
 
static void isisbeamRegister (void)
 
 epicsExportRegistrar (isisbeamRegister)
 

Variables

static epicsThreadOnceId onceId = EPICS_THREAD_ONCE_INIT
 
static const char * driverName ="isisbeamDriver"
 
static const iocshArg initArg0 = { "portName", iocshArgString}
 The name of the asyn driver port we will create. More...
 
static const iocshArg *const initArgs [] = { &initArg0 }
 
static const iocshFuncDef initFuncDef = {"isisbeamConfigure", sizeof(initArgs) / sizeof(iocshArg*), initArgs}
 

Detailed Description

Driver for ISISBEAM.

Definition in file isisbeamDriver.cpp.

Macro Definition Documentation

#define LEN_BUFFER   10024

Definition at line 252 of file isisbeamDriver.cpp.

Referenced by isisbeamDriver::pollerThread().

#define MAX_ASYN_BL_PARAMS   300

needs to be large enough to cover beamline parameters created dynamically in isisbeamDriver()

Definition at line 157 of file isisbeamDriver.cpp.

Function Documentation

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

Definition at line 567 of file isisbeamDriver.cpp.

References isisbeamConfigure().

Referenced by isisbeamRegister().

static void initCOM ( void *  )
static

Definition at line 150 of file isisbeamDriver.cpp.

int isisbeamConfigure ( const char *  portName)

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

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

Definition at line 545 of file isisbeamDriver.cpp.

Referenced by initCallFunc().

static void isisbeamRegister ( void  )
static

Definition at line 572 of file isisbeamDriver.cpp.

References initCallFunc().

static char* ts1_shutter_status ( int  stat,
int  beamline 
)
static

Definition at line 136 of file isisbeamDriver.cpp.

Referenced by isisbeamDriver::pollerThread().

static char* ts2_shutter_mode ( int  stat)
static

Definition at line 61 of file isisbeamDriver.cpp.

Referenced by isisbeamDriver::pollerThread().

static char* ts2_shutter_status ( int  stat)
static

Definition at line 34 of file isisbeamDriver.cpp.

Referenced by isisbeamDriver::pollerThread().

static char* ts2_vat_status ( int  stat)
static

Definition at line 109 of file isisbeamDriver.cpp.

Referenced by isisbeamDriver::pollerThread().

Variable Documentation

const char* driverName ="isisbeamDriver"
static

Definition at line 155 of file isisbeamDriver.cpp.

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

The name of the asyn driver port we will create.

Definition at line 561 of file isisbeamDriver.cpp.

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

Definition at line 563 of file isisbeamDriver.cpp.

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

Definition at line 565 of file isisbeamDriver.cpp.

epicsThreadOnceId onceId = EPICS_THREAD_ONCE_INIT
static

Definition at line 29 of file isisbeamDriver.cpp.

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