mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
added eiger specific files
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@751 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
CC = g++
|
CC = g++
|
||||||
CLAGS += -DSLS_RECEIVER_FUNCTION_LIST -O3
|
CLAGS += -DSLS_RECEIVER_FUNCTION_LIST -O3 #-DEIGER_RECEIVER_H
|
||||||
LDFLAG= -L/usr/lib64/ -lpthread -lm -lstdc++
|
LDFLAG= -L/usr/lib64/ -lpthread -lm -lstdc++
|
||||||
|
|
||||||
|
|
||||||
|
91
slsDetectorSoftware/slsReceiver/eigerReceiver.h
Normal file
91
slsDetectorSoftware/slsReceiver/eigerReceiver.h
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
#ifdef EIGER_RECEIVER_H
|
||||||
|
/********************************************//**
|
||||||
|
* @file eigerReceiver.h
|
||||||
|
* @short does all the functions for a receiver, set/get parameters, start/stop etc.
|
||||||
|
***********************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @short does all the functions for a receiver, set/get parameters, start/stop etc.
|
||||||
|
*/
|
||||||
|
|
||||||
|
class eigerReceiver{ /** public slsDetectorDefs Its an enum unders slsDetectorsPackage/slsDetectorSoftware/commonFiles/slsDetectorDefs.h
|
||||||
|
|
||||||
|
public:
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*/
|
||||||
|
eigerReceiver();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Destructor
|
||||||
|
*/
|
||||||
|
virtual ~eigerReceiver();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize the Receiver
|
||||||
|
@param detectorHostName detector hostname
|
||||||
|
*/
|
||||||
|
void initialize(char* detectorHostName);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns status of receiver: idle, running or error
|
||||||
|
*/
|
||||||
|
runStatus getStatus();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns File Name
|
||||||
|
*/
|
||||||
|
char* getFileName();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns File Path
|
||||||
|
*/
|
||||||
|
char* getFilePath();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set File Name (without frame index, file index and extension)
|
||||||
|
* @param c file name
|
||||||
|
*/
|
||||||
|
char* setFileName(char c[]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set File Path
|
||||||
|
* @param c file path
|
||||||
|
*/
|
||||||
|
char* setFilePath(char c[]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set enable file write
|
||||||
|
* @param i file write enable
|
||||||
|
* Returns file write enable
|
||||||
|
*/
|
||||||
|
int setEnableFileWrite(int i);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Starts Receiver - starts to listen for packets
|
||||||
|
* @param message is the error message if there is an error
|
||||||
|
* Returns success
|
||||||
|
*/
|
||||||
|
int startReceiver(char message[]);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stops Receiver - stops listening for packets
|
||||||
|
* Returns success
|
||||||
|
*/
|
||||||
|
int stopReceiver();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* abort program with minimum damage
|
||||||
|
*/
|
||||||
|
void abort();
|
||||||
|
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
Reference in New Issue
Block a user