Public Types |
enum | ControlMessageTypes {
SET_GW = 100,
SET_VLINK = 101,
USET_VLINK = 102,
SET_DLINK = 103,
USET_DLINK = 104
} |
enum | SpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS,
NULL_NODE_ID = Radio::NULL_NODE_ID,
BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS,
NULL_NODE_ID = Radio::NULL_NODE_ID
} |
enum | Restrictions { MAX_MESSAGE_LENGTH = 115,
MAX_MESSAGE_LENGTH = 115
} |
enum | SpecialNodeIds { BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS,
NULL_NODE_ID = Radio::NULL_NODE_ID,
BROADCAST_ADDRESS = Radio::BROADCAST_ADDRESS,
NULL_NODE_ID = Radio::NULL_NODE_ID
} |
enum | Restrictions { MAX_MESSAGE_LENGTH = 115,
MAX_MESSAGE_LENGTH = 115
} |
typedef OsModel_P | OsModel |
typedef OsModel::Os | Os |
typedef Radio_P | Radio |
typedef VirtualRadioModel
< OsModel, Radio > | 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_delegate_t | vradio_delegate_t |
typedef vector_static< OsModel,
vradio_delegate_t, 10 > | receivers_t |
typedef receivers_t::iterator | rcv_iterator |
typedef vector_static< OsModel,
node_id_t, 10 > | virtual_links |
typedef virtual_links::iterator | iterator |
typedef vector_static< OsModel,
node_id_t, 10 > | deactivated_links |
typedef deactivated_links::iterator | dl_iterator |
typedef OsModel_P | OsModel |
typedef OsModel::Os | Os |
typedef Radio_P | Radio |
typedef Uart_P | Uart |
typedef Debug_P | Debug |
typedef VirtualRadioModel
< OsModel, Radio, Uart, Debug,
MAX_VIRTUAL_LINKS > | self_type |
typedef self_type * | self_pointer_t |
typedef VirtualLinkInMessage
< OsModel, Radio > | InMessage |
typedef VirtualLinkOutMessage
< OsModel, Radio > | OutMessage |
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 |
typedef vector_static< OsModel,
radio_delegate_t, 10 > | Receivers |
typedef Receivers::iterator | ReceiversIterator |
typedef vector_static< OsModel,
node_id_t, 10 > | DestinationVector |
typedef DestinationVector::iterator | DestinationVectorIterator |
typedef vector_static< OsModel,
node_id_t, 10 > | DeadLinksVector |
typedef DeadLinksVector::iterator | DeadLinksVectorIterator |
Public Member Functions |
void | init (Radio &radio, Uart &uart, Debug &debug) |
void | destruct () |
void | send (node_id_t to, size_t len, block_data_t *buf) |
void | receive_message (node_id_t id, size_t len, block_data_t *buf) |
void | set_virtual_link (block_data_t *data) |
void | destroy_virtual_link (block_data_t *data) |
void | enable_physical_link (block_data_t *data) |
void | disable_physical_link (block_data_t *data) |
bool | node_in_deadlink_vector (node_id_t dest) |
void | enable_node (block_data_t *data) |
void | disable_node (block_data_t *data) |
void | rcv_uart_packet (size_t len, block_data_t *data) |
void | send_response_message (uint8_t command_type, uint8_t request_id, uint8_t result, uint8_t len, block_data_t *payload) |
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) |
Static Public Member Functions |
static uint16_t | getGW (void) |
static char * | dumpStats (void) |
static int | findvneighbor (uint16_t addr) |
static void | addvneighbor (uint16_t addr) |
static void | removevneighbor (uint16_t addr) |
static void | send (Os *os, node_id_t id, size_t len, block_data_t *data) |
static void | sendToGw (Os *os, uint8_t vlink_msg_type, node_id_t id, size_t len, block_data_t *data) |
static void | enable (Os *os) |
static void | vlink_rcv (node_id_t id, size_t len, block_data_t *data) |
static void | disable (Os *os) |
static node_id_t | id (Os *os) |
template<class T , void(T::*)(node_id_t, size_t, block_data_t *) TMethod> |
static int | reg_recv_callback (Os *os, T *obj_pnt) |
static void | unreg_recv_callback (Os *os, int idx) |
Public Attributes |
Receivers | receivers_ |
DestinationVector | destinations_ |
DeadLinksVector | deadlinks_ |
bool | nodeactive_ |
node_id_t | virtual_node_id_ |
Static Public Attributes |
static virtual_links | vlinks |
static deactivated_links | dlinks |
static receivers_t | receivers |
template<typename OsModel_P, typename Radio_P = typename OsModel_P::Radio>
class wiselib::VirtualRadioModel< OsModel_P, Radio_P >
iSense Implementation of Radio Concept
iSense implementation of the Radio concept ...
Virtual Radio Implementation of Radio Concept
Virtual Radio implementation of the Radio concept ...
template<typename OsModel_P , typename Radio_P = typename OsModel_P::Radio>
Unkown until the right msh is received
Unkown until the right msh is received
Unkown until the right msh is received
Unkown until the right msh is received