25#ifndef _COMMDRIVERN2K_H__
26#define _COMMDRIVERN2K_H__
30#include "comm_driver.h"
39 virtual bool SendMessage(std::shared_ptr<const NavMsg> msg,
40 std::shared_ptr<const NavAddr> addr) = 0;
42 virtual std::shared_ptr<NavAddr> GetAddress(
const N2kName& name);
43 virtual int SetTXPGN(
int pgn){
return 0; }
Common interface for all drivers.
Abstract driver interface for NMEA2000 messages.
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.