26#ifndef _COMMDRIVERN2KSOCKETCAN_H
27#define _COMMDRIVERN2KSOCKETCAN_H
33#include "model/comm_drv_n2k.h"
35#include "model/conn_params.h"
40 static std::unique_ptr<CommDriverN2KSocketCAN> Create(
47 bool SendMessage(std::shared_ptr<const NavMsg> msg,
48 std::shared_ptr<const NavAddr> addr) = 0;
50 virtual bool Open() = 0;
51 virtual void Close() = 0;
53 void UpdateAttrCanAddress();
54 DriverStats GetDriverStats()
const override {
return m_driver_stats; }
55 void SetDriverStats(
DriverStats _stats) { m_driver_stats = _stats; }
65 std::string m_portstring;
66 std::string m_baudrate;
void SetListener(DriverListener &l) override
Set the entity which will receive incoming data.
Interface implemented by transport layer and possible other parties like test code which should handl...
Driver interface providing driver statistics.
Continuously report driver stats to CommDrvRegistry.evt_driver_stats.
Communication statistics infrastructure.
Driver statistics report.