|
Critical Link MityCam SoC Firmware
1.0
Critical Link MityCam SoC Firmware
|
Go to the documentation of this file. 1 #ifndef U3VISIONINTERFACE_H
2 #define U3VISIONINTERFACE_H
11 #include "libdaq/gpio.h"
20 #define SERIAL_PORT_0 "/dev/ttyS0"
21 #define DEFAULT_BUFF_SIZE (2048)
45 virtual void getInput(std::string *apStringOutput);
53 virtual std::string
parseInput(std::string &arStringToParse);
59 virtual void respond(std::string anResponse);
65 virtual void finish(std::string &arOriginalBuffer);
72 static void pushAllBack(uint8_t *apBuf, std::vector<uint8_t> &arVec,
int32 num);
73 static bool clipToPrefix(std::vector<uint8_t> &arVec);
74 static bool checkCommand(std::vector<uint8_t> &arVec);
75 void processCommand(std::vector<uint8_t> &arVec);
76 void clipCommand(std::vector<uint8_t> &arVec);
78 void sendMessage(tsU3VMsg &arMsg);
91 static void configure_port(
int32 fd);
98 static int32 open_port(
const char *apPath);
104 std::vector<uint8_t> buff;
107 std::unique_ptr<MityDSP::tcGpio> mcGpio;
113 bool mbLogTransactions;
118 #endif // U3VISIONINTERFACE_H
virtual void finish(std::string &arOriginalBuffer)
Definition: U3VisionInterface.cpp:412
virtual void update_payload_size(const uint32_t payload_size)
Definition: U3VisionInterface.cpp:357
int32_t int32
Definition: Types.h:8
tcU3VisionInterface(tcIOChannel *apChannel, tcSensorBoard *apSensor, std::string *apData)
Definition: U3VisionInterface.cpp:51
virtual void getInput(std::string *apStringOutput)
Definition: U3VisionInterface.cpp:81
virtual std::string parseInput(std::string &arStringToParse)
Definition: U3VisionInterface.cpp:85
Definition: U3VisionInterface.h:25
Definition: Observer.h:12
Definition: U3VDelegate.h:31
Camera Output IO channel management class.
Definition: IOChannel.h:34
Definition: PayloadSetter.h:11
virtual void * run()
Definition: U3VisionInterface.cpp:127
This file contains the tcCommandInterface class.
Definition: CameraTypes.h:7
virtual ~tcU3VisionInterface()
Definition: U3VisionInterface.cpp:76
Definition: RegisterFile.h:121
virtual void respond(std::string anResponse)
Definition: U3VisionInterface.cpp:90
Definition: SensorBoard.h:40
Definition: CommandInterface.h:25
void update(tsUpdate anMsg)
Definition: U3VisionInterface.cpp:363