Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
SIMRAMStreamer.h
Go to the documentation of this file.
1 /*
2  * SIMRAMStreamer.h
3  *
4  * Created on: Jun 5, 2015
5  * Author: mikew
6  */
7 
8 #ifndef SIMRAMSTREAMER_H_
9 #define SIMRAMSTREAMER_H_
10 
11 #include <Utility/RAMStreamer.h>
12 
14 public:
16  virtual ~tcSIMRAMStreamer();
17 
19  virtual bool initialize() override;
20 
21  virtual void reset(bool abReset) override;
22 
23  virtual void setStartAddr(unsigned int anAddr) override;
24 
25  virtual void setEndAddr(unsigned int anAddr) override;
26 
27  virtual void setFrameSize(unsigned int anNumBytes) override;
28 
29  virtual void setInterruptLevel(unsigned int anNumFrames) override;
30 
31  virtual unsigned int getInterruptLevel() override;
32 
33  virtual void setFramesToCapture(unsigned short anNumFrames) override;
34 
35  virtual void clearInterrupt() override;
36 
37  virtual void setInterruptEnable(bool abEnable) override;
38 
39  virtual bool isReady() override;
40 
41  virtual void setPacking(bool abEnable) override;
42 
43  virtual bool isPacking() override;
44 
45  virtual void setPackingMode(tePackingMode aeMode) override { mePackingMode = aeMode; }
46 
47  virtual tePackingMode getPackingMode() override { return mePackingMode; };
50  virtual uint32_t getBufferSize(void) { return mnBlocksize; }
51 
52  virtual uint8_t* getBuffer(void) { return mpBuffer; }
53 
54  void* allocBuffer(uint8_t* apBuffer, uint32_t anBlockSize, uint32_t anOffset);
55 
56  void tickFrameCtr(uint32_t cnt = 1);
57 
58 protected:
59  uint8_t* mpBuffer;
60  bool mbPacking;
62  uint32_t mnOffset;
63  uint32_t mnBlocksize;
64  uint32_t mnInterruptLevel;
67 
68  uint32_t mnFrameTotal;
69  uint32_t mnFrameInt;
70 };
71 
72 #endif /* SIMRAMSTREAMER_H_ */
tcSIMRAMStreamer::setEndAddr
virtual void setEndAddr(unsigned int anAddr) override
Definition: SIMRAMStreamer.cpp:44
tcSIMRAMStreamer::mnFrameTotal
uint32_t mnFrameTotal
Definition: SIMRAMStreamer.h:68
tcSIMRAMStreamer::mePackingMode
tePackingMode mePackingMode
Definition: SIMRAMStreamer.h:61
tcSIMRAMStreamer::getInterruptLevel
virtual unsigned int getInterruptLevel() override
Definition: SIMRAMStreamer.cpp:60
tcSIMRAMStreamer::mnFramesToCapture
uint32_t mnFramesToCapture
Definition: SIMRAMStreamer.h:65
RAMStreamer.h
tcSIMRAMStreamer::mbInterruptEnabled
bool mbInterruptEnabled
Definition: SIMRAMStreamer.h:66
tcSIMRAMStreamer::tickFrameCtr
void tickFrameCtr(uint32_t cnt=1)
Definition: SIMRAMStreamer.cpp:108
tcSIMRAMStreamer::isPacking
virtual bool isPacking() override
Definition: SIMRAMStreamer.cpp:93
tcSIMRAMStreamer::getBuffer
virtual uint8_t * getBuffer(void)
Definition: SIMRAMStreamer.h:52
tcSIMRAMStreamer::reset
virtual void reset(bool abReset) override
Definition: SIMRAMStreamer.cpp:33
tcRAMStreamer
Definition: RAMStreamer.h:8
tcSIMRAMStreamer::getBufferSize
virtual uint32_t getBufferSize(void)
Definition: SIMRAMStreamer.h:50
tcRAMStreamer::tePackingMode
tePackingMode
Definition: RAMStreamer.h:101
tcSIMRAMStreamer::~tcSIMRAMStreamer
virtual ~tcSIMRAMStreamer()
Definition: SIMRAMStreamer.cpp:22
tcSIMRAMStreamer::allocBuffer
void * allocBuffer(uint8_t *apBuffer, uint32_t anBlockSize, uint32_t anOffset)
Definition: SIMRAMStreamer.cpp:98
tcSIMRAMStreamer::clearInterrupt
virtual void clearInterrupt() override
Definition: SIMRAMStreamer.cpp:70
tcSIMRAMStreamer::mbPacking
bool mbPacking
Definition: SIMRAMStreamer.h:60
tcSIMRAMStreamer::setStartAddr
virtual void setStartAddr(unsigned int anAddr) override
Definition: SIMRAMStreamer.cpp:39
tcSIMRAMStreamer::setPackingMode
virtual void setPackingMode(tePackingMode aeMode) override
Definition: SIMRAMStreamer.h:45
tcSIMRAMStreamer::getPackingMode
virtual tePackingMode getPackingMode() override
Definition: SIMRAMStreamer.h:47
tcSIMRAMStreamer::mnFrameInt
uint32_t mnFrameInt
Definition: SIMRAMStreamer.h:69
tcSIMRAMStreamer::mnOffset
uint32_t mnOffset
Definition: SIMRAMStreamer.h:62
tcSIMRAMStreamer::setPacking
virtual void setPacking(bool abEnable) override
Definition: SIMRAMStreamer.cpp:88
tcSIMRAMStreamer::setInterruptLevel
virtual void setInterruptLevel(unsigned int anNumFrames) override
Definition: SIMRAMStreamer.cpp:54
tcSIMRAMStreamer::isReady
virtual bool isReady() override
Definition: SIMRAMStreamer.cpp:83
tcSIMRAMStreamer::mnInterruptLevel
uint32_t mnInterruptLevel
Definition: SIMRAMStreamer.h:64
tcSIMRAMStreamer::mnBlocksize
uint32_t mnBlocksize
Definition: SIMRAMStreamer.h:63
tcSIMRAMStreamer::setFrameSize
virtual void setFrameSize(unsigned int anNumBytes) override
Definition: SIMRAMStreamer.cpp:49
tcSIMRAMStreamer::tcSIMRAMStreamer
tcSIMRAMStreamer()
Definition: SIMRAMStreamer.cpp:10
tcSIMRAMStreamer
Definition: SIMRAMStreamer.h:13
tcSIMRAMStreamer::mpBuffer
uint8_t * mpBuffer
Definition: SIMRAMStreamer.h:59
tcSIMRAMStreamer::initialize
virtual bool initialize() override
Definition: SIMRAMStreamer.cpp:28
tcSIMRAMStreamer::setFramesToCapture
virtual void setFramesToCapture(unsigned short anNumFrames) override
Definition: SIMRAMStreamer.cpp:65
tcSIMRAMStreamer::setInterruptEnable
virtual void setInterruptEnable(bool abEnable) override
Definition: SIMRAMStreamer.cpp:78