DUNE: Uniform Navigational Environment  2019.02.0
Transports::Radio::XxMesg Struct Reference

Public Member Functions

 XxMesg (void)
 
void clear (void)
 
void setMsgData (std::string msgData)
 
void encodeHeader (Codes code_t, uint8_t src, uint8_t dst, uint8_t sync_n, bool ak, int max_data_packaging, double ttl)
 
void encodeHeader (uint8_t sync_n, int max_data_packaging, double ttl=-1.0)
 
bool testDecodeHeader (std::string rxData)
 
bool decodeHeader (std::string rxData)
 
uint8_t updateSync (uint8_t syncn)
 
void rx_to_imc_msg (void)
 
bool imc_to_tx_msg (const IMC::TelemetryMsg *tmsg, uint8_t src, uint8_t dst)
 

Public Attributes

Codes code
 
bool acknowledge
 
bool npart
 
bool start_part
 
uint8_t sync
 
uint8_t src_id
 
uint8_t des_id
 
uint8_t n_parts
 
std::vector< char > header
 
std::string str_header
 
std::string msg
 
std::string msg_compl
 
MsgState state
 
bool first_call
 
uint8_t past_sync
 
uint8_t n_parts_status
 
uint16_t n_parts_end_sync
 
bool error
 
double timestamp
 
uint16_t max_data_payload
 
std::string error_msg
 
Time::Counter< double > msg_timer
 
Time::Counter< double > msg_multi_timer
 
IMC::TelemetryMsg telemetry_imc
 
IMC::TelemetryMsg telemetry_imc_status
 

Constructor & Destructor Documentation

Transports::Radio::XxMesg::XxMesg ( void  )
inline

References clear().

Member Function Documentation

void Transports::Radio::XxMesg::encodeHeader ( Codes  code_t,
uint8_t  src,
uint8_t  dst,
uint8_t  sync_n,
bool  ak,
int  max_data_packaging,
double  ttl 
)
inline
void Transports::Radio::XxMesg::encodeHeader ( uint8_t  sync_n,
int  max_data_packaging,
double  ttl = -1.0 
)
inline
bool Transports::Radio::XxMesg::imc_to_tx_msg ( const IMC::TelemetryMsg *  tmsg,
uint8_t  src,
uint8_t  dst 
)
inline
void Transports::Radio::XxMesg::rx_to_imc_msg ( void  )
inline
void Transports::Radio::XxMesg::setMsgData ( std::string  msgData)
inline
bool Transports::Radio::XxMesg::testDecodeHeader ( std::string  rxData)
inline
uint8_t Transports::Radio::XxMesg::updateSync ( uint8_t  syncn)
inline

Referenced by decodeHeader().

Member Data Documentation

bool Transports::Radio::XxMesg::error
bool Transports::Radio::XxMesg::first_call

Referenced by clear(), and encodeHeader().

std::vector<char> Transports::Radio::XxMesg::header

Referenced by clear(), and encodeHeader().

uint16_t Transports::Radio::XxMesg::max_data_payload

Referenced by clear(), and encodeHeader().

std::string Transports::Radio::XxMesg::msg_compl
Time::Counter<double> Transports::Radio::XxMesg::msg_multi_timer
Time::Counter<double> Transports::Radio::XxMesg::msg_timer
uint16_t Transports::Radio::XxMesg::n_parts_end_sync
uint8_t Transports::Radio::XxMesg::n_parts_status
uint8_t Transports::Radio::XxMesg::past_sync

Referenced by clear(), and decodeHeader().

IMC::TelemetryMsg Transports::Radio::XxMesg::telemetry_imc

Referenced by clear(), and imc_to_tx_msg().

double Transports::Radio::XxMesg::timestamp
Collaboration diagram for Transports::Radio::XxMesg:
Collaboration graph