Wiselib
|
Implementation of Radio Concept that outputs packet information about al packages it receives. More...
#include <packet_sniffer_radio.h>
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_type * | self_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 () |
Implementation of Radio Concept that outputs packet information about al packages it receives.
typedef Radio::block_data_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::block_data_t |
typedef Debug_P wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::Debug |
typedef Radio::message_id_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::message_id_t |
typedef Radio::node_id_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::node_id_t |
typedef OsModel_P wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::OsModel |
typedef Radio_P wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::Radio |
typedef Radio::radio_delegate_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::radio_delegate_t |
typedef self_type* wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::self_pointer_t |
typedef PacketSnifferRadioModel<OsModel, Statistics_map, Radio, Debug> wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::self_type |
typedef Radio::size_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::size_t |
typedef Statistics_Map_P wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::Statistics_map |
enum wiselib::PacketSnifferRadioModel::Restrictions |
enum wiselib::PacketSnifferRadioModel::SpecialNodeIds |
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::destruct | ( | void | ) | [inline] |
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::disable_radio | ( | void | ) | [inline] |
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::enable_radio | ( | void | ) | [inline] |
node_id_t wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::id | ( | void | ) | [inline] |
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::init | ( | Radio & | radio, |
Debug & | debug, | ||
message_id_t | sniffer_filter | ||
) | [inline] |
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::init | ( | Radio & | radio, |
Debug & | debug | ||
) | [inline] |
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] |
int wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::reg_recv_callback | ( | T * | obj_pnt | ) | [inline] |
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::remove_filter | ( | ) | [inline] |
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] |
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::set_sniffer_filter | ( | message_id_t | type | ) | [inline] |
void wiselib::PacketSnifferRadioModel< OsModel_P, Statistics_Map_P, Radio_P, Debug_P >::unreg_recv_callback | ( | int | idx | ) | [inline] |