Contiki 2.5
|
A generic module for management of neighbor information.More...
Go to the source code of this file.
Functions | |
void | neighbor_info_packet_sent (int status, int numtx) |
Notify the neighbor information module about the status of a packet transmission. More... | |
void | neighbor_info_packet_received (void) |
Notify the neighbor information module that a packet was received. More... | |
int | neighbor_info_subscribe (neighbor_info_subscriber_t s) |
Subscribe to notifications of changed neighbor information. More... | |
link_metric_t | neighbor_info_get_metric (const rimeaddr_t *addr) |
Get link metric value for a specific neighbor. More... | |
A generic module for management of neighbor information.
Definition in file neighbor-info.c.
link_metric_t neighbor_info_get_metric | ( | const rimeaddr_t * | addr | ) |
Get link metric value for a specific neighbor.
Definition at line 166 of file neighbor-info.c.
References NULL.
void neighbor_info_packet_received | ( | void | ) |
Notify the neighbor information module that a packet was received.
status | The MAC status code for this packet. |
numtx | The amount of transmissions made for this packet. |
Definition at line 138 of file neighbor-info.c.
References rimeaddr_cmp(), and rimeaddr_null.
void neighbor_info_packet_sent | ( | int | status, |
int | numtx | ||
) |
Notify the neighbor information module about the status of a packet transmission.
status | The MAC status code for this packet. |
numtx | The amount of transmissions made for this packet. |
Definition at line 103 of file neighbor-info.c.
References MAC_TX_COLLISION, MAC_TX_NOACK, MAC_TX_OK, rimeaddr_cmp(), and rimeaddr_null.
int neighbor_info_subscribe | ( | neighbor_info_subscriber_t | ) |
Subscribe to notifications of changed neighbor information.
Definition at line 154 of file neighbor-info.c.
References NULL.