OpenCPN Partial API docs
|
Local driver implementation, not visible outside this file. More...
Public Member Functions | |
CommDriverN2KSocketCanImpl (const ConnectionParams *p, DriverListener &l) | |
bool | Open () |
void | Close () |
void | SetN2K_Name () |
bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) |
int | DoAddressClaim () |
bool | SendAddressClaim (int proposed_source_address) |
bool | SendProductInfo () |
Worker & | GetWorker () |
void | UpdateAttrCanAddress () |
![]() | |
void | SetListener (DriverListener &l) override |
Set the entity which will receive incoming data. | |
void | UpdateAttrCanAddress () |
![]() | |
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 |
Friends | |
class | Worker |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< CommDriverN2KSocketCAN > | Create (const ConnectionParams *params, DriverListener &listener) |
![]() | |
const NavAddr::Bus | bus |
const std::string | iface |
Physical device for 0183, else a unique string. | |
std::unordered_map< std::string, std::string > | attributes |
![]() | |
CommDriverN2KSocketCAN (const ConnectionParams *params, DriverListener &listener) | |
![]() | |
AbstractCommDriver (NavAddr::Bus b) | |
AbstractCommDriver (NavAddr::Bus b, const std::string &s) | |
![]() | |
ConnectionParams | m_params |
DriverListener & | m_listener |
Local driver implementation, not visible outside this file.
Definition at line 126 of file comm_drv_n2k_socketcan.cpp.
|
inline |
Definition at line 130 of file comm_drv_n2k_socketcan.cpp.
|
inline |
Definition at line 139 of file comm_drv_n2k_socketcan.cpp.
|
virtual |
Implements CommDriverN2KSocketCAN.
Definition at line 210 of file comm_drv_n2k_socketcan.cpp.
|
inline |
Definition at line 152 of file comm_drv_n2k_socketcan.cpp.
|
virtual |
Implements CommDriverN2KSocketCAN.
Definition at line 204 of file comm_drv_n2k_socketcan.cpp.
bool CommDriverN2KSocketCanImpl::SendAddressClaim | ( | int | proposed_source_address | ) |
Definition at line 220 of file comm_drv_n2k_socketcan.cpp.
|
virtual |
Implements CommDriverN2KSocketCAN.
Definition at line 303 of file comm_drv_n2k_socketcan.cpp.
bool CommDriverN2KSocketCanImpl::SendProductInfo | ( | ) |
Definition at line 268 of file comm_drv_n2k_socketcan.cpp.
void CommDriverN2KSocketCanImpl::SetN2K_Name | ( | ) |
Definition at line 178 of file comm_drv_n2k_socketcan.cpp.
void CommDriverN2KSocketCanImpl::UpdateAttrCanAddress | ( | ) |
Definition at line 200 of file comm_drv_n2k_socketcan.cpp.
|
friend |
Definition at line 127 of file comm_drv_n2k_socketcan.cpp.