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

Contiki Implementation of Radio conceptContiki implementation of the Radio concept ... More...

#include <contiki_extended_radio.h>

Inherits wiselib::ExtendedRadioBase< OsModel_P, uint16_t, uint8_t, uint8_t >.

List of all members.

Public Types

enum  ErrorCodes { SUCCESS = OsModel::SUCCESS, ERR_UNSPEC = OsModel::ERR_UNSPEC }
enum  SpecialNodeIds { BROADCAST_ADDRESS = 0xffff, NULL_NODE_ID = 0 }
enum  Restrictions { MAX_MESSAGE_LENGTH = PACKETBUF_SIZE }
typedef OsModel_P OsModel
typedef BaseExtendedData< OsModelExtendedData
typedef uint16_t node_id_t
typedef uint8_t block_data_t
typedef uint8_t size_t
typedef uint8_t message_id_t
typedef
ContikiExtendedDataRadioModel
< OsModel
self_type
typedef self_typeself_pointer_t
typedef delegate3< void,
uint16_t, uint8_t, uint8_t * > 
radio_delegate_t
typedef delegate4< void,
uint16_t, uint8_t, uint8_t
*, const ExtendedData & > 
extended_radio_delegate_t
enum  ReturnValues
typedef vector_static< OsModel,
radio_delegate_t,
RADIO_BASE_MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator
typedef vector_static< OsModel,
extended_radio_delegate_t,
RADIO_BASE_MAX_RECEIVERS > 
ExtendedCallbackVector
typedef
ExtendedCallbackVector::iterator 
ExtendedCallbackVectorIterator

Public Member Functions

void init ()
int enable_radio ()
int disable_radio ()
node_id_t id ()
int send (node_id_t dest, size_t len, block_data_t *data)
void receive (struct abc_conn *)
int reg_recv_callback (T *obj_pnt)
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)

Detailed Description

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

Contiki Implementation of Radio concept

Contiki implementation of the Radio concept ...


Member Typedef Documentation

template<typename OsModel_P >
typedef uint8_t wiselib::ContikiExtendedDataRadioModel< OsModel_P >::block_data_t
typedef vector_static<OsModel, radio_delegate_t, RADIO_BASE_MAX_RECEIVERS > wiselib::ExtendedRadioBase< OsModel_P, uint16_t , uint8_t , uint8_t , RADIO_BASE_MAX_RECEIVERS , BaseExtendedData<OsModel_P> >::CallbackVector [inherited]
typedef CallbackVector::iterator wiselib::ExtendedRadioBase< OsModel_P, uint16_t , uint8_t , uint8_t , RADIO_BASE_MAX_RECEIVERS , BaseExtendedData<OsModel_P> >::CallbackVectorIterator [inherited]
template<typename OsModel_P >
typedef delegate4<void, uint16_t, uint8_t, uint8_t*, const ExtendedData&> wiselib::ContikiExtendedDataRadioModel< OsModel_P >::extended_radio_delegate_t
typedef vector_static<OsModel, extended_radio_delegate_t, RADIO_BASE_MAX_RECEIVERS > wiselib::ExtendedRadioBase< OsModel_P, uint16_t , uint8_t , uint8_t , RADIO_BASE_MAX_RECEIVERS , BaseExtendedData<OsModel_P> >::ExtendedCallbackVector [inherited]
typedef ExtendedCallbackVector::iterator wiselib::ExtendedRadioBase< OsModel_P, uint16_t , uint8_t , uint8_t , RADIO_BASE_MAX_RECEIVERS , BaseExtendedData<OsModel_P> >::ExtendedCallbackVectorIterator [inherited]
template<typename OsModel_P >
typedef BaseExtendedData<OsModel> wiselib::ContikiExtendedDataRadioModel< OsModel_P >::ExtendedData
template<typename OsModel_P >
typedef uint8_t wiselib::ContikiExtendedDataRadioModel< OsModel_P >::message_id_t
template<typename OsModel_P >
typedef uint16_t wiselib::ContikiExtendedDataRadioModel< OsModel_P >::node_id_t
template<typename OsModel_P >
typedef OsModel_P wiselib::ContikiExtendedDataRadioModel< OsModel_P >::OsModel
template<typename OsModel_P >
typedef delegate3<void, uint16_t, uint8_t, uint8_t*> wiselib::ContikiExtendedDataRadioModel< OsModel_P >::radio_delegate_t
template<typename OsModel_P >
typedef self_type* wiselib::ContikiExtendedDataRadioModel< OsModel_P >::self_pointer_t
template<typename OsModel_P >
typedef ContikiExtendedDataRadioModel<OsModel> wiselib::ContikiExtendedDataRadioModel< OsModel_P >::self_type
template<typename OsModel_P >
typedef uint8_t wiselib::ContikiExtendedDataRadioModel< OsModel_P >::size_t

Member Enumeration Documentation

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

Maximal number of bytes in payload.

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

All nodes in communication range.

NULL_NODE_ID 

Unknown/No node id.


Member Function Documentation

template<typename OsModel_P >
int wiselib::ContikiExtendedDataRadioModel< OsModel_P >::disable_radio ( void  ) [inline]
template<typename OsModel_P >
int wiselib::ContikiExtendedDataRadioModel< OsModel_P >::enable_radio ( void  ) [inline]
template<typename OsModel_P >
node_id_t wiselib::ContikiExtendedDataRadioModel< OsModel_P >::id ( void  ) [inline]
template<typename OsModel_P >
void wiselib::ContikiExtendedDataRadioModel< OsModel_P >::init ( void  ) [inline]
void wiselib::ExtendedRadioBase< OsModel_P, uint16_t , uint8_t , uint8_t , RADIO_BASE_MAX_RECEIVERS , BaseExtendedData<OsModel_P> >::notify_receivers ( node_id_t  from,
size_t  len,
block_data_t data 
) [inline, inherited]
void wiselib::ExtendedRadioBase< OsModel_P, uint16_t , uint8_t , uint8_t , RADIO_BASE_MAX_RECEIVERS , BaseExtendedData<OsModel_P> >::notify_receivers ( node_id_t  from,
size_t  len,
block_data_t data,
const ExtendedData ext_data 
) [inline, inherited]
template<typename OsModel_P >
void wiselib::ContikiExtendedDataRadioModel< OsModel_P >::receive ( struct abc_conn *  ) [inline]
int wiselib::ExtendedRadioBase< OsModel_P, uint16_t , uint8_t , uint8_t , RADIO_BASE_MAX_RECEIVERS , BaseExtendedData<OsModel_P> >::reg_recv_callback ( T *  obj_pnt) [inline, inherited]
int wiselib::ExtendedRadioBase< OsModel_P, uint16_t , uint8_t , uint8_t , RADIO_BASE_MAX_RECEIVERS , BaseExtendedData<OsModel_P> >::reg_recv_callback ( T *  obj_pnt) [inline, inherited]
template<typename OsModel_P >
int wiselib::ContikiExtendedDataRadioModel< OsModel_P >::send ( node_id_t  dest,
size_t  len,
block_data_t data 
) [inline]
int wiselib::ExtendedRadioBase< OsModel_P, uint16_t , uint8_t , uint8_t , RADIO_BASE_MAX_RECEIVERS , BaseExtendedData<OsModel_P> >::unreg_recv_callback ( int  idx) [inline, inherited]

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