25#ifndef _COMMDRIVERN2KSOCKETCAN_H
26#define _COMMDRIVERN2KSOCKETCAN_H
39 static std::unique_ptr<CommDriverN2KSocketCAN> Create(
46 bool SendMessage(std::shared_ptr<const NavMsg> msg,
47 std::shared_ptr<const NavAddr> addr) = 0;
49 virtual bool Open() = 0;
50 virtual void Close() = 0;
52 void UpdateAttrCanAddress();
54 void SetDriverStats(
DriverStats _stats) { m_driver_stats = _stats; }
65 std::string m_portstring;
66 std::string m_baudrate;
DriverStats GetDriverStats() const override
Get the Driver Statistics.
void SetListener(DriverListener &l) override
Set the entity which will receive incoming data.
Interface for handling incoming messages.
Driver interface providing driver statistics.
Continuously report driver stats to CommDrvRegistry.evt_driver_stats.
Communication statistics infrastructure.
Driver statistics report.