Cat
CU_v1.h
Go to the documentation of this file.
1 // $Id: $
2 #ifndef INC_CU_v1_H
3 #define INC_CU_v1_H 1
4 
5 // Include files
6 #include "Element.h"
7 #include "Data.h"
8 #include "RAM.h"
9 #include "UsbFTMLInterface.h"
10 #include "FePGA.h"
11 
19 class CU_v1 : public Element {
20 public:
22  CU_v1( );
23 
24  virtual ~CU_v1( );
25 
29  void help() { info("CU_v1 "+name()+". No help.","CU_v1::help"); };
30 
36  return StatusCode::SUCCESS;
37  };
38 
46  void reset() {
47  m_fePga->reset();
48  debug("CU_v1 "+name()+" reset.","CU_v1::reset");
49  };
50 
54  void update () {info("CU_v1 "+name()+". Nothing to do.","CU_v1::update");};
55 
57  return m_fePga;
58  }
59 
60  void readFifo( int, int , unsigned int*);
61 
62 protected:
63 
64 private:
66  int m_gbtAddress[1]; // how many do I need ?
67  int m_fifoInjectAddress[3]; // how many do I need ?
69  unsigned int *m_fifo[3]; // how many do I need ?
71  RAM *m_ramInj[3];
73  //int m_seqAddress; // What is this ??
74 
75 
76 };
77 
78 #endif // INC_CU_v1_H
79 
void info(std::string mymsg)
Definition: Object.h:38
Data * m_data
Definition: CU_v1.h:70
Definition: RAM.h:16
void help()
Definition: CU_v1.h:29
void reset()
Definition: FePGA.h:54
void reset()
Definition: CU_v1.h:46
virtual ~CU_v1()
Destructor.
Definition: CU_v1.cpp:60
int m_fifoInjectAddress[3]
Definition: CU_v1.h:67
RAM * m_fifoUsbTest
Definition: CU_v1.h:72
int m_fifoDepth
Definition: CU_v1.h:65
Definition: FePGA.h:23
FePGA * m_fePga
Definition: CU_v1.h:68
Definition: CU_v1.h:19
RAM * m_ramInj[3]
Definition: CU_v1.h:71
void debug(std::string mymsg)
Definition: Object.h:37
int m_gbtAddress[1]
Definition: CU_v1.h:66
CU_v1()
Standard constructor.
Definition: CU_v1.cpp:17
unsigned int * m_fifo[3]
Definition: CU_v1.h:69
void readFifo(int, int, unsigned int *)
Definition: CU_v1.cpp:64
StatusCode init()
Definition: CU_v1.h:35
std::string name() const
Definition: Object.h:28
void update()
Definition: CU_v1.h:54
Definition: Data.h:16
FePGA * fePga()
Definition: CU_v1.h:56