コード例 #1
0
ファイル: rtl_test.c プロジェクト: AndriyPopovych/rtl-sdr
static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
{
	underrun_test(buf, len, 0);
#ifndef _WIN32
	if (test_mode == PPM_BENCHMARK)
		ppm_test(len);
#endif
}
コード例 #2
0
ファイル: rtl_test.c プロジェクト: Bugzilla69/rtl-sdr
static void rtlsdr_callback(unsigned char *buf, uint32_t len, void *ctx)
{
	underrun_test(buf, len, 0);

	if (ppm_benchmark && !ppm_running) {
		ppm_clock_init();
		ppm_running = 1;
		return;
	}

	if (ppm_benchmark) {
		ppm_test(len);
	}
}