Wiselib
|
Implementation of Radio Concept that approximates the consumed energy. More...
#include <energy_consumption_radio.h>
Public Types | |
enum | SpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS, NULL_NODE_ID = Radio::NULL_NODE_ID } |
enum | Restrictions { MAX_MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH } |
typedef OsModel_P | OsModel |
typedef Radio_P | Radio |
typedef Clock_P | Clock |
typedef EneryConsumptionRadioModel < OsModel, Radio, Clock > | self_type |
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 Clock::time_t | time_t |
typedef Radio::radio_delegate_t | energy_consumption_delegate_t |
typedef EnergyConsumptionRadioCallback < OsModel > | RadioCallback |
Public Member Functions | |
void | send (node_id_t id, size_t len, block_data_t *data) |
void | init (Radio &radio, Clock &clock) |
void | destruct () |
void | enable_radio () |
void | disable_radio () |
node_id_t | id () |
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod> | |
int | reg_recv_callback (T *obj_pnt) |
void | unreg_recv_callback (int idx) |
Implementation of Radio Concept that approximates the consumed energy.
typedef Radio::block_data_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::block_data_t |
typedef Clock_P wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::Clock |
typedef Radio::radio_delegate_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::energy_consumption_delegate_t |
typedef Radio::message_id_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::message_id_t |
typedef Radio::node_id_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::node_id_t |
typedef OsModel_P wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::OsModel |
typedef Radio_P wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::Radio |
typedef EnergyConsumptionRadioCallback<OsModel> wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::RadioCallback |
typedef EneryConsumptionRadioModel<OsModel, Radio, Clock> wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::self_type |
typedef Radio::size_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::size_t |
typedef Clock::time_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::time_t |
enum wiselib::EneryConsumptionRadioModel::Restrictions |
enum wiselib::EneryConsumptionRadioModel::SpecialNodeIds |
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::destruct | ( | void | ) | [inline] |
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::disable_radio | ( | void | ) | [inline] |
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::enable_radio | ( | void | ) | [inline] |
node_id_t wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::id | ( | void | ) | [inline] |
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::init | ( | Radio & | radio, |
Clock & | clock | ||
) | [inline] |
int wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline] |
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::send | ( | node_id_t | id, |
size_t | len, | ||
block_data_t * | data | ||
) | [inline] |
void wiselib::EneryConsumptionRadioModel< OsModel_P, Radio_P, Clock_P >::unreg_recv_callback | ( | int | idx | ) | [inline] |