HDLC-Daemon
ProtocolState Class Reference

#include <ProtocolState.h>

Inheritance diagram for ProtocolState:
Collaboration diagram for ProtocolState:

Public Member Functions

 ProtocolState (std::shared_ptr< ISerialPortHandler > a_SerialPortHandler, boost::asio::io_service &a_IOService)
 
void Start ()
 
void Stop ()
 
void Shutdown ()
 
void SendPayload (const std::vector< unsigned char > &a_Payload, bool a_bReliable)
 
void TriggerNextHDLCFrame ()
 
void AddReceivedRawBytes (const unsigned char *a_Buffer, size_t a_Bytes)
 
void InterpretDeserializedFrame (const std::vector< unsigned char > &a_Payload, const HdlcFrame &a_HdlcFrame, bool a_bMessageInvalid)
 
bool IsAlive () const
 
bool IsRunning () const
 

Detailed Description

Definition at line 49 of file ProtocolState.h.

Constructor & Destructor Documentation

ProtocolState::ProtocolState ( std::shared_ptr< ISerialPortHandler a_SerialPortHandler,
boost::asio::io_service &  a_IOService 
)

Definition at line 42 of file ProtocolState.cpp.

Here is the call graph for this function:

Member Function Documentation

void ProtocolState::AddReceivedRawBytes ( const unsigned char *  a_Buffer,
size_t  a_Bytes 
)

Definition at line 137 of file ProtocolState.cpp.

Here is the call graph for this function:

void ProtocolState::InterpretDeserializedFrame ( const std::vector< unsigned char > &  a_Payload,
const HdlcFrame a_HdlcFrame,
bool  a_bMessageInvalid 
)

Definition at line 146 of file ProtocolState.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ProtocolState::IsAlive ( ) const
inline

Definition at line 63 of file ProtocolState.h.

bool ProtocolState::IsRunning ( ) const
inline

Definition at line 64 of file ProtocolState.h.

void ProtocolState::SendPayload ( const std::vector< unsigned char > &  a_Payload,
bool  a_bReliable 
)

Definition at line 106 of file ProtocolState.cpp.

void ProtocolState::Shutdown ( )

Definition at line 98 of file ProtocolState.cpp.

void ProtocolState::Start ( )

Definition at line 82 of file ProtocolState.cpp.

void ProtocolState::Stop ( )

Definition at line 90 of file ProtocolState.cpp.

void ProtocolState::TriggerNextHDLCFrame ( )

Definition at line 126 of file ProtocolState.cpp.


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