quadEM  7-0
Macros | Functions | Variables
drvNSLS2_EM.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/stat.h>
#include <math.h>
#include <epicsTypes.h>
#include <epicsTime.h>
#include <epicsThread.h>
#include <epicsString.h>
#include <epicsEvent.h>
#include <asynOctetSyncIO.h>
#include <asynCommonSyncIO.h>
#include <drvAsynIPPort.h>
#include <iocsh.h>
#include <epicsExport.h>
#include "drvNSLS2_EM.h"

Macros

#define LEDS   5
 
#define FPGAVER   7
 
#define SA_RATE   8
 
#define IRQ_ENABLE   9
 
#define RAW   12
 
#define RAW_A   12
 
#define RAW_B   13
 
#define RAW_C   14
 
#define RAW_D   15
 
#define FRAME_NO   16
 
#define SA_RATE_DIV   19
 
#define GAINREG   28
 
#define HV_BIAS   36
 
#define AVG   44
 
#define AVG_A   44
 
#define AVG_B   45
 
#define AVG_C   46
 
#define AVG_D   47
 
#define DACS   72
 
#define FREQ   500000.0
 
#define DEVNAME   "/dev/vipic"
 
#define POLL_TIME   0.001
 
#define NOISE   1000.
 

Functions

int drvNSLS2_EMConfigure (const char *portName, int moduleID, int ringBufferSize)
 EPICS iocsh callable function to call constructor for the drvNSLS_EM class. More...
 
void drvNSLS2_EMRegister (void)
 
 epicsExportRegistrar (drvNSLS2_EMRegister)
 

Variables

class drvNSLS2_EMpdrvNSLS2_EM
 

Macro Definition Documentation

#define AVG   44
#define AVG_A   44
#define AVG_B   45
#define AVG_C   46
#define AVG_D   47
#define DACS   72
#define DEVNAME   "/dev/vipic"
#define FPGAVER   7
#define FRAME_NO   16
#define FREQ   500000.0
#define GAINREG   28
#define HV_BIAS   36
#define IRQ_ENABLE   9
#define LEDS   5
#define NOISE   1000.
#define POLL_TIME   0.001
#define RAW   12
#define RAW_A   12
#define RAW_B   13
#define RAW_C   14
#define RAW_D   15
#define SA_RATE   8
#define SA_RATE_DIV   19

Function Documentation

int drvNSLS2_EMConfigure ( const char *  portName,
int  moduleID,
int  ringBufferSize 
)

EPICS iocsh callable function to call constructor for the drvNSLS_EM class.

Parameters
[in]portNameThe name of the asyn port driver to be created.
[in]moduleIDNot currently used, reserved for future use.
[in]ringBufferSizeThe number of samples to hold in the input ring buffer. This should be large enough to hold all the samples between reads of the device, e.g. 1 ms SampleTime and 1 second read rate = 1000 samples. If 0 then default of 2048 is used.
void drvNSLS2_EMRegister ( void  )
epicsExportRegistrar ( drvNSLS2_EMRegister  )

Variable Documentation

class drvNSLS2_EM* pdrvNSLS2_EM