|
OpenCPN Partial API docs
|
Public Member Functions | |
| CommDriverN2KSerial (const ConnectionParams *params, DriverListener &listener) | |
| void | SetListener (DriverListener &l) override |
| Set the entity which will receive incoming data. | |
| bool | Open () |
| void | Close () |
| bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override |
| void | AddTxPGN (int pgn) |
| int | SetTXPGN (int pgn) override |
| void | SetSecThreadActive (void) |
| void | SetSecThreadInActive (void) |
| bool | IsSecThreadActive () const |
| void | SetSecondaryThread (CommDriverN2KSerialThread *secondary_Thread) |
| CommDriverN2KSerialThread * | GetSecondaryThread () |
| void | SetThreadRunFlag (int run) |
| void | handle_N2K_SERIAL_RAW (CommDriverN2KSerialEvent &event) |
| int | GetMfgCode () |
| DriverStats | GetDriverStats () const override |
Public Member Functions inherited from CommDriverN2K | |
| CommDriverN2K (const std::string &s="n2k0") | |
| virtual std::shared_ptr< NavAddr2000 > | GetAddress (const N2kName &name) |
Public Member Functions inherited from AbstractCommDriver | |
| 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 |
Public Attributes | |
| std::atomic_int | m_Thread_run_flag |
| ConnectionParams | m_params |
Public Attributes inherited from AbstractCommDriver | |
| const NavAddr::Bus | bus |
| const std::string | iface |
| Physical device for 0183, else a unique string. | |
| std::unordered_map< std::string, std::string > | attributes |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractCommDriver | |
| AbstractCommDriver (NavAddr::Bus b) | |
| AbstractCommDriver (NavAddr::Bus b, const std::string &s) | |
Definition at line 56 of file comm_drv_n2k_serial.h.
| CommDriverN2KSerial::CommDriverN2KSerial | ( | const ConnectionParams * | params, |
| DriverListener & | listener ) |
Definition at line 225 of file comm_drv_n2k_serial.cpp.
|
virtual |
Definition at line 304 of file comm_drv_n2k_serial.cpp.
| void CommDriverN2KSerial::AddTxPGN | ( | int | pgn | ) |
Definition at line 622 of file comm_drv_n2k_serial.cpp.
| void CommDriverN2KSerial::Close | ( | ) |
Definition at line 330 of file comm_drv_n2k_serial.cpp.
|
overridevirtual |
Implements DriverStatsProvider.
Definition at line 306 of file comm_drv_n2k_serial.cpp.
| int CommDriverN2KSerial::GetMfgCode | ( | ) |
Definition at line 502 of file comm_drv_n2k_serial.cpp.
|
inline |
Definition at line 87 of file comm_drv_n2k_serial.h.
| void CommDriverN2KSerial::handle_N2K_SERIAL_RAW | ( | CommDriverN2KSerialEvent & | event | ) |
Definition at line 454 of file comm_drv_n2k_serial.cpp.
|
inline |
Definition at line 82 of file comm_drv_n2k_serial.h.
| bool CommDriverN2KSerial::Open | ( | ) |
Definition at line 313 of file comm_drv_n2k_serial.cpp.
|
overridevirtual |
Implements CommDriverN2K.
Definition at line 357 of file comm_drv_n2k_serial.cpp.
|
inlineoverridevirtual |
Set the entity which will receive incoming data.
By default, such data is ignored
Reimplemented from CommDriverN2K.
Definition at line 65 of file comm_drv_n2k_serial.h.
|
inline |
Definition at line 84 of file comm_drv_n2k_serial.h.
|
inline |
Definition at line 80 of file comm_drv_n2k_serial.h.
|
inline |
Definition at line 81 of file comm_drv_n2k_serial.h.
|
inline |
Definition at line 90 of file comm_drv_n2k_serial.h.
|
overridevirtual |
Reimplemented from CommDriverN2K.
Definition at line 595 of file comm_drv_n2k_serial.cpp.
| ConnectionParams CommDriverN2KSerial::m_params |
Definition at line 98 of file comm_drv_n2k_serial.h.
| std::atomic_int CommDriverN2KSerial::m_Thread_run_flag |
Definition at line 97 of file comm_drv_n2k_serial.h.