Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
BlackLevelEstimate.h
Go to the documentation of this file.
1 
8 #ifndef BLACKLEVELESTIMATE_H
9 #define BLACKLEVELESTIMATE_H
10 
11 #include <unistd.h>
12 
13 #include <libfpga/fpgaregister.h>
14 
15 #include "Utility/ROI.h"
16 
22 {
23 public:
24  tcBlackLevelEstimate(int anBaseAddress);
26 
27  bool initialized();
28 
29  void reset(bool abReset);
30 
31  int enableBlackRegion(int index, bool enable);
32  int setBlackRegion(int index, SocCamera::ROI region);
33  int setDivisor(unsigned int value);
34  int getDivisor(void);
35 
36  float getBlackLevelEstimate(void);
37  int setBlackLevelOverride(float value);
38  float getBlackLevelOverride(void);
39  int enableBlackLevelOverride(bool enable);
40 
41 protected:
43  tcFPGARegister<uint32_t> mhBLE;
44 
45 };
46 
47 #endif
tcBlackLevelEstimate::tcBlackLevelEstimate
tcBlackLevelEstimate(int anBaseAddress)
Definition: BlackLevelEstimate.cpp:28
tcBlackLevelEstimate::reset
void reset(bool abReset)
Definition: BlackLevelEstimate.cpp:56
tcBlackLevelEstimate
Definition: BlackLevelEstimate.h:21
tcBlackLevelEstimate::enableBlackRegion
int enableBlackRegion(int index, bool enable)
Definition: BlackLevelEstimate.cpp:71
tcBlackLevelEstimate::mbInitialized
bool mbInitialized
true when the core has been initialized
Definition: BlackLevelEstimate.h:42
tcBlackLevelEstimate::setBlackRegion
int setBlackRegion(int index, SocCamera::ROI region)
Definition: BlackLevelEstimate.cpp:93
tcBlackLevelEstimate::getBlackLevelEstimate
float getBlackLevelEstimate(void)
Definition: BlackLevelEstimate.cpp:123
tcBlackLevelEstimate::~tcBlackLevelEstimate
~tcBlackLevelEstimate()
Definition: BlackLevelEstimate.cpp:37
tcBlackLevelEstimate::setDivisor
int setDivisor(unsigned int value)
Definition: BlackLevelEstimate.cpp:176
tcBlackLevelEstimate::getDivisor
int getDivisor(void)
Definition: BlackLevelEstimate.cpp:206
tcBlackLevelEstimate::initialized
bool initialized()
Definition: BlackLevelEstimate.cpp:45
tcBlackLevelEstimate::enableBlackLevelOverride
int enableBlackLevelOverride(bool enable)
Definition: BlackLevelEstimate.cpp:162
tcBlackLevelEstimate::mhBLE
tcFPGARegister< uint32_t > mhBLE
memory mapped FPGA access class
Definition: BlackLevelEstimate.h:43
SocCamera::ROI
Definition: ROI.h:10
tcBlackLevelEstimate::setBlackLevelOverride
int setBlackLevelOverride(float value)
Definition: BlackLevelEstimate.cpp:140
tcBlackLevelEstimate::getBlackLevelOverride
float getBlackLevelOverride(void)
Definition: BlackLevelEstimate.cpp:150
ROI.h