OpenCPN Partial API docs
|
SerialIo implementation based on serial/serial.h. More...
Public Member Functions | |
StdSerialIo (SendMsgFunc send_func, const std::string &port, unsigned baud) | |
bool | SetOutMsg (const wxString &msg) override |
Send a message to remote peer. | |
void | Start () override |
Start IO operations including input, possibly in separate thread. | |
DriverStats | GetStats () const override |
Retrieve updated driver statistics. | |
![]() | |
bool | IsRunning () const |
Return true if thread is running. | |
void | WaitUntilStopped () |
Block until thread invokes SignalExit(). | |
bool | WaitUntilStopped (std::chrono::duration< int > timeout) |
Block until thread invokes SignalExit() or timeout. | |
bool | WaitUntilStopped (std::chrono::duration< int > timeout, std::chrono::milliseconds &elapsed) |
Block until thread invokes SignalExit() or timeout. | |
Additional Inherited Members | |
![]() | |
static std::unique_ptr< SerialIo > | Create (SendMsgFunc send_msg_func, const std::string &port, unsigned baud) |
Factory. | |
![]() | |
SerialIo (SendMsgFunc send_msg_func, const std::string &port, unsigned baud) | |
![]() | |
bool | KeepGoing () const |
If true continue thread operation, else exit and invoke SignalExit() | |
void | SignalExit () |
Signal that thread has exited. | |
![]() | |
const wxString | m_portname |
const unsigned | m_baud |
const SendMsgFunc | m_send_msg_func |
DriverStats | m_stats |
std::mutex | m_stats_mutex |
TimedLogFilter | m_open_log_filter |
SerialIo implementation based on serial/serial.h.
Definition at line 53 of file std_serial_io.cpp.
|
inline |
Definition at line 55 of file std_serial_io.cpp.
|
overridevirtual |
Retrieve updated driver statistics.
Implements SerialIo.
Definition at line 167 of file std_serial_io.cpp.
|
overridevirtual |
Send a message to remote peer.
Implements SerialIo.
Definition at line 161 of file std_serial_io.cpp.
|
overridevirtual |
Start IO operations including input, possibly in separate thread.
Implements SerialIo.
Definition at line 156 of file std_serial_io.cpp.