INFM HIL Interface
Interface between Artery simulation and DuTs
CANConnectorCodec.h
1
26#ifndef SIM_TO_DUT_INTERFACE_CANCONNECTORCODEC_H
27#define SIM_TO_DUT_INTERFACE_CANCONNECTORCODEC_H
28
29// Project includes
30#include "../../Events/SimEvent.h"
31#include "InterfaceLogger.h"
32
33// System includes
34#include <vector>
35#include <linux/can.h>
36
38
45
46 public:
47
55 virtual std::pair<std::vector<__u8>, std::string> convertSimEventToFrame(SimEvent event) = 0;
56
65 virtual std::vector<SimEvent> convertFrameToSimEvent(struct canfd_frame frame, bool isCanfd) = 0;
66 };
67
68}
69
70#endif //SIM_TO_DUT_INTERFACE_CANCONNECTORCODEC_H
Event object used to communicate between simulation and DuTs.
Definition: SimEvent.h:47
The CAN Connector Codec defines the interface that each codec implementation must fulfill.
Definition: CANConnectorCodec.h:44
virtual std::pair< std::vector< __u8 >, std::string > convertSimEventToFrame(SimEvent event)=0
virtual std::vector< SimEvent > convertFrameToSimEvent(struct canfd_frame frame, bool isCanfd)=0
Definition: CANConnector.cpp:29