Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
TestPatternGenerator.h
Go to the documentation of this file.
1 /*
2  * Critical Link MityCAM
3  *
4  * Copyright (C) 2020 Critical Link LLC - http://www.criticallink.com
5  *
6  */
7 
8 #ifndef TESTPATTERNGENERATOR_H
9 #define TESTPATTERNGENERATOR_H
10 
11 #include <libfpga/fpgaregister.h>
12 #include <chrono>
13 
19 public:
23  typedef enum {
29  eeDEAD = 7
31 
32  tcTestPatternGenerator(uint32_t anControlAddress);
33  virtual ~tcTestPatternGenerator();
34 
35  bool initialized();
36 
37  int32_t reset(bool abOn);
38 
39  int setPassThru(bool abPassThru);
40  int startTestPattern(bool abStart);
41  int setPatternTiming(uint16_t anWidth, uint16_t anHeight, int anPixelsPerClock, float anClockRateMHz,
42  const std::chrono::microseconds& anTargetFrameInterval, unsigned int anVertBlankLines = 2);
45  int setStaticVal(uint32_t val);
46  uint32_t getStaticVal(void);
47  void dumpState(void);
48 
49 private:
50  tcFPGARegister<uint32_t> mcRegisters;
51 };
52 
53 #endif /* TESTPATTERNGENERATOR_H */
tcTestPatternGenerator::initialized
bool initialized()
check and ensure the core has been properly inialized
Definition: TestPatternGenerator.cpp:56
tcTestPatternGenerator::getPatternMode
teTestPatternMode getPatternMode(void)
Definition: TestPatternGenerator.cpp:183
tcTestPatternGenerator::~tcTestPatternGenerator
virtual ~tcTestPatternGenerator()
Destroy the tc Test Pattern Generator::tc Test Pattern Generator object.
Definition: TestPatternGenerator.cpp:45
tcTestPatternGenerator::eeDEAD
@ eeDEAD
0x0000DEAD
Definition: TestPatternGenerator.h:29
tcTestPatternGenerator::teTestPatternMode
teTestPatternMode
Definition: TestPatternGenerator.h:23
tcTestPatternGenerator::eeStaticCountUp
@ eeStaticCountUp
incrementing count for each new pixel in raster order. Count starts at static pixel value
Definition: TestPatternGenerator.h:26
tcTestPatternGenerator::eeGradientY
@ eeGradientY
vertical gradient
Definition: TestPatternGenerator.h:25
tcTestPatternGenerator::dumpState
void dumpState(void)
Dump state of CORE to INFO status text.
Definition: TestPatternGenerator.cpp:238
tcTestPatternGenerator::setPassThru
int setPassThru(bool abPassThru)
Definition: TestPatternGenerator.cpp:88
tcTestPatternGenerator::eeFrameNumberCountUp
@ eeFrameNumberCountUp
incrementing count for each new pixel in raster order. Count starts at frames count
Definition: TestPatternGenerator.h:27
tcTestPatternGenerator::setPatternMode
int setPatternMode(teTestPatternMode aeMode)
Definition: TestPatternGenerator.cpp:168
tcTestPatternGenerator::eeGradientX
@ eeGradientX
horizontal gradient
Definition: TestPatternGenerator.h:24
tcTestPatternGenerator::startTestPattern
int startTestPattern(bool abStart)
Definition: TestPatternGenerator.cpp:106
tcTestPatternGenerator::setStaticVal
int setStaticVal(uint32_t val)
Definition: TestPatternGenerator.cpp:220
tcTestPatternGenerator::setPatternTiming
int setPatternTiming(uint16_t anWidth, uint16_t anHeight, int anPixelsPerClock, float anClockRateMHz, const std::chrono::microseconds &anTargetFrameInterval, unsigned int anVertBlankLines=2)
Definition: TestPatternGenerator.cpp:127
tcTestPatternGenerator::getStaticVal
uint32_t getStaticVal(void)
Definition: TestPatternGenerator.cpp:229
tcTestPatternGenerator::eeStaticVal
@ eeStaticVal
constant pixel value
Definition: TestPatternGenerator.h:28
tcTestPatternGenerator::tcTestPatternGenerator
tcTestPatternGenerator(uint32_t anControlAddress)
Construct a new tc Test Pattern Generator::tc Test Pattern Generator object.
Definition: TestPatternGenerator.cpp:35
tcTestPatternGenerator::reset
int32_t reset(bool abOn)
Definition: TestPatternGenerator.cpp:71
tcTestPatternGenerator
User Space Control Class for the MityCAM test_pattern_gen FPGA block.
Definition: TestPatternGenerator.h:18