Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
GenICamStatusReporter.h
Go to the documentation of this file.
1 /*
2  * GenICamStatusReporter.h
3  *
4  * Created on: Apr 14, 2014
5  * Author: mitycam
6  */
7 
8 #ifndef GENICAMSTATUSREPORTER_H
9 #define GENICAMSTATUSREPORTER_H
10 
13 
14 using namespace SocCamera;
15 
17 public:
18  static const unsigned int gnDEFAULT_BUFFER_LOCATION = DEBUG_BUFFER_ADDR;
19  static const uint64_t gnDEFAULT_BUFFER_BYTESWRITTEN_LOCATION = DEBUG_BUFFER_BYTESWRITTEN_ADDR;
20  static const uint64_t gnDEFAULT_BUFFER_SIZE = 0x10000;
21 
22  tcGenICamStatusReporter(unsigned int buffer_size = gnDEFAULT_BUFFER_SIZE, uint64_t bytes_written_addr = gnDEFAULT_BUFFER_BYTESWRITTEN_LOCATION,
23  uint64_t buffer_location = gnDEFAULT_BUFFER_LOCATION);
24  virtual ~tcGenICamStatusReporter();
25 
27  virtual void updateStatus(teStatus aeStatus, const char *apMessage) override;
28 
29 protected:
30  unsigned int addText(const char* text);
31  unsigned int mnBufferSize;
33  unsigned int mnBytesTransmitted;
34  unsigned int mnWritePtr;
36  char* mpRingBuffer;
37 };
38 
39 #endif /* STDOUTSTATUSREPORTER_H_ */
tcStatusReporter::teStatus
teStatus
Definition: StatusReporter.h:32
tcGenICamStatusReporter::mpRegs
tcRegisterFile * mpRegs
Definition: GenICamStatusReporter.h:35
tcStatusReporter
Base Class for status reporting interface.
Definition: StatusReporter.h:16
DEBUG_BUFFER_BYTESWRITTEN_ADDR
const uint32_t DEBUG_BUFFER_BYTESWRITTEN_ADDR
Definition: RegisterFile.h:881
tcGenICamStatusReporter::mnBytesTransmitted
unsigned int mnBytesTransmitted
Definition: GenICamStatusReporter.h:33
StatusReporter.h
SocCamera
Definition: CameraTypes.h:7
tcGenICamStatusReporter::mpRingBuffer
char * mpRingBuffer
Definition: GenICamStatusReporter.h:36
tcGenICamStatusReporter::mnWritePtr
unsigned int mnWritePtr
Definition: GenICamStatusReporter.h:34
SocCamera::tcRegisterFile
Definition: RegisterFile.h:121
tcGenICamStatusReporter::mnBufferSize
unsigned int mnBufferSize
Definition: GenICamStatusReporter.h:31
DEBUG_BUFFER_ADDR
const uint32_t DEBUG_BUFFER_ADDR
Definition: RegisterFile.h:882
tcGenICamStatusReporter
Definition: GenICamStatusReporter.h:16
tcGenICamStatusReporter::mnBytesWrittenAddr
uint64_t mnBytesWrittenAddr
Definition: GenICamStatusReporter.h:32
RegisterFile.h