|
INFM HIL Interface
Interface between Artery simulation and DuTs
|
The Connector enables the communication over a CAN/CANFD interface. It builds upon the socketCAN BCM socket and boost::asio. More...
#include <CANConnector.h>
Public Member Functions | |
| CANConnector (std::shared_ptr< SharedQueue< SimEvent > > queueDuTToSim, const CANConnectorConfig &config) | |
| ~CANConnector () | |
| ConnectorInfo | getConnectorInfo () override |
| void | handleEventSingle (const SimEvent &event) override |
Public Member Functions inherited from sim_interface::dut_connector::DuTConnector | |
| DuTConnector (std::shared_ptr< SharedQueue< SimEvent > > queueDuTToSim, const sim_interface::dut_connector::ConnectorConfig &config) | |
| ~DuTConnector () | |
| void | handleEvent (const SimEvent &simEvent) |
| void | sendEventToSim (const SimEvent &simEvent) |
Additional Inherited Members |
The Connector enables the communication over a CAN/CANFD interface. It builds upon the socketCAN BCM socket and boost::asio.
| sim_interface::dut_connector::can::CANConnector::CANConnector | ( | std::shared_ptr< SharedQueue< SimEvent > > | queueDuTToSim, |
| const CANConnectorConfig & | config | ||
| ) |
CAN Connector constructor. Configures the BCM socket based on the provided receive configuration. Starts the io_context- and receive-loop of the CAN Connector.
| queueDuTToSim | - Queue to write received simulation events to. |
| config | - Configuration for the connector. |
| sim_interface::dut_connector::can::CANConnector::~CANConnector | ( | ) |
CAN Connector destructor. Stops the io_context loop of the CAN Connector.
|
overridevirtual |
Gets information about the CAN Connector
Reimplemented from sim_interface::dut_connector::DuTConnector.
|
overridevirtual |
Decides what to do with the event we received from the simulation.
| event | - The event we received from the simulation. |
Reimplemented from sim_interface::dut_connector::DuTConnector.