Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
ClockCheck.h
Go to the documentation of this file.
1 #ifndef CLOCKCHECK_H
2 #define CLOCKCHECK_H
3 
4 #include <unistd.h>
5 
6 #include <libfpga/fpgaregister.h>
7 
9 {
10 public:
11  tcClockCheck(int anBaseAddress);
12  ~tcClockCheck();
13 
17  bool initialized();
18 
25  bool set_div(int offset, unsigned int div);
26 
33  bool get_clock(int offset, float & rate_mhz);
34 
35 protected:
36 
37  tcFPGARegister<unsigned int> mhClockCheck;
38 };
39 
40 #endif
tcClockCheck
Definition: ClockCheck.h:8
tcClockCheck::~tcClockCheck
~tcClockCheck()
Definition: ClockCheck.cpp:18
tcClockCheck::initialized
bool initialized()
Definition: ClockCheck.cpp:23
tcClockCheck::get_clock
bool get_clock(int offset, float &rate_mhz)
Definition: ClockCheck.cpp:41
tcClockCheck::set_div
bool set_div(int offset, unsigned int div)
Definition: ClockCheck.cpp:78
tcClockCheck::mhClockCheck
tcFPGARegister< unsigned int > mhClockCheck
Definition: ClockCheck.h:37
tcClockCheck::tcClockCheck
tcClockCheck(int anBaseAddress)
Definition: ClockCheck.cpp:12