Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
IOCallback.h
Go to the documentation of this file.
1 #ifndef IOCALLBACK_H
2 #define IOCALLBACK_H
3 
4 #include <stdint.h>
5 #include "Utility/Observer.h"
6 #include <iostream>
7 
12 {
13  uint32_t mnFrameOffset;
14  uint32_t mnFrameNumBytes;
16  uint32_t meDataType;
18  uint32_t mnNumRows;
20  uint32_t mnNumCols;
21  uint32_t mnStartRow;
22  uint32_t mnEndRow;
23  uint32_t mnStartCol;
24  uint32_t mnEndCol;
25  uint32_t mnHorizontalBin;
26  uint32_t mnVerticalBin;
27 
28  uint32_t mnNumFrames;
29 };
30 std::ostream &operator << (std::ostream &os, const tsNewFrameMsg &msg);
31 
33 {
34 public:
36  {
37  }
38 
39  virtual ~tcIOCallback()
40  {
41  }
42 
43  virtual void processUpdate(tsNewFrameMsg *apMsg) = 0;
44 
48  virtual void invalidateCache(void* apMem, size_t anSize) = 0;
49 
53  virtual void* memory() = 0;
54 };
55 
57 {
58  int32_t mnNumFrames;
59 
61 
62  static const int32_t CONTINUOUS_CAPTURE = 0;
63  static const int32_t CANCEL_CAPTURE = -1;
64 };
65 
66 #endif // IOCALLBACK_H
tsCaptureRequest::CONTINUOUS_CAPTURE
static const int32_t CONTINUOUS_CAPTURE
Definition: IOCallback.h:62
tsNewFrameMsg::mnStartRow
uint32_t mnStartRow
ROI info with respect to sensor (unbinned)
Definition: IOCallback.h:21
tcIOCallback::tcIOCallback
tcIOCallback()
Definition: IOCallback.h:35
tcIOCallback::invalidateCache
virtual void invalidateCache(void *apMem, size_t anSize)=0
tcIOCallback
Definition: IOCallback.h:32
tcIOCallback::memory
virtual void * memory()=0
tsNewFrameMsg::mnStartCol
uint32_t mnStartCol
ROI info with respect to sensor (unbinned)
Definition: IOCallback.h:23
operator<<
std::ostream & operator<<(std::ostream &os, const tsNewFrameMsg &msg)
Observer.h
tsNewFrameMsg::mnNumFrames
uint32_t mnNumFrames
The number of frames available.
Definition: IOCallback.h:28
tsCaptureRequest::mpCallback
tcIOCallback * mpCallback
The pointer to callback to update when there is data available.
Definition: IOCallback.h:60
tsNewFrameMsg::mnFrameNumBytes
uint32_t mnFrameNumBytes
to be read.
Definition: IOCallback.h:15
tsCaptureRequest::mnNumFrames
int32_t mnNumFrames
The number of frames being requested; 0 for continuous run. -1 to drain requests.
Definition: IOCallback.h:58
tsNewFrameMsg::mnNumCols
uint32_t mnNumCols
Number of columns in current frame.
Definition: IOCallback.h:20
tsNewFrameMsg::mnHorizontalBin
uint32_t mnHorizontalBin
binning factor
Definition: IOCallback.h:25
tsNewFrameMsg::mnFrameOffset
uint32_t mnFrameOffset
beginning of the new frame that can be read.
Definition: IOCallback.h:13
tsNewFrameMsg::meDataType
uint32_t meDataType
teFrameDataType definition.
Definition: IOCallback.h:17
tsNewFrameMsg::mnEndRow
uint32_t mnEndRow
ROI info with respect to sensor (unbinned)
Definition: IOCallback.h:22
tcIOCallback::processUpdate
virtual void processUpdate(tsNewFrameMsg *apMsg)=0
tsNewFrameMsg
Definition: IOCallback.h:11
tsNewFrameMsg::mnVerticalBin
uint32_t mnVerticalBin
binning factor
Definition: IOCallback.h:26
tsNewFrameMsg::mnEndCol
uint32_t mnEndCol
ROI info with respect to sensor (unbinned)
Definition: IOCallback.h:24
tcIOCallback::~tcIOCallback
virtual ~tcIOCallback()
Definition: IOCallback.h:39
tsCaptureRequest
Definition: IOCallback.h:56
tsNewFrameMsg::mnNumRows
uint32_t mnNumRows
Number of rows in current frame.
Definition: IOCallback.h:19
tsCaptureRequest::CANCEL_CAPTURE
static const int32_t CANCEL_CAPTURE
Definition: IOCallback.h:63