Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
RowAdjuster.h
Go to the documentation of this file.
1 /*
2  * RowAdjuster.h
3  *
4  * Created on: Nov 6, 2017
5  * Author: mitydsp
6  */
7 
8 #ifndef ROWADJUSTER_H_
9 #define ROWADJUSTER_H_
10 
11 #include <libfpga/fpgaregister.h>
12 #include "Utility/ROI.h"
13 
15 public:
16  tcRowAdjuster(uint32_t anAddress);
17  virtual ~tcRowAdjuster();
18 
19  bool initialized();
20 
21  void reset(bool abReset);
22  bool readReset();
23 
24  void setRowStart(uint32_t anStart);
25  uint32_t getRowStart();
26  void setRowWidth(uint32_t anWidth);
27  uint32_t getRowWidth();
28  void setRow(uint32_t anStart, uint32_t anWidth);
29  void setRow(SocCamera::ROI acRegion);
30 
31  bool canDecimateX(void);
32  bool canClipY(void);
33  uint8_t getPixelsPerClock(void);
34  bool headerDecodeError(void);
35 
36  int setColStart(uint32_t anStart);
37  uint32_t getColStart();
38  int setColHeight(uint32_t anHeight);
39  uint32_t getColHeight();
40  int setCol(uint32_t anStart, uint32_t anHeight);
41  int setCol(SocCamera::ROI acRegion);
42 
43  int enableDecimateX(bool abEnable);
44  void keepOddDecimatedSamples(bool abKeepOdd);
45  int enableYClip(bool abEnable);
46  void enableTestPattern(bool abEnable);
47 
48  void dumpRegisters();
49 
50 private:
51  tcFPGARegister<uint32_t> mhRowAdjust;
52 };
53 
54 #endif /* ROWADJUSTER_H_ */
tcRowAdjuster::setColHeight
int setColHeight(uint32_t anHeight)
Definition: RowAdjuster.cpp:170
tcRowAdjuster::getColStart
uint32_t getColStart()
Definition: RowAdjuster.cpp:158
tcRowAdjuster::getRowWidth
uint32_t getRowWidth()
Definition: RowAdjuster.cpp:112
tcRowAdjuster::initialized
bool initialized()
tcRowAdjuster::initialized
Definition: RowAdjuster.cpp:43
tcRowAdjuster::reset
void reset(bool abReset)
Definition: RowAdjuster.cpp:52
tcRowAdjuster::setRowWidth
void setRowWidth(uint32_t anWidth)
Definition: RowAdjuster.cpp:102
tcRowAdjuster
Definition: RowAdjuster.h:14
tcRowAdjuster::enableYClip
int enableYClip(bool abEnable)
Definition: RowAdjuster.cpp:289
tcRowAdjuster::canDecimateX
bool canDecimateX(void)
Definition: RowAdjuster.cpp:217
tcRowAdjuster::keepOddDecimatedSamples
void keepOddDecimatedSamples(bool abKeepOdd)
Definition: RowAdjuster.cpp:277
tcRowAdjuster::getRowStart
uint32_t getRowStart()
Definition: RowAdjuster.cpp:87
tcRowAdjuster::headerDecodeError
bool headerDecodeError(void)
Definition: RowAdjuster.cpp:247
tcRowAdjuster::setCol
int setCol(uint32_t anStart, uint32_t anHeight)
Definition: RowAdjuster.cpp:194
tcRowAdjuster::dumpRegisters
void dumpRegisters()
Definition: RowAdjuster.cpp:315
tcRowAdjuster::enableDecimateX
int enableDecimateX(bool abEnable)
Definition: RowAdjuster.cpp:257
tcRowAdjuster::enableTestPattern
void enableTestPattern(bool abEnable)
Definition: RowAdjuster.cpp:307
tcRowAdjuster::setRowStart
void setRowStart(uint32_t anStart)
Definition: RowAdjuster.cpp:77
tcRowAdjuster::canClipY
bool canClipY(void)
Definition: RowAdjuster.cpp:226
tcRowAdjuster::~tcRowAdjuster
virtual ~tcRowAdjuster()
Definition: RowAdjuster.cpp:36
SocCamera::ROI
Definition: ROI.h:10
tcRowAdjuster::setRow
void setRow(uint32_t anStart, uint32_t anWidth)
Definition: RowAdjuster.cpp:123
tcRowAdjuster::readReset
bool readReset()
tcRowAdjuster::readReset
Definition: RowAdjuster.cpp:65
tcRowAdjuster::getColHeight
uint32_t getColHeight()
Definition: RowAdjuster.cpp:182
tcRowAdjuster::getPixelsPerClock
uint8_t getPixelsPerClock(void)
Definition: RowAdjuster.cpp:235
ROI.h
tcRowAdjuster::tcRowAdjuster
tcRowAdjuster(uint32_t anAddress)
Definition: RowAdjuster.cpp:31
tcRowAdjuster::setColStart
int setColStart(uint32_t anStart)
Definition: RowAdjuster.cpp:146