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

OSA Implementation of Radio conceptOSA implementation of the Radio concept ... More...

#include <shawn_tx_radio.h>

List of all members.

Classes

class  TxPower
 Shawn Implementation of TxPower ConceptShawn implementation of the TxPower Concept ... More...

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 ShawnTxRadioModel
< OsModel
self_type
typedef self_typeself_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
ExtIfaceProcessor::ExtendedData 
ExtendedData
typedef delegate3< void, int,
long, unsigned char * > 
radio_delegate_t

Public Member Functions

 ShawnTxRadioModel (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 ()
int set_power (TxPower p)
TxPower power ()
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 *, ExtendedData const &) TMethod>
int reg_recv_callback (T *obj_pnt)
int unreg_recv_callback (int idx)

Detailed Description

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

OSA Implementation of Radio concept

OSA implementation of the Radio concept ...


Member Typedef Documentation

template<typename OsModel_P >
typedef ExtIfaceProcessor::block_data_t wiselib::ShawnTxRadioModel< OsModel_P >::block_data_t
template<typename OsModel_P >
typedef ExtIfaceProcessor::ExtendedData wiselib::ShawnTxRadioModel< OsModel_P >::ExtendedData
template<typename OsModel_P >
typedef ExtIfaceProcessor::message_id_t wiselib::ShawnTxRadioModel< OsModel_P >::message_id_t
template<typename OsModel_P >
typedef ExtIfaceProcessor::node_id_t wiselib::ShawnTxRadioModel< OsModel_P >::node_id_t
template<typename OsModel_P >
typedef OsModel_P wiselib::ShawnTxRadioModel< OsModel_P >::OsModel
template<typename OsModel_P >
typedef delegate3<void, int, long, unsigned char*> wiselib::ShawnTxRadioModel< OsModel_P >::radio_delegate_t
template<typename OsModel_P >
typedef self_type* wiselib::ShawnTxRadioModel< OsModel_P >::self_pointer_t
template<typename OsModel_P >
typedef ShawnTxRadioModel<OsModel> wiselib::ShawnTxRadioModel< OsModel_P >::self_type
template<typename OsModel_P >
typedef ExtIfaceProcessor::size_t wiselib::ShawnTxRadioModel< OsModel_P >::size_t

Member Enumeration Documentation

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

Maximal number of bytes in payload.

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

All nodes in communication rnage.

NULL_NODE_ID 

Unknown/No node id.


Constructor & Destructor Documentation

template<typename OsModel_P >
wiselib::ShawnTxRadioModel< OsModel_P >::ShawnTxRadioModel ( ShawnOs os) [inline]

Member Function Documentation

template<typename OsModel_P >
int wiselib::ShawnTxRadioModel< OsModel_P >::disable_radio ( void  ) [inline]
template<typename OsModel_P >
int wiselib::ShawnTxRadioModel< OsModel_P >::enable_radio ( void  ) [inline]
template<typename OsModel_P >
node_id_t wiselib::ShawnTxRadioModel< OsModel_P >::id ( void  ) [inline]
template<typename OsModel_P >
ShawnTxRadioModel< OsModel_P >::TxPower wiselib::ShawnTxRadioModel< OsModel_P >::power ( )
template<typename OsModel_P >
template<class T , void(T::*)(node_id_t, size_t, block_data_t *, ExtendedData const &) TMethod>
int wiselib::ShawnTxRadioModel< OsModel_P >::reg_recv_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P >
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod>
int wiselib::ShawnTxRadioModel< OsModel_P >::reg_recv_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P >
int wiselib::ShawnTxRadioModel< OsModel_P >::send ( node_id_t  id,
size_t  len,
block_data_t data 
) [inline]
template<typename OsModel_P >
int wiselib::ShawnTxRadioModel< OsModel_P >::set_power ( TxPower  p)
template<typename OsModel_P >
int wiselib::ShawnTxRadioModel< 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