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

#include <e2ec_message.h>

List of all members.

Public Types

enum  { E2EC_TYPE = 111, E2EC_RRQ_TYPE = 112, E2EC_RPL_TYPE = 113 }
enum  { MAX_MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH, MAX_PAYLOAD_LENGTH = Radio::MAX_MESSAGE_LENGTH - PAYLOAD_POS, HEADER_LENGTH = PAYLOAD_POS }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Radio::block_data_t block_data_t
typedef Radio::node_id_t node_id_t
typedef Radio::message_id_t message_id_t

Public Member Functions

 E2ecMessage (node_id_t src=Radio::NULL_NODE_ID, node_id_t dest=Radio::NULL_NODE_ID, uint16_t seq_no=0)
message_id_t msg_id ()
uint8_t seq_no ()
uint8_t payload_size ()
node_id_t source ()
void set_source (node_id_t src)
node_id_t dest ()
void set_dest (node_id_t dest)
uint8_t hops ()
void set_hops (uint8_t hops)
void set_payload (uint8_t len, block_data_t *data)
block_data_tpayload (void)
uint8_t buffer_size ()
void set_msg_id (message_id_t id)
void set_payload_size (uint8_t len)

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


Member Typedef Documentation

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

Member Enumeration Documentation

template<typename OsModel_P, typename Radio_P>
anonymous enum
Enumerator:
E2EC_TYPE 
E2EC_RRQ_TYPE 
E2EC_RPL_TYPE 
template<typename OsModel_P, typename Radio_P>
anonymous enum
Enumerator:
MAX_MESSAGE_LENGTH 
MAX_PAYLOAD_LENGTH 
HEADER_LENGTH 

Constructor & Destructor Documentation

template<typename OsModel_P, typename Radio_P>
wiselib::E2ecMessage< OsModel_P, Radio_P >::E2ecMessage ( node_id_t  src = Radio::NULL_NODE_ID,
node_id_t  dest = Radio::NULL_NODE_ID,
uint16_t  seq_no = 0 
) [inline]

Member Function Documentation

template<typename OsModel_P, typename Radio_P>
uint8_t wiselib::E2ecMessage< OsModel_P, Radio_P >::buffer_size ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
node_id_t wiselib::E2ecMessage< OsModel_P, Radio_P >::dest ( ) [inline]
template<typename OsModel_P, typename Radio_P>
uint8_t wiselib::E2ecMessage< OsModel_P, Radio_P >::hops ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
message_id_t wiselib::E2ecMessage< OsModel_P, Radio_P >::msg_id ( ) [inline]
template<typename OsModel_P, typename Radio_P>
block_data_t* wiselib::E2ecMessage< OsModel_P, Radio_P >::payload ( void  ) [inline]
template<typename OsModel_P, typename Radio_P>
uint8_t wiselib::E2ecMessage< OsModel_P, Radio_P >::payload_size ( ) [inline]
template<typename OsModel_P, typename Radio_P>
uint8_t wiselib::E2ecMessage< OsModel_P, Radio_P >::seq_no ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::E2ecMessage< OsModel_P, Radio_P >::set_dest ( node_id_t  dest) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::E2ecMessage< OsModel_P, Radio_P >::set_hops ( uint8_t  hops) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::E2ecMessage< OsModel_P, Radio_P >::set_msg_id ( message_id_t  id) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::E2ecMessage< OsModel_P, Radio_P >::set_payload ( uint8_t  len,
block_data_t data 
) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::E2ecMessage< OsModel_P, Radio_P >::set_payload_size ( uint8_t  len) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::E2ecMessage< OsModel_P, Radio_P >::set_source ( node_id_t  src) [inline]
template<typename OsModel_P, typename Radio_P>
node_id_t wiselib::E2ecMessage< OsModel_P, Radio_P >::source ( ) [inline]

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