DUNE: Uniform Navigational Environment  2016.09.0
Transports::Seatrac::CidDatSendMsg Struct Reference

Public Member Functions

int packetDataBuild (std::vector< char > msg, int dest_id_t)
 
int packetDataNextPart (int next)
 
int packetDataSendStatus (void)
 

Public Attributes

uint8_t dest_id
 
AmsgType_E msg_type
 
uint8_t packet_len
 
std::string packet_data
 
CST_E status
 
uint8_t beacon_id
 
int lock_flag
 
uint8_t n_sub_messages
 
int n_sub_rest
 
uint8_t message_index
 
std::string hex
 
int error_number
 
Time::Counter< double > msg_timer
 

Member Function Documentation

int Transports::Seatrac::CidDatSendMsg::packetDataBuild ( std::vector< char >  msg,
int  dest_id_t 
)
inline

Constructs data packets.

Parameters
[in]msgdata
[in]dest_id_tdestination id.
Returns
return index.

References dest_id, error_number, hex, lock_flag, message_index, msg_timer, n_sub_messages, n_sub_rest, packet_data, and packet_len.

Referenced by Transports::Seatrac::Task::consume().

int Transports::Seatrac::CidDatSendMsg::packetDataNextPart ( int  next)
inline
int Transports::Seatrac::CidDatSendMsg::packetDataSendStatus ( void  )
inline

Returns if packages constructor is free.

Returns
lock flag.

References lock_flag.

Referenced by Transports::Seatrac::Task::consume().

Member Data Documentation

uint8_t Transports::Seatrac::CidDatSendMsg::beacon_id
uint8_t Transports::Seatrac::CidDatSendMsg::dest_id
int Transports::Seatrac::CidDatSendMsg::error_number
std::string Transports::Seatrac::CidDatSendMsg::hex
uint8_t Transports::Seatrac::CidDatSendMsg::message_index
Time::Counter<double> Transports::Seatrac::CidDatSendMsg::msg_timer
uint8_t Transports::Seatrac::CidDatSendMsg::n_sub_messages
int Transports::Seatrac::CidDatSendMsg::n_sub_rest
std::string Transports::Seatrac::CidDatSendMsg::packet_data
uint8_t Transports::Seatrac::CidDatSendMsg::packet_len
Collaboration diagram for Transports::Seatrac::CidDatSendMsg:
Collaboration graph