Wiselib
|
Lorien Implementation of Radio concept. More...
#include <lorien_radio.h>
Public Types | |
enum | ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC, ERR_NOTIMPL = OsModel::ERR_NOTIMPL } |
enum | SpecialNodeIds { BROADCAST_ADDRESS = BROADCAST_INT, NULL_NODE_ID = -1 } |
enum | Restrictions { MAX_MESSAGE_LENGTH = 100 } |
typedef OsModel_P | OsModel |
typedef LorienRadioModel< OsModel > | self_type |
typedef self_type * | self_pointer_t |
typedef TNodeID_Int | node_id_t |
typedef uint8_t | block_data_t |
typedef uint8_t | size_t |
typedef uint8_t | message_id_t |
typedef lorien_radio_delegate_t | radio_delegate_t |
typedef vector_static< OsModel, radio_delegate_t, 10 > | CallbackVector |
typedef CallbackVector::iterator | CallbackVectorIterator |
Public Member Functions | |
void | init (Component *comp) |
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) |
int | unreg_recv_callback (int idx) |
Static Public Member Functions | |
static void | received (unsigned char *data, size_t len, unsigned int from) |
Lorien Implementation of Radio concept.
Lorien implementation of the Radio concept ...
OsModel_P | Has to implement Os concept. |
typedef uint8_t wiselib::LorienRadioModel< OsModel_P >::block_data_t |
typedef vector_static<OsModel, radio_delegate_t, 10> wiselib::LorienRadioModel< OsModel_P >::CallbackVector |
typedef CallbackVector::iterator wiselib::LorienRadioModel< OsModel_P >::CallbackVectorIterator |
typedef uint8_t wiselib::LorienRadioModel< OsModel_P >::message_id_t |
typedef TNodeID_Int wiselib::LorienRadioModel< OsModel_P >::node_id_t |
typedef OsModel_P wiselib::LorienRadioModel< OsModel_P >::OsModel |
typedef lorien_radio_delegate_t wiselib::LorienRadioModel< OsModel_P >::radio_delegate_t |
typedef self_type* wiselib::LorienRadioModel< OsModel_P >::self_pointer_t |
typedef LorienRadioModel<OsModel> wiselib::LorienRadioModel< OsModel_P >::self_type |
typedef uint8_t wiselib::LorienRadioModel< OsModel_P >::size_t |
enum wiselib::LorienRadioModel::ErrorCodes |
enum wiselib::LorienRadioModel::Restrictions |
enum wiselib::LorienRadioModel::SpecialNodeIds |
int wiselib::LorienRadioModel< OsModel_P >::disable_radio | ( | void | ) | [inline] |
int wiselib::LorienRadioModel< OsModel_P >::enable_radio | ( | void | ) | [inline] |
node_id_t wiselib::LorienRadioModel< OsModel_P >::id | ( | ) | [inline] |
void wiselib::LorienRadioModel< OsModel_P >::init | ( | Component * | comp | ) | [inline] |
static void wiselib::LorienRadioModel< OsModel_P >::received | ( | unsigned char * | data, |
size_t | len, | ||
unsigned int | from | ||
) | [inline, static] |
int wiselib::LorienRadioModel< OsModel_P >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline] |
int wiselib::LorienRadioModel< OsModel_P >::send | ( | node_id_t | id, |
size_t | len, | ||
block_data_t * | data | ||
) | [inline] |
int wiselib::LorienRadioModel< OsModel_P >::unreg_recv_callback | ( | int | idx | ) | [inline] |