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

Implements the Codec for the BMW DuT. More...

#include <BmwCodec.h>

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

Public Member Functions

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

Detailed Description

Implements the Codec for the BMW DuT.

Constructor & Destructor Documentation

◆ BmwCodec()

sim_interface::dut_connector::can::BmwCodec::BmwCodec ( )

Constructor.

Member Function Documentation

◆ convertFrameToSimEvent()

std::vector< SimEvent > sim_interface::dut_connector::can::BmwCodec::convertFrameToSimEvent ( struct canfd_frame  frame,
bool  isCanfd 
)
overridevirtual

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.

Implements sim_interface::dut_connector::can::CANConnectorCodec.

◆ convertSimEventToFrame()

std::pair< std::vector< __u8 >, std::string > sim_interface::dut_connector::can::BmwCodec::convertSimEventToFrame ( SimEvent  event)
overridevirtual

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

Implements sim_interface::dut_connector::can::CANConnectorCodec.


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