/*---------------------------------------------------------------------------*/ void route_discovery_open(struct route_discovery_conn *c, clock_time_t time, uint16_t channels, const struct route_discovery_callbacks *callbacks) { netflood_open(&c->rreqconn, time, channels + 0, &rreq_callbacks); unicast_open(&c->rrepconn, channels + 1, &rrep_callbacks); c->cb = callbacks; }
/*---------------------------------------------------------------------------*/ void route_discovery_expicit_open(struct route_discovery_conn *c, clock_time_t time, uint16_t netflood_channel, uint16_t unicast_channel, const struct route_discovery_callbacks *callbacks) { netflood_open(&c->rreqconn, time, netflood_channel, &rreq_callbacks); unicast_open(&c->rrepconn, unicast_channel, &rrep_callbacks); c->cb = callbacks; }
/*---------------------------------------------------------------------------*/ void shell_rime_init(void) { netflood_open(&netflood, CLOCK_SECOND * 8, SHELL_RIME_CHANNEL_NODES, &netflood_callbacks); collect_open(&collect, SHELL_RIME_CHANNEL_COLLECT, &collect_callbacks); shell_register_command(&collect_command); shell_register_command(&mac_command); shell_register_command(&nodes_command); shell_register_command(&packetize_command); shell_register_command(&routes_command); shell_register_command(&send_command); #if WITH_TREEDEPTH shell_register_command(&treedepth_command); #endif /* WITH_TREEDEPTH */ }
void scopes_flooding_init(void) { netflood_open(&netflood, SCOPES_FLOODING_QUEUE_TIME, SCOPES_FLOODING_CHANNEL, &callbacks); }