From 8adda9187304d8f06f907bfebc93e47207fa4796 Mon Sep 17 00:00:00 2001 From: FreeArtMan <=> Date: Sat, 19 Sep 2015 20:28:13 +0100 Subject: Added few rtlsdr tests. List all devices. Try to read sample. --- test/get_device_list.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 test/get_device_list.c (limited to 'test/get_device_list.c') diff --git a/test/get_device_list.c b/test/get_device_list.c new file mode 100644 index 0000000..f65c551 --- /dev/null +++ b/test/get_device_list.c @@ -0,0 +1,30 @@ +#include +#include +#include + +//rtlsdr +#include + +int main( ) +{ + int i; + uint32_t dev_num; + + dev_num = rtlsdr_get_device_count(); + printf("Found %d device(s)\n", dev_num ); + + printf("List device names:\n"); + for (i=0; i