OpenCPN Partial API docs
|
Public Member Functions | |
void | SetListener (DriverListener &l) override |
Set the entity which will receive incoming data. | |
bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr)=0 |
virtual bool | Open ()=0 |
virtual void | Close ()=0 |
void | UpdateAttrCanAddress () |
DriverStats | GetDriverStats () const override |
void | SetDriverStats (DriverStats _stats) |
![]() | |
CommDriverN2K (const std::string &s="n2k0") | |
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 |
Static Public Member Functions | |
static std::unique_ptr< CommDriverN2KSocketCAN > | Create (const ConnectionParams *params, DriverListener &listener) |
Protected Member Functions | |
CommDriverN2KSocketCAN (const ConnectionParams *params, DriverListener &listener) | |
![]() | |
AbstractCommDriver (NavAddr::Bus b) | |
AbstractCommDriver (NavAddr::Bus b, const std::string &s) | |
Protected Attributes | |
ConnectionParams | m_params |
DriverListener & | m_listener |
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 |
Definition at line 37 of file comm_drv_n2k_socketcan.h.
|
virtual |
Definition at line 400 of file comm_drv_n2k_socketcan.cpp.
|
protected |
Definition at line 382 of file comm_drv_n2k_socketcan.cpp.
|
static |
Definition at line 171 of file comm_drv_n2k_socketcan.cpp.
|
inlineoverridevirtual |
Implements DriverStatsProvider.
Definition at line 54 of file comm_drv_n2k_socketcan.h.
|
pure virtual |
Implements CommDriverN2K.
|
inline |
Definition at line 55 of file comm_drv_n2k_socketcan.h.
|
inlineoverridevirtual |
Set the entity which will receive incoming data.
By default, such data is ignored
Reimplemented from CommDriverN2K.
Definition at line 45 of file comm_drv_n2k_socketcan.h.
|
protected |
Definition at line 61 of file comm_drv_n2k_socketcan.h.
|
protected |
Definition at line 60 of file comm_drv_n2k_socketcan.h.