Wiselib
Public Types | Public Member Functions
wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P > Class Template Reference

Implementation of Radio Concept that outputs packet information about al packages it receives. More...

#include <packet_sniffer_radio.h>

List of all members.

Public Types

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 Debug_P Debug
typedef Statistics_Map_P Statistics_map
typedef
PacketSnifferRadioModel
< OsModel, Statistics_map,
Radio, Debug
self_type
typedef self_typeself_pointer_t
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 Radio::radio_delegate_t radio_delegate_t

Public Member Functions

void send (node_id_t id, size_t len, block_data_t *data)
void init (Radio &radio, Debug &debug, message_id_t sniffer_filter)
void init (Radio &radio, Debug &debug)
void destruct ()
void enable_radio ()
void disable_radio ()
node_id_t id ()
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod>
int reg_recv_callback (T *obj_pnt)
void unreg_recv_callback (int idx)
void receive_radio_message (typename Radio::node_id_t source, typename Radio::size_t length, typename Radio::block_data_t *buf)
void set_sniffer_filter (message_id_t type)
void remove_filter ()

Detailed Description

template<typename OsModel_P, typename Statistics_Map_P, typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
class wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >

Implementation of Radio Concept that outputs packet information about al packages it receives.


Member Typedef Documentation

template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::block_data_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::block_data_t
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Debug_P wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::Debug
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::message_id_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::message_id_t
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::node_id_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::node_id_t
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef OsModel_P wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::OsModel
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio_P wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::Radio
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::radio_delegate_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::radio_delegate_t
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef self_type* wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::self_pointer_t
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef PacketSnifferRadioModel<OsModel, Statistics_map, Radio, Debug> wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::self_type
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Radio::size_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::size_t
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
typedef Statistics_Map_P wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::Statistics_map

Member Enumeration Documentation

template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
enum wiselib::PacketSnifferRadioModel::Restrictions
Enumerator:
MAX_MESSAGE_LENGTH 
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
enum wiselib::PacketSnifferRadioModel::SpecialNodeIds
Enumerator:
BROADCAST_ADDRESS 

All nodes in communication range.

NULL_NODE_ID 

Unknown/No node id.


Member Function Documentation

template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::destruct ( void  ) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::disable_radio ( void  ) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::enable_radio ( void  ) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
node_id_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::id ( void  ) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::init ( Radio radio,
Debug debug,
message_id_t  sniffer_filter 
) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::init ( Radio radio,
Debug debug 
) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::receive_radio_message ( typename Radio::node_id_t  source,
typename Radio::size_t  length,
typename Radio::block_data_t buf 
) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod>
int wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::reg_recv_callback ( T *  obj_pnt) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::remove_filter ( ) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::send ( node_id_t  id,
size_t  len,
block_data_t data 
) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::set_sniffer_filter ( message_id_t  type) [inline]
template<typename OsModel_P , typename Statistics_Map_P , typename Radio_P = typename OsModel_P::Radio, typename Debug_P = typename OsModel_P::Debug>
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_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