quadEM  7-0
Macros | Functions
drvTetrAMM.cpp File Reference
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <math.h>
#include <epicsTypes.h>
#include <epicsTime.h>
#include <epicsThread.h>
#include <epicsString.h>
#include <epicsTimer.h>
#include <epicsMutex.h>
#include <epicsEvent.h>
#include <epicsEndian.h>
#include <epicsMath.h>
#include <asynOctetSyncIO.h>
#include <iocsh.h>
#include <epicsExport.h>
#include "drvTetrAMM.h"

Macros

#define TetrAMM_TIMEOUT   0.05
 
#define MIN_VALUES_PER_READ_BINARY   5
 
#define MIN_VALUES_PER_READ_ASCII   500
 
#define MAX_VALUES_PER_READ   100000
 
#define BINARY_BUFFER_SIZE   80
 
#define ASCII_BUFFER_SIZE   150
 

Functions

void swapDouble (char *in)
 
int drvTetrAMMConfigure (const char *portName, const char *QEPortName, int ringBufferSize)
 EPICS iocsh callable function to call constructor for the drvTetrAMM class. More...
 
void drvTetrAMMRegister (void)
 
 epicsExportRegistrar (drvTetrAMMRegister)
 

Macro Definition Documentation

#define ASCII_BUFFER_SIZE   150
#define BINARY_BUFFER_SIZE   80
#define MAX_VALUES_PER_READ   100000
#define MIN_VALUES_PER_READ_ASCII   500
#define MIN_VALUES_PER_READ_BINARY   5
#define TetrAMM_TIMEOUT   0.05

Function Documentation

int drvTetrAMMConfigure ( const char *  portName,
const char *  QEPortName,
int  ringBufferSize 
)

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

Parameters
[in]portNameThe name of the asyn port driver to be created.
[in]QEPortNameThe name of the asyn communication port to the TetrAMM created with drvAsynIPPortConfigure or drvAsynSerialPortConfigure.
[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 drvTetrAMMRegister ( void  )
epicsExportRegistrar ( drvTetrAMMRegister  )
void swapDouble ( char *  in)
inline