OpenCPN Partial API docs
Loading...
Searching...
No Matches
CommDriverN0183AndroidInt Class Reference
Inheritance diagram for CommDriverN0183AndroidInt:
CommDriverN0183 DriverStatsProvider AbstractCommDriver

Public Member Functions

 CommDriverN0183AndroidInt (const ConnectionParams *params, DriverListener &l)
bool Open ()
void Close ()
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.
Public Member Functions inherited from CommDriverN0183
 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 ()
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 Member Functions inherited from DriverStatsProvider
virtual ~DriverStatsProvider ()=default
 Destroy the Driver Stats Provider object.

Additional Inherited Members

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
Protected Member Functions inherited from CommDriverN0183
void SendToListener (const std::string &payload, DriverListener &listener, const ConnectionParams &params)
 Wrap argument string in NavMsg pointer, forward to listener.
Protected Member Functions inherited from AbstractCommDriver
 AbstractCommDriver (NavAddr::Bus b)
 AbstractCommDriver (NavAddr::Bus b, const std::string &s)

Detailed Description

Definition at line 56 of file comm_drv_n0183_android_int.h.

Constructor & Destructor Documentation

◆ CommDriverN0183AndroidInt()

CommDriverN0183AndroidInt::CommDriverN0183AndroidInt ( const ConnectionParams * params,
DriverListener & l )

Definition at line 124 of file comm_drv_n0183_android_int.cpp.

◆ ~CommDriverN0183AndroidInt()

CommDriverN0183AndroidInt::~CommDriverN0183AndroidInt ( )
virtual

Definition at line 145 of file comm_drv_n0183_android_int.cpp.

Member Function Documentation

◆ Close()

void CommDriverN0183AndroidInt::Close ( )

Definition at line 153 of file comm_drv_n0183_android_int.cpp.

◆ GetDriverStats()

DriverStats CommDriverN0183AndroidInt::GetDriverStats ( ) const
inlineoverridevirtual

Get the Driver Statistics.

Returns
DriverStats Object containing the driver statistics.

Implements DriverStatsProvider.

Definition at line 72 of file comm_drv_n0183_android_int.h.

◆ GetParams()

const ConnectionParams & CommDriverN0183AndroidInt::GetParams ( ) const
inlineoverridevirtual

Implements CommDriverN0183.

Definition at line 67 of file comm_drv_n0183_android_int.h.

◆ Open()

bool CommDriverN0183AndroidInt::Open ( )

Definition at line 147 of file comm_drv_n0183_android_int.cpp.

◆ SendMessage()

bool CommDriverN0183AndroidInt::SendMessage ( std::shared_ptr< const NavMsg > msg,
std::shared_ptr< const NavAddr > addr )
overridevirtual

Implements CommDriverN0183.

Definition at line 165 of file comm_drv_n0183_android_int.cpp.


The documentation for this class was generated from the following files: