Wiselib
Classes | Public Types | Public Member Functions
wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P > Class Template Reference

#include <volumeradio.h>

Inherits wiselib::RadioBase< OsModel_P, Radio_P >.

List of all members.

Classes

struct  connections
struct  information

Public Types

enum  SpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS, NULL_NODE_ID = Radio::NULL_NODE_ID }
enum  Restrictions { FRAGMENT_SIZE = VolumeMessage_t::FRAGMENT_SIZE, MAX_MESSAGE_LENGTH = VolumeMessage_t::MAX_MESSAGE_LENGTH }
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef Timer_P Timer
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 VolumeRadio< OsModel_P,
Radio_P, Timer_P, Debug_P > 
self_t
typedef VolumeMsg< OsModel, RadioVolumeMessage_t
typedef struct information information_t
typedef delegate3< void, int,
long, unsigned char * > 
radio_delegate_t
typedef wiselib::vector_static
< OsModel, pair< information_t,
uint8_t * >, MAX_PENDING > 
vector_t
enum  ReturnValues
typedef vector_static< OsModel,
radio_delegate_t,
RADIO_BASE_MAX_RECEIVERS > 
CallbackVector
typedef CallbackVector::iterator CallbackVectorIterator

Public Member Functions

 VolumeRadio ()
 ~VolumeRadio ()
void enable_radio ()
void send (node_id_t id, uint16_t len, block_data_t *data)
void receive (node_id_t from, size_t len, block_data_t *data_t)
int flow_id (uint16_t seq_no, node_id_t source, uint8_t total_frags)
bool add_fragment_to_message (int fd, uint8_t fragment_num, uint8_t *data)
int check_connection (node_id_t node)
node_id_t id ()
void init (Radio &radio, Timer &timer, Debug &debug)
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 Timer_P, typename Debug_P>
class wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::block_data_t wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::block_data_t
typedef vector_static<OsModel, radio_delegate_t, RADIO_BASE_MAX_RECEIVERS > wiselib::RadioBase< OsModel_P, Radio_P , Size_P, BlockData_P, RADIO_BASE_MAX_RECEIVERS >::CallbackVector [inherited]
typedef CallbackVector::iterator wiselib::RadioBase< OsModel_P, Radio_P , Size_P, BlockData_P, RADIO_BASE_MAX_RECEIVERS >::CallbackVectorIterator [inherited]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Debug_P wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::Debug
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef struct information wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::information_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::message_id_t wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::message_id_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::node_id_t wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::node_id_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef OsModel_P wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::OsModel
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio_P wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::Radio
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef delegate3<void, int, long, unsigned char*> wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::radio_delegate_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef VolumeRadio<OsModel_P, Radio_P, Timer_P, Debug_P> wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::self_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Radio::size_t wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::size_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef Timer_P wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::Timer
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef wiselib::vector_static<OsModel, pair<information_t, uint8_t* >, MAX_PENDING> wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::vector_t
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
typedef VolumeMsg<OsModel, Radio > wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::VolumeMessage_t

Member Enumeration Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
enum wiselib::VolumeRadio::Restrictions
Enumerator:
FRAGMENT_SIZE 
MAX_MESSAGE_LENGTH 

Maximal number of bytes in payload.

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
enum wiselib::VolumeRadio::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 

All nodes in communication rnage.

NULL_NODE_ID 

Unknown/No node id.


Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::VolumeRadio ( ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::~VolumeRadio ( ) [inline]

Member Function Documentation

template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
bool wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::add_fragment_to_message ( int  fd,
uint8_t  fragment_num,
uint8_t data 
) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
int wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::check_connection ( node_id_t  node) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::enable_radio ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
int wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::flow_id ( uint16_t  seq_no,
node_id_t  source,
uint8_t  total_frags 
) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
node_id_t wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::id ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::init ( Radio radio,
Timer timer,
Debug debug 
) [inline]
void wiselib::RadioBase< OsModel_P, Radio_P , Size_P, BlockData_P, 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 Timer_P , typename Debug_P >
void wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::receive ( node_id_t  from,
size_t  len,
block_data_t data_t 
) [inline]
int wiselib::RadioBase< OsModel_P, Radio_P , Size_P, BlockData_P, RADIO_BASE_MAX_RECEIVERS >::reg_recv_callback ( T *  obj_pnt) [inline, inherited]
template<typename OsModel_P , typename Radio_P , typename Timer_P , typename Debug_P >
void wiselib::VolumeRadio< OsModel_P, Radio_P, Timer_P, Debug_P >::send ( node_id_t  id,
uint16_t  len,
block_data_t data 
) [inline]
int wiselib::RadioBase< OsModel_P, Radio_P , Size_P, BlockData_P, 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