HDLC-Daemon
HdlcFrame Class Reference

#include <HdlcFrame.h>

Public Types

enum  E_HDLC_FRAMETYPE {
  HDLC_FRAMETYPE_UNSET = 0, HDLC_FRAMETYPE_I, HDLC_FRAMETYPE_S_RR, HDLC_FRAMETYPE_S_RNR,
  HDLC_FRAMETYPE_S_REJ, HDLC_FRAMETYPE_S_SREJ, HDLC_FRAMETYPE_U_UI, HDLC_FRAMETYPE_U_SIM,
  HDLC_FRAMETYPE_U_SARM, HDLC_FRAMETYPE_U_UP, HDLC_FRAMETYPE_U_SABM, HDLC_FRAMETYPE_U_DISC,
  HDLC_FRAMETYPE_U_UA, HDLC_FRAMETYPE_U_SNRM, HDLC_FRAMETYPE_U_CMDR, HDLC_FRAMETYPE_U_TEST,
  HDLC_FRAMETYPE_U_XID
}
 

Public Member Functions

 HdlcFrame ()
 
void SetAddress (unsigned char a_Address)
 
unsigned char GetAddress () const
 
void SetHDLCFrameType (E_HDLC_FRAMETYPE a_eHDLCFrameType)
 
E_HDLC_FRAMETYPE GetHDLCFrameType () const
 
bool IsEmpty () const
 
bool IsIFrame () const
 
bool IsSFrame () const
 
bool IsUFrame () const
 
void SetPF (bool a_PF)
 
bool IsPF () const
 
void SetRSeq (unsigned char a_RSeq)
 
unsigned char GetRSeq () const
 
void SetSSeq (unsigned char a_SSeq)
 
unsigned char GetSSeq () const
 
void SetPayload (const std::vector< unsigned char > &a_Payload)
 
const std::vector< unsigned char > & GetPayload () const
 
bool HasPayload () const
 
const std::vector< unsigned char > Dissect () const
 

Detailed Description

Definition at line 43 of file HdlcFrame.h.

Member Enumeration Documentation

Enumerator
HDLC_FRAMETYPE_UNSET 
HDLC_FRAMETYPE_I 
HDLC_FRAMETYPE_S_RR 
HDLC_FRAMETYPE_S_RNR 
HDLC_FRAMETYPE_S_REJ 
HDLC_FRAMETYPE_S_SREJ 
HDLC_FRAMETYPE_U_UI 
HDLC_FRAMETYPE_U_SIM 
HDLC_FRAMETYPE_U_SARM 
HDLC_FRAMETYPE_U_UP 
HDLC_FRAMETYPE_U_SABM 
HDLC_FRAMETYPE_U_DISC 
HDLC_FRAMETYPE_U_UA 
HDLC_FRAMETYPE_U_SNRM 
HDLC_FRAMETYPE_U_CMDR 
HDLC_FRAMETYPE_U_TEST 
HDLC_FRAMETYPE_U_XID 

Definition at line 50 of file HdlcFrame.h.

Constructor & Destructor Documentation

HdlcFrame::HdlcFrame ( )
inline

Definition at line 45 of file HdlcFrame.h.

Member Function Documentation

const std::vector< unsigned char > HdlcFrame::Dissect ( ) const

Definition at line 41 of file HdlcFrame.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

unsigned char HdlcFrame::GetAddress ( ) const
inline

Definition at line 48 of file HdlcFrame.h.

Here is the caller graph for this function:

E_HDLC_FRAMETYPE HdlcFrame::GetHDLCFrameType ( ) const
inline

Definition at line 70 of file HdlcFrame.h.

Here is the caller graph for this function:

const std::vector<unsigned char>& HdlcFrame::GetPayload ( ) const
inline

Definition at line 86 of file HdlcFrame.h.

Here is the caller graph for this function:

unsigned char HdlcFrame::GetRSeq ( ) const
inline

Definition at line 80 of file HdlcFrame.h.

Here is the caller graph for this function:

unsigned char HdlcFrame::GetSSeq ( ) const
inline

Definition at line 83 of file HdlcFrame.h.

Here is the caller graph for this function:

bool HdlcFrame::HasPayload ( ) const
inline

Definition at line 87 of file HdlcFrame.h.

Here is the call graph for this function:

Here is the caller graph for this function:

bool HdlcFrame::IsEmpty ( ) const
inline

Definition at line 71 of file HdlcFrame.h.

Here is the caller graph for this function:

bool HdlcFrame::IsIFrame ( ) const
inline

Definition at line 72 of file HdlcFrame.h.

Here is the caller graph for this function:

bool HdlcFrame::IsPF ( ) const
inline

Definition at line 77 of file HdlcFrame.h.

Here is the caller graph for this function:

bool HdlcFrame::IsSFrame ( ) const
inline

Definition at line 73 of file HdlcFrame.h.

Here is the caller graph for this function:

bool HdlcFrame::IsUFrame ( ) const
inline

Definition at line 74 of file HdlcFrame.h.

Here is the caller graph for this function:

void HdlcFrame::SetAddress ( unsigned char  a_Address)
inline

Definition at line 47 of file HdlcFrame.h.

Here is the caller graph for this function:

void HdlcFrame::SetHDLCFrameType ( E_HDLC_FRAMETYPE  a_eHDLCFrameType)
inline

Definition at line 69 of file HdlcFrame.h.

Here is the caller graph for this function:

void HdlcFrame::SetPayload ( const std::vector< unsigned char > &  a_Payload)
inline

Definition at line 85 of file HdlcFrame.h.

Here is the caller graph for this function:

void HdlcFrame::SetPF ( bool  a_PF)
inline

Definition at line 76 of file HdlcFrame.h.

Here is the caller graph for this function:

void HdlcFrame::SetRSeq ( unsigned char  a_RSeq)
inline

Definition at line 79 of file HdlcFrame.h.

Here is the caller graph for this function:

void HdlcFrame::SetSSeq ( unsigned char  a_SSeq)
inline

Definition at line 82 of file HdlcFrame.h.

Here is the caller graph for this function:


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