Wiselib
|
TinyOs Implementation of Radio concept. More...
#include <tinyos_radio.h>
Public Types | |
enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, ERR_NOTIMPL = OsModel::ERR_NOTIMPL } |
enum | SpecialNodeIds { BROADCAST_ADDRESS = 0xffff, NULL_NODE_ID = 0 } |
enum | Restrictions { MAX_MESSAGE_LENGTH = 28 } |
typedef OsModel_P | OsModel |
typedef TinyOsRadioModel< OsModel > | self_type |
typedef self_type * | self_pointer_t |
typedef uint16_t | node_id_t |
typedef uint8_t | block_data_t |
typedef uint8_t | size_t |
typedef uint8_t | message_id_t |
typedef tinyos::ExtendedData | ExtendedData |
typedef tinyos::radio_delegate_t | radio_delegate_t |
typedef tinyos::extended_radio_delegate_t | extended_radio_delegate_t |
Public Member Functions | |
int | send (node_id_t id, size_t len, block_data_t *data) |
int | enable_radio () |
int | 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) |
template<class T , void(T::*)(node_id_t, size_t, block_data_t *, const ExtendedData &) TMethod> | |
int | reg_recv_callback (T *obj_pnt) |
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod> | |
int | unreg_recv_callback (int idx) |
TinyOs Implementation of Radio concept.
TinyOS implementation of the Radio concept ...
OsModel_P | Has to implement Os concept. |
typedef uint8_t wiselib::TinyOsRadioModel< OsModel_P >::block_data_t |
typedef tinyos::extended_radio_delegate_t wiselib::TinyOsRadioModel< OsModel_P >::extended_radio_delegate_t |
typedef tinyos::ExtendedData wiselib::TinyOsRadioModel< OsModel_P >::ExtendedData |
typedef uint8_t wiselib::TinyOsRadioModel< OsModel_P >::message_id_t |
typedef uint16_t wiselib::TinyOsRadioModel< OsModel_P >::node_id_t |
typedef OsModel_P wiselib::TinyOsRadioModel< OsModel_P >::OsModel |
typedef tinyos::radio_delegate_t wiselib::TinyOsRadioModel< OsModel_P >::radio_delegate_t |
typedef self_type* wiselib::TinyOsRadioModel< OsModel_P >::self_pointer_t |
typedef TinyOsRadioModel<OsModel> wiselib::TinyOsRadioModel< OsModel_P >::self_type |
typedef uint8_t wiselib::TinyOsRadioModel< OsModel_P >::size_t |
enum wiselib::TinyOsRadioModel::ErrorCodes |
enum wiselib::TinyOsRadioModel::Restrictions |
enum wiselib::TinyOsRadioModel::SpecialNodeIds |
int wiselib::TinyOsRadioModel< OsModel_P >::disable_radio | ( | void | ) | [inline] |
int wiselib::TinyOsRadioModel< OsModel_P >::enable_radio | ( | void | ) | [inline] |
node_id_t wiselib::TinyOsRadioModel< OsModel_P >::id | ( | ) | [inline] |
int wiselib::TinyOsRadioModel< OsModel_P >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline] |
int wiselib::TinyOsRadioModel< OsModel_P >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline] |
int wiselib::TinyOsRadioModel< OsModel_P >::send | ( | node_id_t | id, |
size_t | len, | ||
block_data_t * | data | ||
) | [inline] |
int wiselib::TinyOsRadioModel< OsModel_P >::unreg_recv_callback | ( | int | idx | ) | [inline] |