Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
PixelCal.h
Go to the documentation of this file.
1 /*
2  * PixelCal.h
3  *
4  * Created on: Feb 1, 2015
5  * Author: mitycam
6  */
7 
8 #ifndef PIXELCAL_H_
9 #define PIXELCAL_H_
10 
11 #include "CameraTypes.h"
12 #include <libfpga/fpgaregister.h>
13 #include "Types.h"
14 
15 #include "libfpga/sgdma_dispatcher.h"
16 
17 class tcPixelCal {
18 public:
27  tcPixelCal(uint32 anControlAddress, uint32 anMemoryAddress, int32 anWidth, int32 anHeight, tcSGDMADispatcher *apSGDMA);
28 
29  virtual ~tcPixelCal();
30 
35  bool initialized();
36 
42  int32 reset(bool abOn);
43 
49 
53  };
54 
63  int32 setPixelCal(const char *apFilename, SocCamera::ROI asROI);
64 
76  int32 setPixelCal(const int16 *aaBias, const uint16 *aaGain, SocCamera::ROI asROI);
77 
84  int32 setClipValue(uint16 anClipValue);
85 
86 private:
87  tcFPGARegister<uint32> mcRegisters;
88  tcSGDMADispatcher *mpSgdma;
89  int32 mnMemorySize;
90  int32 mnNumWords;
91  int32 mnMaxWords;
92  int32 mnNumCols;
93  uint32 mnMemoryAddress;
94  volatile uint32 *mpMemory;
95  bool mbInitialized;
96 };
97 
98 #endif /* PIXELCAL_H_ */
tcPixelCal::~tcPixelCal
virtual ~tcPixelCal()
Definition: PixelCal.cpp:64
int32
int32_t int32
Definition: Types.h:8
Types.h
tcPixelCal
Definition: PixelCal.h:17
tcPixelCal::initialized
bool initialized()
Definition: PixelCal.cpp:68
tcPixelCal::setClipValue
int32 setClipValue(uint16 anClipValue)
Definition: PixelCal.cpp:168
tcPixelCal::FILE_NOT_FOUND
@ FILE_NOT_FOUND
Definition: PixelCal.h:52
tcPixelCal::teSetPixelCalReturn
teSetPixelCalReturn
Definition: PixelCal.h:50
CameraTypes.h
tcPixelCal::setPixelCal
int32 setPixelCal(const char *apFilename, SocCamera::ROI asROI)
Definition: PixelCal.cpp:107
int16
int16_t int16
Definition: Types.h:7
tcPixelCal::clearMemory
int32 clearMemory()
Definition: PixelCal.cpp:91
tcPixelCal::FILE_MISSING_PIXELS
@ FILE_MISSING_PIXELS
Definition: PixelCal.h:51
uint32
uint32_t uint32
Definition: Types.h:11
tcPixelCal::reset
int32 reset(bool abOn)
Definition: PixelCal.cpp:73
SocCamera::ROI
Definition: ROI.h:10
uint16
uint16_t uint16
Definition: Types.h:10
tcPixelCal::tcPixelCal
tcPixelCal(uint32 anControlAddress, uint32 anMemoryAddress, int32 anWidth, int32 anHeight, tcSGDMADispatcher *apSGDMA)
Definition: PixelCal.cpp:32