OpenCPN Partial API docs
|
Public Member Functions | |
CommDriverN2K (const std::string &s="n2k0") | |
virtual bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override=0 |
virtual void | SetListener (DriverListener &l) override |
Set the entity which will receive incoming data. | |
virtual std::shared_ptr< NavAddr2000 > | GetAddress (const N2kName &name) |
virtual int | SetTXPGN (int pgn) |
![]() | |
virtual std::pair< CommStatus, std::string > | Clone () |
Create a new virtual interface using a new instance of this driver. | |
std::string | Key () const |
virtual std::unordered_map< std::string, std::string > | GetAttributes () const |
Additional Inherited Members | |
![]() | |
const NavAddr::Bus | bus |
const std::string | iface |
Physical device for 0183, else a unique string. | |
std::unordered_map< std::string, std::string > | attributes |
![]() | |
AbstractCommDriver (NavAddr::Bus b) | |
AbstractCommDriver (NavAddr::Bus b, const std::string &s) | |
Definition at line 32 of file comm_drv_n2k.h.
CommDriverN2K::CommDriverN2K | ( | const std::string & | s = "n2k0" | ) |
Definition at line 38 of file comm_drv_n2k.cpp.
|
virtual |
Definition at line 41 of file comm_drv_n2k.cpp.
|
virtual |
Definition at line 50 of file comm_drv_n2k.cpp.
|
overridepure virtual |
Implements AbstractCommDriver.
Definition at line 43 of file comm_drv_n2k.cpp.
|
overridevirtual |
Set the entity which will receive incoming data.
By default, such data is ignored
Reimplemented from AbstractCommDriver.
Reimplemented in CommDriverN2KNet, CommDriverN2KSerial, and CommDriverN2KSocketCAN.
Definition at line 48 of file comm_drv_n2k.cpp.
|
inlinevirtual |
Definition at line 42 of file comm_drv_n2k.h.