INFM HIL Interface
Interface between Artery simulation and DuTs
Public Member Functions | List of all members
sim_interface::dut_connector::can::CANConnectorCodec Class Referenceabstract

The CAN Connector Codec defines the interface that each codec implementation must fulfill. More...

#include <CANConnectorCodec.h>

Inheritance diagram for sim_interface::dut_connector::can::CANConnectorCodec:
sim_interface::dut_connector::can::BmwCodec

Public Member Functions

virtual std::pair< std::vector< __u8 >, std::string > convertSimEventToFrame (SimEvent event)=0
 
virtual std::vector< SimEventconvertFrameToSimEvent (struct canfd_frame frame, bool isCanfd)=0
 

Detailed Description

The CAN Connector Codec defines the interface that each codec implementation must fulfill.

Member Function Documentation

◆ convertFrameToSimEvent()

virtual std::vector< SimEvent > sim_interface::dut_connector::can::CANConnectorCodec::convertFrameToSimEvent ( struct canfd_frame  frame,
bool  isCanfd 
)
pure virtual

Converts a CAN/CANFD frame to the corresponding simulation events.

Parameters
frame- The frame that we want to transform.
isCanfd- Flag for CANFD frames.
Returns
The simulation events that were contained in the CAN/CANFD frame.

Implemented in sim_interface::dut_connector::can::BmwCodec.

◆ convertSimEventToFrame()

virtual std::pair< std::vector< __u8 >, std::string > sim_interface::dut_connector::can::CANConnectorCodec::convertSimEventToFrame ( SimEvent  event)
pure virtual

Converts an simulation event to a CAN/CANFD payload and determines the sendOperation name.

Parameters
event- The simulation event we want to transform into a CAN/CANFD frame payload.
Returns
The CAN/CANFD frame payload and the sendOperation name.

Implemented in sim_interface::dut_connector::can::BmwCodec.


The documentation for this class was generated from the following file: