DESERT 3.5.1
Loading...
Searching...
No Matches
RxFrameSet Class Reference

#include <frame-set.h>

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_
 

Detailed Description

Definition at line 91 of file frame-set.h.

Constructor & Destructor Documentation

◆ RxFrameSet()

RxFrameSet::RxFrameSet ( )

Definition at line 95 of file frame-set.cpp.

◆ ~RxFrameSet()

RxFrameSet::~RxFrameSet ( )

Definition at line 106 of file frame-set.cpp.

Member Function Documentation

◆ binPayload() [1/2]

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

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

Definition at line 141 of file frame-set.h.

◆ 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.

Definition at line 130 of file frame-set.cpp.

◆ curr_length()

size_t RxFrameSet::curr_length ( ) const
inline

Reference to the curr_length_ variable.

Definition at line 123 of file frame-set.h.

◆ displaySet()

std::string RxFrameSet::displaySet ( )

Definition at line 111 of file frame-set.cpp.

◆ getError()

bool RxFrameSet::getError ( ) const
inline

Definition at line 153 of file frame-set.h.

◆ setError()

void RxFrameSet::setError ( )
inline

Definition at line 147 of file frame-set.h.

◆ t_last_rx_frame()

double RxFrameSet::t_last_rx_frame ( ) const
inline

Reference to the pktID_ variable.

Definition at line 132 of file frame-set.h.

◆ tot_length()

int RxFrameSet::tot_length ( ) const
inline

Reference to the tot_length_ variable.

Definition at line 114 of file frame-set.h.

◆ UpdateRxFrameSet()

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

Definition at line 150 of file frame-set.cpp.

Member Data Documentation

◆ binPayload_

char RxFrameSet::binPayload_[MAX_BIN_PAYLOAD_ARRAY_LENGTH]
private

array to store binary data received as frames.

Definition at line 94 of file frame-set.h.

◆ binPayloadCheck_

char RxFrameSet::binPayloadCheck_[MAX_BIN_PAYLOAD_CHECK_ARRAY_LENGTH]
private

array to count already received frames.

Definition at line 97 of file frame-set.h.

◆ curr_length_

size_t RxFrameSet::curr_length_
private

Definition at line 101 of file frame-set.h.

◆ error_

bool RxFrameSet::error_
private

Definition at line 103 of file frame-set.h.

◆ t_last_rx_frame_

double RxFrameSet::t_last_rx_frame_
private

Definition at line 102 of file frame-set.h.

◆ tot_length_

int RxFrameSet::tot_length_
private

Definition at line 100 of file frame-set.h.


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