DESERT 4.0.0
RxFrameSet Class Reference

#include <frame-set.h>

Collaboration diagram for RxFrameSet:
Collaboration graph

Public Member Functions

 RxFrameSet ()
 
 ~RxFrameSet ()
 
int tot_length () const
 
size_t curr_length () const
 
double t_last_rx_frame () const
 
std::string binPayload () const
 
void setError ()
 
bool getError () const
 
std::string binPayload (bool) const
 
void UpdateRxFrameSet (char *, size_t, size_t, int, double)
 
std::string displaySet ()
 

Private Attributes

char binPayload_ [MAX_BIN_PAYLOAD_ARRAY_LENGTH]
 
char binPayloadCheck_ [MAX_BIN_PAYLOAD_CHECK_ARRAY_LENGTH]
 
int tot_length_
 
size_t curr_length_
 
double t_last_rx_frame_
 
bool error_
 

Constructor & Destructor Documentation

◆ RxFrameSet()

RxFrameSet::RxFrameSet ( )

◆ ~RxFrameSet()

RxFrameSet::~RxFrameSet ( )

Member Function Documentation

◆ binPayload() [1/2]

std::string RxFrameSet::binPayload ( ) const
inline

Return the content of the binPayload_ from 0 until tot_length_ array.

References binPayload().

Referenced by binPayload(), and displaySet().

Here is the call graph for this function:

◆ binPayload() [2/2]

std::string RxFrameSet::binPayload ( bool  extract) const

Return the content of the binPaylaod_

Parameters
extract,iftrue return binPaylaod_ from 0 up to tot_length_ array, otherwise up to MAX_BIN_PAYLOAD_ARRAY_LENGTH.

References binPayload_, and tot_length_.

◆ curr_length()

size_t RxFrameSet::curr_length ( ) const
inline

Reference to the curr_length_ variable.

References curr_length_.

Referenced by displaySet().

◆ displaySet()

std::string RxFrameSet::displaySet ( )

◆ getError()

bool RxFrameSet::getError ( ) const
inline

References error_.

◆ setError()

void RxFrameSet::setError ( )
inline

References error_.

Referenced by Uwal::reassembleFrames().

◆ t_last_rx_frame()

double RxFrameSet::t_last_rx_frame ( ) const
inline

Reference to the pktID_ variable.

References t_last_rx_frame_.

Referenced by displaySet().

◆ tot_length()

int RxFrameSet::tot_length ( ) const
inline

Reference to the tot_length_ variable.

References tot_length_.

Referenced by displaySet(), and UpdateRxFrameSet().

◆ UpdateRxFrameSet()

void RxFrameSet::UpdateRxFrameSet ( char *  frame,
size_t  offset,
size_t  length,
int  tot_length,
double  time 
)

References binPayload_, binPayloadCheck_, curr_length_, t_last_rx_frame_, tot_length(), and tot_length_.

Referenced by Uwal::reassembleFrames().

Here is the call graph for this function:

Member Data Documentation

◆ binPayload_

char RxFrameSet::binPayload_[MAX_BIN_PAYLOAD_ARRAY_LENGTH]
private

array to store binary data received as frames.

Referenced by binPayload(), RxFrameSet(), and UpdateRxFrameSet().

◆ binPayloadCheck_

char RxFrameSet::binPayloadCheck_[MAX_BIN_PAYLOAD_CHECK_ARRAY_LENGTH]
private

array to count already received frames.

Referenced by displaySet(), RxFrameSet(), and UpdateRxFrameSet().

◆ curr_length_

size_t RxFrameSet::curr_length_
private

◆ error_

bool RxFrameSet::error_
private

Referenced by getError(), RxFrameSet(), and setError().

◆ t_last_rx_frame_

double RxFrameSet::t_last_rx_frame_
private

◆ tot_length_

int RxFrameSet::tot_length_
private

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