Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
BlackLevelGainCorrect.h
Go to the documentation of this file.
1 
8 #ifndef BLACKLEVELGAINCORRECT_H
9 #define BLACKLEVELGAINCORRECT_H
10 
11 #include <unistd.h>
12 
13 #include <libfpga/fpgaregister.h>
14 
19 {
20 public:
21 
22  typedef enum {
27  } tePosition;
28 
29  tcBlackLevelGainCorrect(int anBaseAddress);
31 
32  bool initialized();
33 
34  void reset(bool abReset);
35 
36  void setBlackOffset(int16_t offset);
37  int16_t getBlackOffset(void);
38  void setGain(tePosition pos, float gain);
39  float getGain(tePosition pos);
40 
41 protected:
43  tcFPGARegister<uint32_t> mhBLGC;
44 
45 };
46 
47 #endif
tcBlackLevelGainCorrect
Definition: BlackLevelGainCorrect.h:18
tcBlackLevelGainCorrect::initialized
bool initialized()
Definition: BlackLevelGainCorrect.cpp:43
tcBlackLevelGainCorrect::EvenRowOddCol
@ EvenRowOddCol
Definition: BlackLevelGainCorrect.h:24
tcBlackLevelGainCorrect::tcBlackLevelGainCorrect
tcBlackLevelGainCorrect(int anBaseAddress)
Definition: BlackLevelGainCorrect.cpp:26
tcBlackLevelGainCorrect::setBlackOffset
void setBlackOffset(int16_t offset)
Definition: BlackLevelGainCorrect.cpp:66
tcBlackLevelGainCorrect::setGain
void setGain(tePosition pos, float gain)
Definition: BlackLevelGainCorrect.cpp:83
tcBlackLevelGainCorrect::getBlackOffset
int16_t getBlackOffset(void)
Definition: BlackLevelGainCorrect.cpp:72
tcBlackLevelGainCorrect::getGain
float getGain(tePosition pos)
Definition: BlackLevelGainCorrect.cpp:113
tcBlackLevelGainCorrect::~tcBlackLevelGainCorrect
~tcBlackLevelGainCorrect()
Definition: BlackLevelGainCorrect.cpp:35
tcBlackLevelGainCorrect::EvenRowEvenCol
@ EvenRowEvenCol
Definition: BlackLevelGainCorrect.h:23
tcBlackLevelGainCorrect::mbInitialized
bool mbInitialized
true when the core has been initialized
Definition: BlackLevelGainCorrect.h:42
tcBlackLevelGainCorrect::reset
void reset(bool abReset)
Definition: BlackLevelGainCorrect.cpp:54
tcBlackLevelGainCorrect::OddRowOddCol
@ OddRowOddCol
Definition: BlackLevelGainCorrect.h:26
tcBlackLevelGainCorrect::mhBLGC
tcFPGARegister< uint32_t > mhBLGC
memory mapped FPGA access class
Definition: BlackLevelGainCorrect.h:43
tcBlackLevelGainCorrect::OddRowEvenCol
@ OddRowEvenCol
Definition: BlackLevelGainCorrect.h:25
tcBlackLevelGainCorrect::tePosition
tePosition
Definition: BlackLevelGainCorrect.h:22