diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/.gitignore | 2 | ||||
-rw-r--r-- | test/ui_gl_filter.c | 6 | ||||
-rw-r--r-- | test/ui_gl_fm.c | 6 | ||||
-rw-r--r-- | test/ui_gl_waterfall.c | 12 | ||||
-rw-r--r-- | test/ui_tui_waterfall.c | 12 |
5 files changed, 26 insertions, 12 deletions
diff --git a/test/.gitignore b/test/.gitignore index b4557b8..41c1670 100644 --- a/test/.gitignore +++ b/test/.gitignore @@ -3,4 +3,6 @@ read_samples ui_tui_waterfall ui_gl_waterfall get_audo_list +ui_gl_fm +ui_gl_filter *.o diff --git a/test/ui_gl_filter.c b/test/ui_gl_filter.c new file mode 100644 index 0000000..d9ad053 --- /dev/null +++ b/test/ui_gl_filter.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +int main() +{ + return 0; +}
\ No newline at end of file diff --git a/test/ui_gl_fm.c b/test/ui_gl_fm.c new file mode 100644 index 0000000..d9ad053 --- /dev/null +++ b/test/ui_gl_fm.c @@ -0,0 +1,6 @@ +#include <stdio.h> + +int main() +{ + return 0; +}
\ No newline at end of file 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 diff --git a/test/ui_tui_waterfall.c b/test/ui_tui_waterfall.c index 46445b0..6a8a3f8 100644 --- a/test/ui_tui_waterfall.c +++ b/test/ui_tui_waterfall.c @@ -22,7 +22,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; @@ -74,7 +74,7 @@ int sdr_init() } -int sdr_close() +int dng_close() { //close tunner if ( dev != NULL) @@ -86,7 +86,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; @@ -265,7 +265,7 @@ int main() tui_t *t = NULL; tui_waterfall_t *w = NULL; - if ( sdr_init() == -1 ) + if ( dng_init() == -1 ) { goto main_exit; } @@ -316,7 +316,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 ); @@ -335,7 +335,7 @@ int main() main_exit: //close gui, restore terminal mode tui_close( t ); - sdr_close(); + dng_close(); return 0; } |