Wiselib
Public Types | Public Member Functions | Static Public Attributes
wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES > Class Template Reference

Tpsn synchronization implementation of Synchronization ConceptTpsn synchronization implementation of Synchronization Concept. More...

#include <hrts_synchronization.h>

List of all members.

Public Types

typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef Clock_P Clock
typedef OsModel_P::Timer Timer
typedef Echo< OsModel, Radio,
Timer, Debug
Neighborhood
typedef TpsnSynchronization
< OsModel, Radio, Debug, Clock,
MAX_NODES > 
self_type
typedef
TpsnSynchronizationMessage
< OsModel, Radio, Clock
SynchronizationMessage
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef Timer::millis_t millis_t
typedef Clock::time_t time_t
typedef OsModel_P OsModel
typedef Radio_P Radio
typedef Debug_P Debug
typedef Clock_P Clock
typedef OsModel_P::Timer Timer
typedef TpsnSynchronization
< OsModel, Radio, Debug, Clock,
MAX_NODES > 
self_type
typedef
TpsnSynchronizationMessage
< OsModel, Radio, Clock
SynchronizationMessage
typedef Radio::node_id_t node_id_t
typedef Radio::size_t size_t
typedef Radio::block_data_t block_data_t
typedef Timer::millis_t millis_t
typedef Clock::time_t time_t

Public Member Functions

void set_root_startup_time (millis_t root_startup_time)
void set_tree_construction_time (millis_t tree_construction_time)
void set_random_interval_time (millis_t random_interval_time)
void init (Radio &radio, Timer &timer, Debug &debug, Clock &clock)
void destruct ()
void set_root_startup_time (millis_t root_startup_time)
void set_tree_construction_time (millis_t tree_construction_time)
void set_random_interval_time (millis_t random_interval_time)
void init (Radio &radio, Timer &timer, Debug &debug, Clock &clock)
void destruct ()
Construction / Destruction
 TpsnSynchronization ()
 ~TpsnSynchronization ()
 TpsnSynchronization ()
 ~TpsnSynchronization ()
Main Control
void enable (void)
void disable (void)
void set_root (void)
void enable (void)
void disable (void)
void set_root (void)
Methods called by Timer
void timer_elapsed (void *userdata)
void timer_elapsed (void *userdata)
Methods called by RadioModel
void receive (node_id_t from, size_t len, block_data_t *data)
void receive (node_id_t from, size_t len, block_data_t *data)

Static Public Attributes

static const uint8_t NODE_ID_SIZE = sizeof( node_id_t )
static const uint8_t TIME_SIZE = sizeof( time_t )

Detailed Description

template<typename OsModel_P, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
class wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >

Tpsn synchronization implementation of Synchronization Concept

Tpsn synchronization implementation of Synchronization Concept.


Member Typedef Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Radio::block_data_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::block_data_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Radio::block_data_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::block_data_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Clock_P wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::Clock
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Clock_P wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::Clock
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Debug_P wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::Debug
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Debug_P wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::Debug
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Timer::millis_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::millis_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Timer::millis_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::millis_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Echo<OsModel, Radio, Timer, Debug> wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::Neighborhood
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Radio::node_id_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::node_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Radio::node_id_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::node_id_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef OsModel_P wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::OsModel
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef OsModel_P wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::OsModel
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Radio_P wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::Radio
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Radio_P wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::Radio
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef TpsnSynchronization<OsModel, Radio, Debug, Clock, MAX_NODES> wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::self_type
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef TpsnSynchronization<OsModel, Radio, Debug, Clock, MAX_NODES> wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::self_type
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Radio::size_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::size_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Radio::size_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::size_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef TpsnSynchronizationMessage<OsModel, Radio, Clock> wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::SynchronizationMessage
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef TpsnSynchronizationMessage<OsModel, Radio, Clock> wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::SynchronizationMessage
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Clock::time_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::time_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef Clock::time_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::time_t
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef OsModel_P::Timer wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::Timer
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
typedef OsModel_P::Timer wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::Timer

Constructor & Destructor Documentation

template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Clock_P , uint16_t MAX_NODES>
wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::TpsnSynchronization ( )
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Clock_P , uint16_t MAX_NODES>
wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::~TpsnSynchronization ( )
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::TpsnSynchronization ( )
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::~TpsnSynchronization ( )

Member Function Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Clock_P , uint16_t MAX_NODES>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::disable ( void  )
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::disable ( void  )
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Clock_P , uint16_t MAX_NODES>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::enable ( void  )
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::enable ( void  )
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::init ( Radio radio,
Timer timer,
Debug debug,
Clock clock 
) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::init ( Radio radio,
Timer timer,
Debug debug,
Clock clock 
) [inline]
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Clock_P , uint16_t MAX_NODES>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
)
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::receive ( node_id_t  from,
size_t  len,
block_data_t data 
)
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::set_random_interval_time ( millis_t  random_interval_time) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::set_random_interval_time ( millis_t  random_interval_time) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::set_root ( void  ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::set_root ( void  ) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::set_root_startup_time ( millis_t  root_startup_time) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::set_root_startup_time ( millis_t  root_startup_time) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::set_tree_construction_time ( millis_t  tree_construction_time) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::set_tree_construction_time ( millis_t  tree_construction_time) [inline]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::timer_elapsed ( void *  userdata)
template<typename OsModel_P , typename Radio_P , typename Debug_P , typename Clock_P , uint16_t MAX_NODES>
void wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::timer_elapsed ( void *  userdata)

Member Data Documentation

template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
static const uint8_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::NODE_ID_SIZE = sizeof( node_id_t ) [static]
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug, typename Clock_P = typename OsModel_P::Clock, uint16_t MAX_NODES = 32>
static const uint8_t wiselib::TpsnSynchronization< OsModel_P, Radio_P, Debug_P, Clock_P, MAX_NODES >::TIME_SIZE = sizeof( time_t ) [static]

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