OpenCPN Partial API docs
|
Driver for NMEA0183 over serial connections. More...
#include <comm_drv_n0183_serial.h>
Public Member Functions | |
CommDriverN0183Serial (const ConnectionParams *params, DriverListener &l) | |
void | Activate () override |
Register driver and possibly do other post-ctor steps. More... | |
bool | Open () |
void | Close () |
void | SetSecThreadActive (void) |
void | SetSecThreadInActive (void) |
bool | IsSecThreadActive () const |
void | SetSecondaryThread (CommDriverN0183SerialThread *secondary_Thread) |
CommDriverN0183SerialThread * | GetSecondaryThread () |
void | SetThreadRunFlag (int run) |
ConnectionParams | GetParams () const |
bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override |
Public Member Functions inherited from CommDriverN0183 | |
CommDriverN0183 (NavAddr::Bus b, const std::string &s) | |
virtual bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override=0 |
void | SetListener (DriverListener &l) override |
Set the entity which will receive incoming data. More... | |
virtual std::shared_ptr< NavAddr > | GetAddress () |
void | Activate () override |
Register driver in the driver Registry. More... | |
Public Member Functions inherited from AbstractCommDriver | |
virtual bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr)=0 |
virtual void | Activate ()=0 |
Register driver in the driver Registry. More... | |
virtual void | SetListener (DriverListener &l) |
Set the entity which will receive incoming data. More... | |
virtual std::pair< CommStatus, std::string > | Clone () |
Create a new virtual interface using a new instance of this driver. More... | |
std::string | Key () const |
virtual std::unordered_map< std::string, std::string > | GetAttributes () const |
Public Attributes | |
int | m_Thread_run_flag |
Public Attributes inherited from AbstractCommDriver | |
const NavAddr::Bus | bus |
const std::string | iface |
Physical device for 0183, else a unique string. More... | |
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) | |
Driver for NMEA0183 over serial connections.
Definition at line 43 of file comm_drv_n0183_serial.h.
CommDriverN0183Serial::CommDriverN0183Serial | ( | const ConnectionParams * | params, |
DriverListener & | l | ||
) |
Definition at line 220 of file comm_drv_n0183_serial.cpp.
|
virtual |
Definition at line 239 of file comm_drv_n0183_serial.cpp.
|
overridevirtual |
Register driver and possibly do other post-ctor steps.
Reimplemented from CommDriverN0183.
Definition at line 300 of file comm_drv_n0183_serial.cpp.
void CommDriverN0183Serial::Close | ( | ) |
Definition at line 256 of file comm_drv_n0183_serial.cpp.
|
inline |
Definition at line 72 of file comm_drv_n0183_serial.h.
|
inline |
Definition at line 65 of file comm_drv_n0183_serial.h.
|
inline |
Definition at line 60 of file comm_drv_n0183_serial.h.
bool CommDriverN0183Serial::Open | ( | ) |
Definition at line 241 of file comm_drv_n0183_serial.cpp.
|
overridevirtual |
Implements CommDriverN0183.
Definition at line 305 of file comm_drv_n0183_serial.cpp.
|
inline |
Definition at line 62 of file comm_drv_n0183_serial.h.
|
inline |
Definition at line 58 of file comm_drv_n0183_serial.h.
|
inline |
Definition at line 59 of file comm_drv_n0183_serial.h.
|
inline |
Definition at line 68 of file comm_drv_n0183_serial.h.
int CommDriverN0183Serial::m_Thread_run_flag |
Definition at line 70 of file comm_drv_n0183_serial.h.