Wiselib
|
Base extended radio classBasic extended radio class that provides helpful methods like registration of callbacks. More...
#include <extended_radio_base.h>
Inherits wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.
Public Types | |
enum | ReturnValues { SUCCESS = OsModel::SUCCESS } |
typedef ExtendedData_P | ExtendedData |
typedef OsModel_P | OsModel |
typedef NodeId_P | node_id_t |
typedef Size_P | size_t |
typedef BlockData_P | block_data_t |
typedef delegate3< void, node_id_t, size_t, block_data_t * > | radio_delegate_t |
typedef delegate4< void, node_id_t, size_t, block_data_t *, const ExtendedData & > | extended_radio_delegate_t |
typedef vector_static< OsModel, radio_delegate_t, MAX_RECEIVERS > | CallbackVector |
typedef CallbackVector::iterator | CallbackVectorIterator |
typedef vector_static< OsModel, extended_radio_delegate_t, MAX_RECEIVERS > | ExtendedCallbackVector |
typedef ExtendedCallbackVector::iterator | ExtendedCallbackVectorIterator |
Public Member Functions | |
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod> | |
int | reg_recv_callback (T *obj_pnt) |
template<class T , void(T::*)(node_id_t, size_t, block_data_t *, const ExtendedData &) TMethod> | |
int | reg_recv_callback (T *obj_pnt) |
int | unreg_recv_callback (int idx) |
void | notify_receivers (node_id_t from, size_t len, block_data_t *data) |
void | notify_receivers (node_id_t from, size_t len, block_data_t *data, const ExtendedData &ext_data) |
Base extended radio class
Basic extended radio class that provides helpful methods like registration of callbacks.
typedef BlockData_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::block_data_t |
typedef vector_static<OsModel, radio_delegate_t, MAX_RECEIVERS> wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::CallbackVector |
Reimplemented from wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.
typedef CallbackVector::iterator wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::CallbackVectorIterator |
Reimplemented from wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.
typedef delegate4<void, node_id_t, size_t, block_data_t*, const ExtendedData&> wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::extended_radio_delegate_t |
Reimplemented in wiselib::ContikiExtendedDataRadioModel< OsModel_P >.
typedef vector_static<OsModel, extended_radio_delegate_t, MAX_RECEIVERS> wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::ExtendedCallbackVector |
typedef ExtendedCallbackVector::iterator wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::ExtendedCallbackVectorIterator |
typedef ExtendedData_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::ExtendedData |
typedef NodeId_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::node_id_t |
typedef OsModel_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::OsModel |
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::radio_delegate_t |
Reimplemented from wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.
Reimplemented in wiselib::ContikiExtendedDataRadioModel< OsModel_P >.
typedef Size_P wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::size_t |
enum wiselib::ExtendedRadioBase::ReturnValues |
Reimplemented from wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.
void wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::notify_receivers | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data | ||
) | [inline] |
Reimplemented from wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.
void wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::notify_receivers | ( | node_id_t | from, |
size_t | len, | ||
block_data_t * | data, | ||
const ExtendedData & | ext_data | ||
) | [inline] |
int wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline] |
Reimplemented from wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.
int wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline] |
Reimplemented from wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.
int wiselib::ExtendedRadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS, ExtendedData_P >::unreg_recv_callback | ( | int | idx | ) | [inline] |
Reimplemented from wiselib::RadioBase< OsModel_P, NodeId_P, Size_P, BlockData_P, MAX_RECEIVERS >.