Wiselib
Public Types | Public Member Functions
wiselib::FloodingMessage< OsModel_P, Radio_P > Class Template Reference

#include <flooding_message.h>

List of all members.

Public Types

enum  data_positions { NODE_ID_POS = sizeof(message_id_t), SEQ_NR_POS = NODE_ID_POS + sizeof(node_id_t), PAYLOAD_POS = SEQ_NR_POS + sizeof(seq_nr_t) }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef uint16_t seq_nr_t
typedef Radio::node_id_t node_id_t
typedef Radio::block_data_t block_data_t
typedef Radio::size_t size_t
typedef Radio::message_id_t message_id_t

Public Member Functions

 FloodingMessage ()
message_id_t msg_id ()
void set_msg_id (message_id_t id)
node_id_t node_id ()
void set_node_id (node_id_t id)
seq_nr_t seq_nr ()
void set_seq_nr (seq_nr_t seq)
size_t payload_size ()
block_data_tpayload ()
void set_payload (size_t len, block_data_t *buf)
size_t buffer_size ()

template<typename OsModel_P, typename Radio_P>
class wiselib::FloodingMessage< OsModel_P, Radio_P >


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P >
typedef Radio::block_data_t wiselib::FloodingMessage< OsModel_P, Radio_P >::block_data_t
template<typename OsModel_P , typename Radio_P >
typedef Radio::message_id_t wiselib::FloodingMessage< OsModel_P, Radio_P >::message_id_t
template<typename OsModel_P , typename Radio_P >
typedef Radio::node_id_t wiselib::FloodingMessage< OsModel_P, Radio_P >::node_id_t
template<typename OsModel_P , typename Radio_P >
typedef OsModel_P wiselib::FloodingMessage< OsModel_P, Radio_P >::OsModel
template<typename OsModel_P , typename Radio_P >
typedef Radio_P wiselib::FloodingMessage< OsModel_P, Radio_P >::Radio
template<typename OsModel_P , typename Radio_P >
typedef uint16_t wiselib::FloodingMessage< OsModel_P, Radio_P >::seq_nr_t
template<typename OsModel_P , typename Radio_P >
typedef Radio::size_t wiselib::FloodingMessage< OsModel_P, Radio_P >::size_t

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P >
enum wiselib::FloodingMessage::data_positions
Enumerator:
NODE_ID_POS 
SEQ_NR_POS 
PAYLOAD_POS 

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P >
wiselib::FloodingMessage< OsModel_P, Radio_P >::FloodingMessage ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P >
size_t wiselib::FloodingMessage< OsModel_P, Radio_P >::buffer_size ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
message_id_t wiselib::FloodingMessage< OsModel_P, Radio_P >::msg_id ( ) [inline]
template<typename OsModel_P , typename Radio_P >
node_id_t wiselib::FloodingMessage< OsModel_P, Radio_P >::node_id ( ) [inline]
template<typename OsModel_P , typename Radio_P >
block_data_t* wiselib::FloodingMessage< OsModel_P, Radio_P >::payload ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
size_t wiselib::FloodingMessage< OsModel_P, Radio_P >::payload_size ( ) [inline]
template<typename OsModel_P , typename Radio_P >
seq_nr_t wiselib::FloodingMessage< OsModel_P, Radio_P >::seq_nr ( ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::FloodingMessage< OsModel_P, Radio_P >::set_msg_id ( message_id_t  id) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::FloodingMessage< OsModel_P, Radio_P >::set_node_id ( node_id_t  id) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::FloodingMessage< OsModel_P, Radio_P >::set_payload ( size_t  len,
block_data_t buf 
) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::FloodingMessage< OsModel_P, Radio_P >::set_seq_nr ( seq_nr_t  seq) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines