areaDetector  3-14
EPICS areaDetector framework
Classes | Macros | Functions
mythen.cpp File Reference
#include <stddef.h>
#include <stdlib.h>
#include <stdarg.h>
#include <math.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <epicsTime.h>
#include <epicsThread.h>
#include <epicsEndian.h>
#include <epicsEvent.h>
#include <epicsMutex.h>
#include <epicsString.h>
#include <epicsStdio.h>
#include <cantProceed.h>
#include <iocsh.h>
#include <asynOctetSyncIO.h>
#include "ADDriver.h"
#include "NDPluginDriver.h"
#include <epicsExport.h>

Classes

class  mythen
 Driver for sls array detectors using over TCP/IP socket. More...
 

Macros

#define MAX_FILENAME_LEN   256
 
#define MAX_DIMS   1280
 
#define MAX_COMMAND_LEN   128
 
#define MAX_NMODULES   2
 
#define M1K_TIMEOUT   5.0
 
#define MAX_FRAMES   500
 
#define MAX_TRIGGER_TIMEOUT_COUNT   50
 
#define SDSettingString   "SD_SETTING"
 
#define SDDelayTimeString   "SD_DELAY_TIME"
 
#define SDThresholdString   "SD_THRESHOLD"
 
#define SDEnergyString   "SD_ENERGY"
 
#define SDUseFlatFieldString   "SD_USE_FLATFIELD"
 
#define SDUseCountRateString   "SD_USE_COUNTRATE"
 
#define SDTauString   "SD_TAU"
 
#define SDUseBadChanIntrplString   "SD_USE_BADCHANNEL_INTRPL"
 
#define SDBitDepthString   "SD_BIT_DEPTH"
 
#define SDUseGatesString   "SD_USE_GATES"
 
#define SDNumGatesString   "SD_NUM_GATES"
 
#define SDNumFramesString   "SD_NUM_FRAMES"
 
#define SDTriggerString   "SD_TRIGGER"
 
#define SDResetString   "SD_RESET"
 
#define SDNModulesString   "SD_NMODULES"
 
#define SDFirmwareVersionString   "SD_FIRMWARE_VERSION" /* asynOctet ro */
 
#define SDReadModeString   "SD_READ_MODE"
 
#define FIRST_SD_PARAM   SDSetting
 
#define LAST_SD_PARAM   SDNModules
 
#define NUM_SD_PARAMS   (&LAST_SD_PARAM - &FIRST_SD_PARAM + 1)
 

Functions

void acquisitionTaskC (void *drvPvt)
 
void pollTaskC (void *drvPvt)
 
int mythenConfig (const char *portName, const char *IPPortName, int maxBuffers, size_t maxMemory, int priority, int stackSize)
 
 epicsExportRegistrar (mythenRegister)
 

Macro Definition Documentation

◆ FIRST_SD_PARAM

#define FIRST_SD_PARAM   SDSetting

◆ LAST_SD_PARAM

#define LAST_SD_PARAM   SDNModules

◆ M1K_TIMEOUT

#define M1K_TIMEOUT   5.0

◆ MAX_COMMAND_LEN

#define MAX_COMMAND_LEN   128

◆ MAX_DIMS

#define MAX_DIMS   1280

◆ MAX_FILENAME_LEN

#define MAX_FILENAME_LEN   256

◆ MAX_FRAMES

#define MAX_FRAMES   500

◆ MAX_NMODULES

#define MAX_NMODULES   2

◆ MAX_TRIGGER_TIMEOUT_COUNT

#define MAX_TRIGGER_TIMEOUT_COUNT   50

◆ NUM_SD_PARAMS

#define NUM_SD_PARAMS   (&LAST_SD_PARAM - &FIRST_SD_PARAM + 1)

◆ SDBitDepthString

#define SDBitDepthString   "SD_BIT_DEPTH"

◆ SDDelayTimeString

#define SDDelayTimeString   "SD_DELAY_TIME"

◆ SDEnergyString

#define SDEnergyString   "SD_ENERGY"

◆ SDFirmwareVersionString

#define SDFirmwareVersionString   "SD_FIRMWARE_VERSION" /* asynOctet ro */

◆ SDNModulesString

#define SDNModulesString   "SD_NMODULES"

◆ SDNumFramesString

#define SDNumFramesString   "SD_NUM_FRAMES"

◆ SDNumGatesString

#define SDNumGatesString   "SD_NUM_GATES"

◆ SDReadModeString

#define SDReadModeString   "SD_READ_MODE"

◆ SDResetString

#define SDResetString   "SD_RESET"

◆ SDSettingString

#define SDSettingString   "SD_SETTING"

◆ SDTauString

#define SDTauString   "SD_TAU"

◆ SDThresholdString

#define SDThresholdString   "SD_THRESHOLD"

◆ SDTriggerString

#define SDTriggerString   "SD_TRIGGER"

◆ SDUseBadChanIntrplString

#define SDUseBadChanIntrplString   "SD_USE_BADCHANNEL_INTRPL"

◆ SDUseCountRateString

#define SDUseCountRateString   "SD_USE_COUNTRATE"

◆ SDUseFlatFieldString

#define SDUseFlatFieldString   "SD_USE_FLATFIELD"

◆ SDUseGatesString

#define SDUseGatesString   "SD_USE_GATES"

Function Documentation

◆ acquisitionTaskC()

void acquisitionTaskC ( void *  drvPvt)

◆ epicsExportRegistrar()

epicsExportRegistrar ( mythenRegister  )

◆ mythenConfig()

int mythenConfig ( const char *  portName,
const char *  IPPortName,
int  maxBuffers,
size_t  maxMemory,
int  priority,
int  stackSize 
)

◆ pollTaskC()

void pollTaskC ( void *  drvPvt)