コード例 #1
0
ファイル: route-discovery.c プロジェクト: mlwymore/contiki
/*---------------------------------------------------------------------------*/
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;
}
コード例 #2
0
ファイル: route-discovery.c プロジェクト: damini1406/contiki
/*---------------------------------------------------------------------------*/
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;
}
コード例 #3
0
ファイル: shell-rime.c プロジェクト: EDAyele/ptunes
/*---------------------------------------------------------------------------*/
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 */

}
コード例 #4
0
void
scopes_flooding_init(void)
{
  netflood_open(&netflood, SCOPES_FLOODING_QUEUE_TIME, SCOPES_FLOODING_CHANNEL, &callbacks);
}