Wiselib
|
#include <cluster_radio_message.h>
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 () |
typedef Radio::block_data_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::block_data_t |
typedef node_id_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::cluster_id_t |
typedef Radio::message_id_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::message_id_t |
typedef Radio::node_id_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::node_id_t |
typedef OsModel_P wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::OsModel |
typedef Radio_P wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::Radio |
typedef Radio::size_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::size_t |
enum wiselib::ClusterRadioMsg::data_positions |
wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::ClusterRadioMsg | ( | ) | [inline] |
wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::~ClusterRadioMsg | ( | ) | [inline] |
cluster_id_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::destination | ( | ) | [inline] |
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::get_payload | ( | uint8_t * | data | ) | [inline] |
size_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::length | ( | ) | [inline] |
message_id_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::msg_id | ( | ) | [inline] |
int wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::payload_size | ( | ) | [inline] |
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::set_destination | ( | cluster_id_t | destination | ) | [inline] |
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::set_msg_id | ( | message_id_t | id | ) | [inline] |
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::set_payload | ( | uint8_t * | data, |
size_t | len | ||
) | [inline] |
void wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::set_source | ( | cluster_id_t | source | ) | [inline] |
cluster_id_t wiselib::ClusterRadioMsg< OsModel_P, Radio_P >::source | ( | ) | [inline] |