59 #ifndef NEIGHBOR_DISCOVERY_H_
60 #define NEIGHBOR_DISCOVERY_H_
65 struct neighbor_discovery_conn;
67 struct neighbor_discovery_callbacks {
68 void (* recv)(
struct neighbor_discovery_conn *c,
69 const linkaddr_t *from, uint16_t val);
70 void (* sent)(
struct neighbor_discovery_conn *c);
73 struct neighbor_discovery_conn {
74 struct broadcast_conn c;
75 const struct neighbor_discovery_callbacks *u;
76 struct ctimer send_timer, interval_timer;
77 clock_time_t initial_interval, min_interval, max_interval;
78 clock_time_t current_interval;
82 void neighbor_discovery_open(
struct neighbor_discovery_conn *c,
87 const struct neighbor_discovery_callbacks *u);
88 void neighbor_discovery_close(
struct neighbor_discovery_conn *c);
89 void neighbor_discovery_set_val(
struct neighbor_discovery_conn *c, uint16_t val);
91 void neighbor_discovery_start(
struct neighbor_discovery_conn *c, uint16_t val);
Header file for the callback timer
Header file for identified best-effort local area broadcast