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

#include <echomsg.h>

List of all members.

Public Types

enum  { HELLO_MESSAGE = 42 }
enum  data_positions { MSG_ID_POS = 0, NBS_NUM = 1, PG_NUM = 2, PAYLOAD_POS = 3 }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef Radio::message_id_t message_id_t

Public Member Functions

 EchoMsg ()
 ~EchoMsg ()
message_id_t msg_id ()
void set_msg_id (message_id_t id)
uint8_tpayload ()
uint8_t payload_size ()
uint8_t buffer_size ()
block_data_tdata ()
void set_payload (uint8_t len, uint8_t *buf)
void add_nb_entry (node_id_t nb_id)
void add_nb_entry (node_id_t nb_id, uint8_t nb_st)
void add_nb_entry (node_id_t nb_id, uint8_t nb_st, uint16_t nd_st)
void add (uint8_t data)
void add (uint16_t data)
void set_nearby_list_size (uint8_t len)
void set_nb_list (uint8_t len, uint8_t *buf)
uint8_t nb_list_size (void)
uint8_t get_nb_list (uint8_t *buf)
void add_pg_payload (uint8_t app_id, uint8_t *data, uint8_t len)
void append_payload (uint8_t &app_id, uint8_t *data, uint8_t &len)
uint8_t get_pg_payloads_num (void)

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


Member Typedef Documentation

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

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P >
anonymous enum
Enumerator:
HELLO_MESSAGE 
template<typename OsModel_P , typename Radio_P >
enum wiselib::EchoMsg::data_positions
Enumerator:
MSG_ID_POS 
NBS_NUM 
PG_NUM 
PAYLOAD_POS 

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::add ( uint8_t  data) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::add ( uint16_t  data) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::add_nb_entry ( node_id_t  nb_id) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::add_nb_entry ( node_id_t  nb_id,
uint8_t  nb_st 
) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::add_nb_entry ( node_id_t  nb_id,
uint8_t  nb_st,
uint16_t  nd_st 
) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::add_pg_payload ( uint8_t  app_id,
uint8_t data,
uint8_t  len 
) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::append_payload ( uint8_t app_id,
uint8_t data,
uint8_t len 
) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::EchoMsg< OsModel_P, Radio_P >::buffer_size ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
block_data_t* wiselib::EchoMsg< OsModel_P, Radio_P >::data ( ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::EchoMsg< OsModel_P, Radio_P >::get_nb_list ( uint8_t buf) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::EchoMsg< OsModel_P, Radio_P >::get_pg_payloads_num ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
message_id_t wiselib::EchoMsg< OsModel_P, Radio_P >::msg_id ( ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::EchoMsg< OsModel_P, Radio_P >::nb_list_size ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t* wiselib::EchoMsg< OsModel_P, Radio_P >::payload ( void  ) [inline]
template<typename OsModel_P , typename Radio_P >
uint8_t wiselib::EchoMsg< OsModel_P, Radio_P >::payload_size ( ) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::set_msg_id ( message_id_t  id) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::set_nb_list ( uint8_t  len,
uint8_t buf 
) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::set_nearby_list_size ( uint8_t  len) [inline]
template<typename OsModel_P , typename Radio_P >
void wiselib::EchoMsg< OsModel_P, Radio_P >::set_payload ( uint8_t  len,
uint8_t buf 
) [inline]

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