the gotthard receiver works for short frames, gui commented out for now

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@444 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
l_maliakal_d
2013-01-30 16:41:36 +00:00
parent 7d96d8b3af
commit 22bd638f64
12 changed files with 349 additions and 173 deletions

View File

@ -170,11 +170,18 @@ public:
*/
char* readFrame(char* c);
/**
* Set short frame
* @param i if shortframe i=1
*/
int setShortFrame(int i);
private:
static const int MAX_FRAMES_PER_FILE = 20000;
/** max frames per file **/
int maxFramesPerFile;
/** File write enable */
int enableFileWrite;
@ -260,6 +267,15 @@ private:
/** circular fifo to read and write data*/
CircularFifo<dataStruct,FIFO_SIZE>* fifo;
/** short frames */
int shortFrame;
/** buffer size can be 1286*2 or 518 */
int bufferSize;
/** number of packets per frame*/
int packetsPerFrame;
public:
/** File Descriptor */
static FILE *sfilefd;