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

#include <cluster_radio_message.h>

List of all members.

Public Types

enum  data_positions {
  MSG_ID_POS = 0, SOURCE_POS = sizeof (message_id_t), DESTINATION_POS = sizeof (message_id_t) + sizeof (cluster_id_t), PAYLOAD_SIZE_POS = sizeof (message_id_t) + sizeof (cluster_id_t) + sizeof (cluster_id_t),
  PAYLOAD = sizeof (message_id_t) + sizeof (cluster_id_t) + sizeof (cluster_id_t) + sizeof (size_t)
}
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
typedef node_id_t cluster_id_t

Public Member Functions

 ClusterRadioMsg ()
 ~ClusterRadioMsg ()
message_id_t msg_id ()
void set_msg_id (message_id_t id)
cluster_id_t source ()
void set_source (cluster_id_t source)
cluster_id_t destination ()
void set_destination (cluster_id_t destination)
void set_payload (uint8_t *data, size_t len)
void get_payload (uint8_t *data)
int payload_size ()
size_t length ()

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


Member Typedef Documentation

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

Member Enumeration Documentation

template<typename OsModel_P, typename Radio_P>
enum wiselib::ClusterRadioMsg::data_positions
Enumerator:
MSG_ID_POS 
SOURCE_POS 
DESTINATION_POS 
PAYLOAD_SIZE_POS 
PAYLOAD 

Constructor & Destructor Documentation

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

Member Function Documentation

template<typename OsModel_P, typename Radio_P>
cluster_id_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::destination ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::get_payload ( uint8_t data) [inline]
template<typename OsModel_P, typename Radio_P>
size_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::length ( ) [inline]
template<typename OsModel_P, typename Radio_P>
message_id_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::msg_id ( ) [inline]
template<typename OsModel_P, typename Radio_P>
int wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::payload_size ( ) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::set_destination ( cluster_id_t  destination) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::set_msg_id ( message_id_t  id) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::set_payload ( uint8_t data,
size_t  len 
) [inline]
template<typename OsModel_P, typename Radio_P>
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::set_source ( cluster_id_t  source) [inline]
template<typename OsModel_P, typename Radio_P>
cluster_id_t wiselib::ClusterRadioMsg< 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