Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
RAMStreamer.h
Go to the documentation of this file.
1 #ifndef RAMSTREAMER_H
2 #define RAMSTREAMER_H
3 
4 #include <unistd.h>
5 
6 #include <libfpga/fpgaregister.h>
7 
9 {
10 public:
11  tcRAMStreamer(int anBaseAddress);
12  virtual ~tcRAMStreamer();
13 
17  virtual bool initialize();
18 
23  virtual void reset(bool abReset);
24 
29  virtual void setStartAddr(unsigned int anAddr);
30 
35  virtual unsigned int getStartAddr();
36 
41  virtual void setEndAddr(unsigned int anAddr);
42 
47  virtual unsigned int getEndAddr();
48 
53  virtual void setFrameSize(unsigned int anNumBytes);
54 
59  virtual unsigned int getFrameSize();
60 
64  virtual void setInterruptLevel(unsigned int anNumFrames);
65 
70  virtual unsigned int getInterruptLevel();
71 
76  virtual void setFramesToCapture(unsigned short anNumFrames);
77 
82  virtual unsigned short getFramesToCapture(void);
83 
87  virtual void clearInterrupt();
88 
93  virtual void setInterruptEnable(bool abEnable);
94 
99  virtual bool isReady();
100 
102  eeMono16 = 0,
103  eeMono12p = 1, // This is a different bit order than eeMono12packed; see the PFNC vs. GigE vision protocol
104  eeMono8p = 2,
106  };
107  virtual void setPackingMode(tePackingMode aeMode);
108 
109  virtual tePackingMode getPackingMode();
110 
115  virtual void setPacking(bool abEnable);
116 
122  virtual bool isPacking();
123 
124 protected:
125  uint32_t mnNumBytes;
126 
128 
129 private:
130 
131  tcFPGARegister<uint32_t>* mphRamStreamer;
132 
133 };
134 
135 #endif // RAMSTREAMER_H
tcRAMStreamer::isReady
virtual bool isReady()
Definition: RAMStreamer.cpp:128
tcRAMStreamer::getStartAddr
virtual unsigned int getStartAddr()
Definition: RAMStreamer.cpp:62
tcRAMStreamer::setInterruptEnable
virtual void setInterruptEnable(bool abEnable)
Definition: RAMStreamer.cpp:119
tcRAMStreamer::setPacking
virtual void setPacking(bool abEnable)
Definition: RAMStreamer.cpp:133
tcRAMStreamer::mnNumBytes
uint32_t mnNumBytes
Definition: RAMStreamer.h:125
tcRAMStreamer::isPacking
virtual bool isPacking()
Definition: RAMStreamer.cpp:156
tcRAMStreamer::eeMono8p
@ eeMono8p
Definition: RAMStreamer.h:104
tcRAMStreamer
Definition: RAMStreamer.h:8
tcRAMStreamer::tcRAMStreamer
tcRAMStreamer(int anBaseAddress)
Definition: RAMStreamer.cpp:24
tcRAMStreamer::tePackingMode
tePackingMode
Definition: RAMStreamer.h:101
tcRAMStreamer::eeMono12p
@ eeMono12p
Definition: RAMStreamer.h:103
tcRAMStreamer::setEndAddr
virtual void setEndAddr(unsigned int anAddr)
Definition: RAMStreamer.cpp:67
tcRAMStreamer::getEndAddr
virtual unsigned int getEndAddr()
Definition: RAMStreamer.cpp:73
tcRAMStreamer::setFramesToCapture
virtual void setFramesToCapture(unsigned short anNumFrames)
Definition: RAMStreamer.cpp:100
tcRAMStreamer::mnEndAddr
uint32_t mnEndAddr
Definition: RAMStreamer.h:127
tcRAMStreamer::getPackingMode
virtual tePackingMode getPackingMode()
Definition: RAMStreamer.cpp:148
tcRAMStreamer::setStartAddr
virtual void setStartAddr(unsigned int anAddr)
Definition: RAMStreamer.cpp:56
tcRAMStreamer::setFrameSize
virtual void setFrameSize(unsigned int anNumBytes)
Definition: RAMStreamer.cpp:78
tcRAMStreamer::getInterruptLevel
virtual unsigned int getInterruptLevel()
Definition: RAMStreamer.cpp:95
tcRAMStreamer::~tcRAMStreamer
virtual ~tcRAMStreamer()
Definition: RAMStreamer.cpp:35
tcRAMStreamer::eeMono12packed
@ eeMono12packed
Definition: RAMStreamer.h:105
tcRAMStreamer::mnStartAddr
uint32_t mnStartAddr
Definition: RAMStreamer.h:127
tcRAMStreamer::getFramesToCapture
virtual unsigned short getFramesToCapture(void)
getFramesToCapture
Definition: RAMStreamer.cpp:106
tcRAMStreamer::eeMono16
@ eeMono16
Definition: RAMStreamer.h:102
tcRAMStreamer::setInterruptLevel
virtual void setInterruptLevel(unsigned int anNumFrames)
Definition: RAMStreamer.cpp:89
tcRAMStreamer::getFrameSize
virtual unsigned int getFrameSize()
Definition: RAMStreamer.cpp:84
tcRAMStreamer::initialize
virtual bool initialize()
Definition: RAMStreamer.cpp:40
tcRAMStreamer::clearInterrupt
virtual void clearInterrupt()
Definition: RAMStreamer.cpp:114
tcRAMStreamer::setPackingMode
virtual void setPackingMode(tePackingMode aeMode)
Definition: RAMStreamer.cpp:142
tcRAMStreamer::reset
virtual void reset(bool abReset)
Definition: RAMStreamer.cpp:45