diff options
Diffstat (limited to 'test/ui_gl_waterfall.c')
-rw-r--r-- | test/ui_gl_waterfall.c | 12 |
1 files changed, 6 insertions, 6 deletions
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 |