Wiselib
|
Shawn Implementation of Radio concept. More...
#include <shawn_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 = -1 } |
enum | Restrictions { MAX_MESSAGE_LENGTH = 0xff } |
typedef OsModel_P | OsModel |
typedef ShawnRadioModel< OsModel > | self_type |
typedef self_type * | self_pointer_t |
typedef ExtIfaceProcessor::node_id_t | node_id_t |
typedef ExtIfaceProcessor::block_data_t | block_data_t |
typedef ExtIfaceProcessor::size_t | size_t |
typedef ExtIfaceProcessor::message_id_t | message_id_t |
typedef delegate3< void, int, long, unsigned char * > | radio_delegate_t |
Public Member Functions | |
ShawnRadioModel (ShawnOs &os) | |
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) |
Shawn Implementation of Radio concept.
Shawn implementation of the Radio concept ...
OsModel_P | Has to implement Os concept. |
typedef ExtIfaceProcessor::block_data_t wiselib::ShawnRadioModel< OsModel_P >::block_data_t |
typedef ExtIfaceProcessor::message_id_t wiselib::ShawnRadioModel< OsModel_P >::message_id_t |
typedef ExtIfaceProcessor::node_id_t wiselib::ShawnRadioModel< OsModel_P >::node_id_t |
typedef OsModel_P wiselib::ShawnRadioModel< OsModel_P >::OsModel |
typedef delegate3<void, int, long, unsigned char*> wiselib::ShawnRadioModel< OsModel_P >::radio_delegate_t |
typedef self_type* wiselib::ShawnRadioModel< OsModel_P >::self_pointer_t |
typedef ShawnRadioModel<OsModel> wiselib::ShawnRadioModel< OsModel_P >::self_type |
typedef ExtIfaceProcessor::size_t wiselib::ShawnRadioModel< OsModel_P >::size_t |
enum wiselib::ShawnRadioModel::ErrorCodes |
enum wiselib::ShawnRadioModel::Restrictions |
enum wiselib::ShawnRadioModel::SpecialNodeIds |
wiselib::ShawnRadioModel< OsModel_P >::ShawnRadioModel | ( | ShawnOs & | os | ) | [inline] |
int wiselib::ShawnRadioModel< OsModel_P >::disable_radio | ( | void | ) | [inline] |
int wiselib::ShawnRadioModel< OsModel_P >::enable_radio | ( | void | ) | [inline] |
node_id_t wiselib::ShawnRadioModel< OsModel_P >::id | ( | ) | [inline] |
int wiselib::ShawnRadioModel< OsModel_P >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline] |
int wiselib::ShawnRadioModel< OsModel_P >::send | ( | node_id_t | id, |
size_t | len, | ||
block_data_t * | data | ||
) | [inline] |
int wiselib::ShawnRadioModel< OsModel_P >::unreg_recv_callback | ( | int | idx | ) | [inline] |