void nwl_rx_start(uint8_t subnet, uint8_t spectrum_id[2], Protocol_Type type)
{


	scan_cfg.spectrum_id[0] = spectrum_id[0];
	scan_cfg.spectrum_id[1] = spectrum_id[1];
	scan_cfg.time_next_scan = 0;
	scan_cfg.timeout_scan_detect = 0;


	if (type != ProtocolTypeNetworkProtocol)
		scan_cfg.scan_type = FrameTypeBackgroundFrame;
	else
		scan_cfg.scan_type = FrameTypeForegroundFrame;


	scan_series_cfg.length = 1;
	scan_series_cfg.values = &scan_cfg;

	dll_channel_scan_series(&scan_series_cfg);
}
Exemple #2
0
static void scan_next(void* arg)
{
	dll_channel_scan_series(current_css);
}