OpenCPN Partial API docs
|
Public Member Functions | |
CommDriverN0183Serial (const ConnectionParams *params, DriverListener &l) | |
bool | Open () |
void | Close () |
bool | IsSecThreadActive () const |
bool | IsGarminThreadActive () const |
void | StopGarminUSBIOThread (bool bPause) const |
const ConnectionParams & | GetParams () const override |
bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override |
DriverStats | GetDriverStats () const override |
Get the Driver Statistics. | |
![]() | |
CommDriverN0183 (NavAddr::Bus b, const std::string &s) | |
void | SetListener (DriverListener &l) override |
Set the entity which will receive incoming data. | |
virtual std::shared_ptr< NavAddr > | GetAddress () |
![]() | |
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 |
![]() | |
virtual | ~DriverStatsProvider ()=default |
Destroy the Driver Stats Provider object. | |
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 |
![]() | |
void | SendToListener (const std::string &payload, DriverListener &listener, const ConnectionParams ¶ms) |
Wrap argument string in NavMsg pointer, forward to listener. | |
![]() | |
AbstractCommDriver (NavAddr::Bus b) | |
AbstractCommDriver (NavAddr::Bus b, const std::string &s) | |
Definition at line 39 of file comm_drv_n0183_serial.h.
CommDriverN0183Serial::CommDriverN0183Serial | ( | const ConnectionParams * | params, |
DriverListener & | l | ||
) |
Definition at line 50 of file comm_drv_n0183_serial.cpp.
|
override |
Definition at line 69 of file comm_drv_n0183_serial.cpp.
void CommDriverN0183Serial::Close | ( | ) |
Definition at line 92 of file comm_drv_n0183_serial.cpp.
|
inlineoverridevirtual |
Get the Driver Statistics.
Implements DriverStatsProvider.
Definition at line 60 of file comm_drv_n0183_serial.h.
|
inlineoverridevirtual |
Implements CommDriverN0183.
Definition at line 55 of file comm_drv_n0183_serial.h.
bool CommDriverN0183Serial::IsGarminThreadActive | ( | ) | const |
Definition at line 118 of file comm_drv_n0183_serial.cpp.
|
inline |
Definition at line 50 of file comm_drv_n0183_serial.h.
bool CommDriverN0183Serial::Open | ( | ) |
Definition at line 71 of file comm_drv_n0183_serial.cpp.
|
overridevirtual |
Implements CommDriverN0183.
Definition at line 138 of file comm_drv_n0183_serial.cpp.
void CommDriverN0183Serial::StopGarminUSBIOThread | ( | bool | bPause | ) | const |
Definition at line 132 of file comm_drv_n0183_serial.cpp.