Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
CamParser.h
Go to the documentation of this file.
1 #ifndef CAM_PARSER_H
2 #define CAM_PARSER_H
3 
4 #include "DspParserBase.h"
5 #include "CCDspMsgHeader.h"
6 
7 using namespace SocCamera;
8 
10 {
11 public:
12  tcCamParser(char* apMsgBuf, int len, bool CheckSumRequired = true);
13  virtual ~tcCamParser(void);
14  virtual bool ResetParser(char *apOutBuf = NULL, int anOutBufLen = 0);
15  virtual int AddData(void *apData, int anLength);
16  virtual unsigned int ComputeChecksum(tsMsgHeader* apMessage,
17  void *apPayload = NULL,
18  int anPayloadLen = 0);
19  virtual void PrepareOutput(tsMsgHeader* apMessage,
20  void *apPayload = NULL,
21  int anPayloadLen = 0);
22  virtual void EnableChecksum(bool abEnable);
23 
24 protected:
25 
26  typedef enum
27  {
32  eeRecordBusted
33  } teMsgState;
34 
36  unsigned int mnOutOffset;
37  unsigned int mnMaxPayload;
38  unsigned char mnSeqNum;
40 };
41 
42 #endif
tcCamParser::mnMaxPayload
unsigned int mnMaxPayload
Maximum message payload length (bytes)
Definition: CamParser.h:37
DspParserBase.h
tcCamParser::mnSeqNum
unsigned char mnSeqNum
Output sequence number.
Definition: CamParser.h:38
SocCamera::tcDspParserBase
Definition: DspParserBase.h:78
CCDspMsgHeader.h
tcCamParser::eeSyncSearch
@ eeSyncSearch
Definition: CamParser.h:28
tcCamParser::eeProcessHeader
@ eeProcessHeader
Definition: CamParser.h:29
tcCamParser::teMsgState
teMsgState
Definition: CamParser.h:26
tcCamParser::mnOutOffset
unsigned int mnOutOffset
Current offset in the output buffer.
Definition: CamParser.h:36
SocCamera
Definition: CameraTypes.h:7
tcCamParser::mbCheckSumRqd
bool mbCheckSumRqd
True if checksums should be used.
Definition: CamParser.h:39
tcCamParser::eeProcessBody
@ eeProcessBody
Definition: CamParser.h:30
tcCamParser
Definition: CamParser.h:9
tcCamParser::eeMessageComplete
@ eeMessageComplete
Definition: CamParser.h:31
tsMsgHeader
Definition: CCDspMsgHeader.h:45
tcCamParser::meState
teMsgState meState
Current state of the parser.
Definition: CamParser.h:35