From 54ac5a3d36b5fd68339a7f4753d862fd21af9389 Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Fri, 9 Oct 2015 21:32:37 +0100 Subject: Added dongle manager --- test/ui_gl_waterfall.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/ui_gl_waterfall.c') diff --git a/test/ui_gl_waterfall.c b/test/ui_gl_waterfall.c index 3c19aca..733f932 100644 --- a/test/ui_gl_waterfall.c +++ b/test/ui_gl_waterfall.c @@ -21,7 +21,7 @@ int16_t* Sinewave; int N_WAVE, LOG2_N_WAVE; double* power_table; -int sdr_init() +int dng_init() { int ret; uint32_t dev_index = 0; @@ -73,7 +73,7 @@ int sdr_init() } -int sdr_close() +int dng_close() { //close tunner if ( dev != NULL) @@ -85,7 +85,7 @@ int sdr_close() return -1; } -int sdr_get_samples( uint8_t *buf, int len ) +int dng_get_samples( uint8_t *buf, int len ) { int ret, read_num; @@ -266,7 +266,7 @@ int main() glui_t *t = NULL; glui_waterfall_t *w = NULL; - if ( sdr_init() == -1 ) + if ( dng_init() == -1 ) { goto main_exit; } @@ -310,7 +310,7 @@ int main() // sample_buf[j] = (uint8_t)((rand()&0xff)); //read some samples - sdr_get_samples( sample_buf, sample_len ); + dng_get_samples( sample_buf, sample_len ); //do fft simple_fft( sample_buf, sample_len ); @@ -328,7 +328,7 @@ int main() main_exit: //close gui, restore terminal mode glui_close( t ); - sdr_close(); + dng_close(); return 0; } \ No newline at end of file -- cgit v1.2.3