25 #ifndef _COMMDRIVERN2K_H__
26 #define _COMMDRIVERN2K_H__
30 #include "model/comm_driver.h"
38 virtual bool SendMessage(std::shared_ptr<const NavMsg> msg,
39 std::shared_ptr<const NavAddr> addr)
override = 0;
41 virtual std::shared_ptr<NavAddr> GetAddress(
const N2kName& name);
42 virtual int SetTXPGN(
int pgn){
return 0; }
Common interface for all drivers.
virtual 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...
N2k uses CAN which defines the basic properties of messages.