Wiselib
Public Types | Public Member Functions | Static Public Member Functions
wiselib::LorienRadioModel< OsModel_P > Class Template Reference

Lorien Implementation of Radio concept. More...

#include <lorien_radio.h>

List of all members.

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< OsModelself_type
typedef self_typeself_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)

Detailed Description

template<typename OsModel_P>
class wiselib::LorienRadioModel< OsModel_P >

Lorien Implementation of Radio concept.

Lorien implementation of the Radio concept ...

Template Parameters:
OsModel_PHas to implement Os concept.

Member Typedef Documentation

template<typename OsModel_P >
typedef uint8_t wiselib::LorienRadioModel< OsModel_P >::block_data_t
template<typename OsModel_P >
typedef vector_static<OsModel, radio_delegate_t, 10> wiselib::LorienRadioModel< OsModel_P >::CallbackVector
template<typename OsModel_P >
typedef CallbackVector::iterator wiselib::LorienRadioModel< OsModel_P >::CallbackVectorIterator
template<typename OsModel_P >
typedef uint8_t wiselib::LorienRadioModel< OsModel_P >::message_id_t
template<typename OsModel_P >
typedef TNodeID_Int wiselib::LorienRadioModel< OsModel_P >::node_id_t
template<typename OsModel_P >
typedef OsModel_P wiselib::LorienRadioModel< OsModel_P >::OsModel
template<typename OsModel_P >
typedef lorien_radio_delegate_t wiselib::LorienRadioModel< OsModel_P >::radio_delegate_t
template<typename OsModel_P >
typedef self_type* wiselib::LorienRadioModel< OsModel_P >::self_pointer_t
template<typename OsModel_P >
typedef LorienRadioModel<OsModel> wiselib::LorienRadioModel< OsModel_P >::self_type
template<typename OsModel_P >
typedef uint8_t wiselib::LorienRadioModel< OsModel_P >::size_t

Member Enumeration Documentation

template<typename OsModel_P >
enum wiselib::LorienRadioModel::ErrorCodes
Enumerator:
SUCCESS 
ERR_UNSPEC 
ERR_NOTIMPL 
template<typename OsModel_P >
enum wiselib::LorienRadioModel::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 

Maximal number of bytes in payload.

template<typename OsModel_P >
enum wiselib::LorienRadioModel::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 

All nodes in communication rnage.

NULL_NODE_ID 

Unknown/No node id.


Member Function Documentation

template<typename OsModel_P >
int wiselib::LorienRadioModel< OsModel_P >::disable_radio ( void  ) [inline]
template<typename OsModel_P >
int wiselib::LorienRadioModel< OsModel_P >::enable_radio ( void  ) [inline]
template<typename OsModel_P >
node_id_t wiselib::LorienRadioModel< OsModel_P >::id ( ) [inline]
template<typename OsModel_P >
void wiselib::LorienRadioModel< OsModel_P >::init ( Component *  comp) [inline]
template<typename OsModel_P >
static void wiselib::LorienRadioModel< OsModel_P >::received ( unsigned char *  data,
size_t  len,
unsigned int  from 
) [inline, static]
template<typename OsModel_P >
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod>
int wiselib::LorienRadioModel< OsModel_P >::reg_recv_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P >
int wiselib::LorienRadioModel< OsModel_P >::send ( node_id_t  id,
size_t  len,
block_data_t data 
) [inline]
template<typename OsModel_P >
int wiselib::LorienRadioModel< OsModel_P >::unreg_recv_callback ( int  idx) [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines