OpenCPN Partial API docs
CommDriverN2KSerial Class Reference
Inheritance diagram for CommDriverN2KSerial:
CommDriverN2K AbstractCommDriver

Public Member Functions

 CommDriverN2KSerial (const ConnectionParams *params, DriverListener &listener)
 
void Activate () override
 Register driver and possibly do other post-ctor steps.
 
void SetListener (DriverListener &l) override
 Set the entity which will receive incoming data. More...
 
bool Open ()
 
void Close ()
 
bool SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override
 
int SetTXPGN (int pgn) override
 
void SetSecThreadActive (void)
 
void SetSecThreadInActive (void)
 
bool IsSecThreadActive () const
 
void SetSecondaryThread (CommDriverN2KSerialThread *secondary_Thread)
 
CommDriverN2KSerialThreadGetSecondaryThread ()
 
void SetThreadRunFlag (int run)
 
void handle_N2K_SERIAL_RAW (CommDriverN2KSerialEvent &event)
 
int GetMfgCode ()
 
- Public Member Functions inherited from CommDriverN2K
 CommDriverN2K (const std::string &s="n2k0")
 
virtual std::shared_ptr< NavAddrGetAddress (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. More...
 
std::string Key () const
 
virtual std::unordered_map< std::string, std::string > GetAttributes () const
 

Public Attributes

std::atomic_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.
 
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)
 

Detailed Description

Definition at line 54 of file comm_drv_n2k_serial.h.

Member Function Documentation

◆ SetListener()

void CommDriverN2KSerial::SetListener ( DriverListener l)
inlineoverridevirtual

Set the entity which will receive incoming data.

By default, such data is ignored

Reimplemented from CommDriverN2K.

Definition at line 64 of file comm_drv_n2k_serial.h.


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