Wiselib
Public Types | Public Member Functions
wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P > Class Template Reference

#include <secure_radio.h>

Inherits wiselib::RadioBase< OsModel_P, Radio_P::node_id_t, Radio_P::size_t, Radio_P::block_data_t >.

List of all members.

Public Types

enum  ReturnValues { SUCCESS = OsModel::SUCCESS }
enum  SpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS, NULL_NODE_ID = Radio::NULL_NODE_ID }
enum  Restrictions { MAX_MESSAGE_LENGTH = Radio::MAX_MESSAGE_LENGTH }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Cipher_P cipher_t
typedef SecureRadio< OsModel,
Radio, cipher_t
self_type
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef Radio::message_id_t message_id_t
typedef delegate3< void,
node_id_t, size_t,
block_data_t * > 
radio_delegate_t
typedef vector_static< OsModel,
radio_delegate_t,
RADIO_BASE_MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

int init (Radio &radio, cipher_t &cipher)
void enable_radio ()
void disable_radio ()
node_id_t id ()
void send (node_id_t receiver, size_t size, block_data_t *data)
void receive (node_id_t from, size_t size, block_data_t *data)
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)

template<typename OsModel_P, typename Radio_P, typename Cipher_P>
class wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P , typename Cipher_P >
typedef Radio::block_data_t wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::block_data_t
typedef vector_static<OsModel, radio_delegate_t, RADIO_BASE_MAX_RECEIVERS > wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::CallbackVector [inherited]
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
typedef Cipher_P wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::cipher_t
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
typedef Radio::message_id_t wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::message_id_t
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
typedef Radio::node_id_t wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::node_id_t
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
typedef OsModel_P wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::OsModel
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
typedef Radio_P wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::Radio
typedef delegate3<void, node_id_t, size_t, block_data_t*> wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::radio_delegate_t [inherited]
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
typedef SecureRadio<OsModel, Radio, cipher_t> wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::self_type
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
typedef Radio::size_t wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::size_t

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P , typename Cipher_P >
enum wiselib::SecureRadio::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
enum wiselib::SecureRadio::ReturnValues
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
enum wiselib::SecureRadio::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 
NULL_NODE_ID 

Member Function Documentation

template<typename OsModel_P , typename Radio_P , typename Cipher_P >
void wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::disable_radio ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
void wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::enable_radio ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
node_id_t wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::id ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
int wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::init ( Radio radio,
cipher_t cipher 
) [inline]
void wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::notify_receivers ( node_id_t  from,
size_t  len,
block_data_t data 
) [inline, inherited]
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
void wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::receive ( node_id_t  from,
size_t  size,
block_data_t data 
)
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::reg_recv_callback ( T *  obj_pnt) [inline, inherited]
template<typename OsModel_P , typename Radio_P , typename Cipher_P >
void wiselib::SecureRadio< OsModel_P, Radio_P, Cipher_P >::send ( node_id_t  receiver,
size_t  size,
block_data_t data 
)
int wiselib::RadioBase< OsModel_P, Radio_P::node_id_t , Radio_P::size_t , Radio_P::block_data_t , RADIO_BASE_MAX_RECEIVERS >::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