s-net-Tools
|
#include <HdlcdPacketCtrl.h>
Public Types | |
enum | E_CTRL_TYPE { CTRL_TYPE_PORT_STATUS = 0x00, CTRL_TYPE_ECHO = 0x10, CTRL_TYPE_KEEP_ALIVE = 0x20, CTRL_TYPE_PORT_KILL = 0x30, CTRL_TYPE_UNSET = 0xFF } |
Public Member Functions | |
E_CTRL_TYPE | GetPacketType () const |
bool | GetIsAlive () const |
bool | GetIsLockedByOthers () const |
bool | GetIsLockedBySelf () const |
bool | GetDesiredLockState () const |
![]() | |
Frame () | |
virtual | ~Frame () |
size_t | BytesNeeded () const |
bool | ParseBytes (const unsigned char *a_ReadBuffer, size_t &a_ReadBufferOffset, size_t &a_BytesAvailable) |
Static Public Member Functions | |
static std::shared_ptr< HdlcdPacketCtrl > | CreateDeserializedPacket () |
static HdlcdPacketCtrl | CreatePortStatusRequest (bool a_bLockSerialPort) |
static HdlcdPacketCtrl | CreatePortStatusResponse (bool a_bIsAlive, bool a_bIsLockedByOthers, bool a_bIsLockedBySelf) |
static HdlcdPacketCtrl | CreateEchoRequest () |
static HdlcdPacketCtrl | CreateKeepAliveRequest () |
static HdlcdPacketCtrl | CreatePortKillRequest () |
Additional Inherited Members | |
![]() | |
std::vector< unsigned char > | m_Buffer |
size_t | m_BytesRemaining |
Definition at line 43 of file HdlcdPacketCtrl.h.
Enumerator | |
---|---|
CTRL_TYPE_PORT_STATUS | |
CTRL_TYPE_ECHO | |
CTRL_TYPE_KEEP_ALIVE | |
CTRL_TYPE_PORT_KILL | |
CTRL_TYPE_UNSET |
Definition at line 46 of file HdlcdPacketCtrl.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 79 of file HdlcdPacketCtrl.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 91 of file HdlcdPacketCtrl.h.
|
inlinestatic |
Definition at line 63 of file HdlcdPacketCtrl.h.
|
inlinestatic |
Definition at line 70 of file HdlcdPacketCtrl.h.
|
inline |
Definition at line 121 of file HdlcdPacketCtrl.h.
|
inline |
Definition at line 103 of file HdlcdPacketCtrl.h.
|
inline |
Definition at line 109 of file HdlcdPacketCtrl.h.
|
inline |
Definition at line 115 of file HdlcdPacketCtrl.h.
|
inline |
Definition at line 98 of file HdlcdPacketCtrl.h.