Added: embedded classes for Eiger

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@661 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
johnson_i
2013-09-04 14:26:52 +00:00
parent 57d65fd59c
commit fd9d627412
19 changed files with 2899 additions and 3 deletions

View File

@ -0,0 +1,44 @@
//Class initially from Gerd and was called mmap_test.c
#ifndef LOCALLINKINTERFACE_H
#define LOCALLINKINTERFACE_H
#include "xfs_types.h"
#include "HardwareIO.h"
class LocalLinkInterface: public HardwareIO{ //
private:
xfs_u32 ll_fifo_base;
unsigned int ll_fifo_ctrl_reg;
bool Init(unsigned int ll_fifo_badr);
bool Reset(unsigned int rst_mask);
bool ctrl_reg_write_mask(unsigned int mask, unsigned int val);
void llfifo_print_frame(unsigned char* fbuff, int len);
public:
LocalLinkInterface(unsigned int ll_fifo_badr);
virtual ~LocalLinkInterface();
unsigned int StatusVector();
bool Reset();
int Write(unsigned int buffer_len, void *buffer);
int Read(unsigned int buffer_len, void *buffer);
int Test(unsigned int buffer_len, void *buffer);
/*
bool FiFoReset(unsigned int numb);
int FifoSend(unsigned int numb, unsigned int frame_len, void *buffer);
int FifoReceive(unsigned int numb, unsigned int frame_len, void *buffer);
int FifoTest(unsigned int numb,unsigned int send_len, char *send_str);
*/
};
#endif