HDLC-Daemon
|
Class AliveGuard. More...
#include <AliveGuard.h>
Public Member Functions | |
AliveGuard () | |
The constructor of AccessGuard objects. More... | |
bool | UpdateSerialPortState (bool a_bAlive) |
Change the serial port state. More... | |
bool | IsAlive () const |
Query whether the related serial port is currently alive. More... | |
Class AliveGuard.
This guard object tracks whether a device attached via serial connections is alive, i.e., the baud rate is known and the HDLC protocol is initialized
Definition at line 32 of file AliveGuard.h.
|
inline |
The constructor of AccessGuard objects.
On creation, a serial port is considered as alive
Definition at line 38 of file AliveGuard.h.
|
inline |
Query whether the related serial port is currently alive.
Query whether the related serial device is currently alive
Definition at line 60 of file AliveGuard.h.
|
inline |
Change the serial port state.
Change the serial port state
a_bAlive | the new state of the related serial device |
Definition at line 48 of file AliveGuard.h.