areaDetector 1-9
Classes | Defines | Enumerations | Functions
/home/epics/devel/areaDetector/ADApp/brukerSrc/BISDetector.cpp File Reference
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <sys/stat.h>
#include <epicsTime.h>
#include <epicsThread.h>
#include <epicsEvent.h>
#include <epicsMutex.h>
#include <epicsTimer.h>
#include <epicsString.h>
#include <epicsStdio.h>
#include <cantProceed.h>
#include <iocsh.h>
#include <epicsExport.h>
#include <asynOctetSyncIO.h>
#include "ADDriver.h"

Classes

class  BISDetector
 Driver for Bruker BIS ccd detector using their BIS server over TCP/IP socket. More...

Defines

#define MAX_MESSAGE_SIZE   512
 Messages to/from BIS.
#define MAX_FILENAME_LEN   256
#define ASYN_POLL_TIME   .01
 Time to poll when reading from BIS.
#define BIS_POLL_DELAY   .01
#define BIS_DEFAULT_TIMEOUT   1.0
#define FILE_READ_DELAY   .01
 Time between checking to see if .SFRM file is complete.
#define BISSFRMTimeoutString   "SFRM_TIMEOUT"
#define BISNumDarksString   "NUM_DARKS"
#define BISStatusString   "BIS_STATUS"
#define FIRST_BIS_PARAM   BISSFRMTimeout
#define LAST_BIS_PARAM   BISStatus
#define NUM_BIS_PARAMS   ((int)(&LAST_BIS_PARAM - &FIRST_BIS_PARAM + 1))
#define lineLen   80
#define maxLine   95
#define blockLen   512
#define dataOffset   8

Enumerations

enum  BISFrameType_t { BISFrameNormal, BISFrameDark, BISFrameRaw, BISFrameDoubleCorrelation }
 Frame type choices. More...

Functions

int BISDetectorConfig (const char *portName, const char *commandPort, const char *statusPort, int maxBuffers, size_t maxMemory, int priority, int stackSize)
 epicsExportRegistrar (BISDetectorRegister)

Define Documentation

#define ASYN_POLL_TIME   .01

Time to poll when reading from BIS.

#define BIS_DEFAULT_TIMEOUT   1.0
#define BIS_POLL_DELAY   .01
#define BISNumDarksString   "NUM_DARKS"
#define BISSFRMTimeoutString   "SFRM_TIMEOUT"
#define BISStatusString   "BIS_STATUS"
#define blockLen   512
#define dataOffset   8
#define FILE_READ_DELAY   .01

Time between checking to see if .SFRM file is complete.

#define FIRST_BIS_PARAM   BISSFRMTimeout
#define LAST_BIS_PARAM   BISStatus
#define lineLen   80
#define MAX_FILENAME_LEN   256
#define MAX_MESSAGE_SIZE   512

Messages to/from BIS.

#define maxLine   95
#define NUM_BIS_PARAMS   ((int)(&LAST_BIS_PARAM - &FIRST_BIS_PARAM + 1))

Enumeration Type Documentation

Frame type choices.

Enumerator:
BISFrameNormal 
BISFrameDark 
BISFrameRaw 
BISFrameDoubleCorrelation 

Function Documentation

int BISDetectorConfig ( const char *  portName,
const char *  commandPort,
const char *  statusPort,
int  maxBuffers,
size_t  maxMemory,
int  priority,
int  stackSize 
)
epicsExportRegistrar ( BISDetectorRegister  )