Cat
Proto40MHz_v1.h
Go to the documentation of this file.
1 // $Id: $
2 #ifndef INC_PROTO40MHZ_V1_H
3 #define INC_PROTO40MHZ_V1_H 1
4 
5 // Include files
6 #include "Element.h"
7 #include "UsbFTInterface.h"
8 #include "UsbI2cBus.h"
9 #include "UsbSpiBus.h"
10 
11 #include "Phaser.h"
12 #include "A3PE.h"
13 
21 class Proto40MHz_v1 : public Element {
22 public:
24  Proto40MHz_v1( );
25 
26  virtual ~Proto40MHz_v1( );
27 
31  void help() { info("Proto40MHz_v1 "+name()+". No help.","Proto40MHz_v1::help"); };
32 
38  return StatusCode::SUCCESS;
39  };
40 
48  void reset() {
49  debug("Proto40MHz_v1 "+name()+" reset.","Proto40MHz_v1::reset");
50  a3pe()->reset();
51  };
52 
56  void update () {info("Proto40MHz_v1 "+name()+". Nothing to do.","Proto40MHz_v1::update");};
57 
59  return m_usb;
60  }
61 
63  return m_phaser0;
64  }
65 
67  return m_phaser1;
68  }
69 
71  return m_phaser2;
72  }
73 
74  A3PE* a3pe(){
75  return m_a3pe;
76  }
77 
78 protected:
79 
80 private:
89 };
90 #endif // INC_PROTO40MHZ_V1_H
void info(std::string mymsg)
Definition: Object.h:38
Definition: Phaser.h:19
Phaser * m_phaser0
Definition: Proto40MHz_v1.h:84
Phaser * phaser0()
Definition: Proto40MHz_v1.h:62
Register * m_reg
Definition: Proto40MHz_v1.h:87
A3PE * a3pe()
Definition: Proto40MHz_v1.h:74
void reset()
Definition: A3PE.h:225
Definition: A3PE.h:20
Phaser * phaser1()
Definition: Proto40MHz_v1.h:66
Phaser * m_phaser2
Definition: Proto40MHz_v1.h:86
void debug(std::string mymsg)
Definition: Object.h:37
UsbFTInterface * usb()
Definition: Proto40MHz_v1.h:58
Phaser * phaser2()
Definition: Proto40MHz_v1.h:70
UsbFTInterface * m_usb
Definition: Proto40MHz_v1.h:81
std::string name() const
Definition: Object.h:28
virtual ~Proto40MHz_v1()
Destructor.
StatusCode init()
Definition: Proto40MHz_v1.h:37
UsbI2cBus * m_usbi2c
Definition: Proto40MHz_v1.h:82
UsbSpiBus * m_usbspi
Definition: Proto40MHz_v1.h:83
Proto40MHz_v1()
Standard constructor.
Phaser * m_phaser1
Definition: Proto40MHz_v1.h:85