Critical Link MityCam SoC Firmware  1.0
Critical Link MityCam SoC Firmware
CameraLinkSerial.h
Go to the documentation of this file.
1 #ifndef CAMERALINKSERIAL_H
2 #define CAMERALINKSERIAL_H
3 
4 #include "CommandInterface.h"
5 #include "Sensors/SensorBoard.h"
6 
7 namespace SocCamera
8 {
9 
10 #define SERIAL_PORT_0 "/dev/ttyS0"
11 #define CAMERA_LINK_MAX_BUFF_SIZE (255)
12 
14 {
15 public:
16  tcCameraLinkSerial(tcIOChannel * apChannel, tcSensorBoard *apSensor,
17  std::string *apData);
18 
19  virtual ~tcCameraLinkSerial();
20 
26  virtual void getInput(std::string *apStringOutput);
27 
34  virtual std::string parseInput(std::string &arStringToParse);
35 
40  virtual void respond(std::string anResponse);
41 
46  virtual void finish(std::string &arOriginalBuffer);
47 
48 private:
53  static void configure_port(int32 fd);
54 
60  static int32 open_port(const char *apPath);
61 
65  int32 mhFD;
66 };
67 
68 }
69 
70 #endif // CAMERALINKSERIAL_H
int32
int32_t int32
Definition: Types.h:8
SensorBoard.h
SocCamera::tcCameraLinkSerial::tcCameraLinkSerial
tcCameraLinkSerial(tcIOChannel *apChannel, tcSensorBoard *apSensor, std::string *apData)
Definition: CameraLinkSerial.cpp:25
SocCamera::tcCameraLinkSerial::~tcCameraLinkSerial
virtual ~tcCameraLinkSerial()
Definition: CameraLinkSerial.cpp:38
tcIOChannel
Camera Output IO channel management class.
Definition: IOChannel.h:34
SocCamera::tcCameraLinkSerial::parseInput
virtual std::string parseInput(std::string &arStringToParse)
Definition: CameraLinkSerial.cpp:103
SocCamera::tcCameraLinkSerial
Definition: CameraLinkSerial.h:13
CommandInterface.h
This file contains the tcCommandInterface class.
SocCamera
Definition: CameraTypes.h:7
SocCamera::tcCameraLinkSerial::finish
virtual void finish(std::string &arOriginalBuffer)
Definition: CameraLinkSerial.cpp:183
SocCamera::tcCameraLinkSerial::getInput
virtual void getInput(std::string *apStringOutput)
Definition: CameraLinkSerial.cpp:43
SocCamera::tcCameraLinkSerial::respond
virtual void respond(std::string anResponse)
Definition: CameraLinkSerial.cpp:131
SocCamera::tcSensorBoard
Definition: SensorBoard.h:40
SocCamera::tcCommandInterface
Definition: CommandInterface.h:25