summaryrefslogtreecommitdiff
path: root/test/ui_gl_waterfall.c
diff options
context:
space:
mode:
authorFreeArtMan <dos21h@gmail.com>2015-10-09 21:32:37 +0100
committerFreeArtMan <dos21h@gmail.com>2015-10-09 21:32:37 +0100
commit54ac5a3d36b5fd68339a7f4753d862fd21af9389 (patch)
tree33b0c89c6e0acffdeae6413602787619f9337896 /test/ui_gl_waterfall.c
parent66c15af1113de0e864c5286ea255142b2cd53aca (diff)
downloadradiola-54ac5a3d36b5fd68339a7f4753d862fd21af9389.tar.gz
radiola-54ac5a3d36b5fd68339a7f4753d862fd21af9389.zip
Added dongle manager
Diffstat (limited to 'test/ui_gl_waterfall.c')
-rw-r--r--test/ui_gl_waterfall.c12
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