aboutsummaryrefslogtreecommitdiffstats
path: root/lib/device.cc
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2013-10-19 17:17:19 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2013-10-26 15:04:41 +0200
commit8facbbcca1e82818c77a603f8e5652c3bfc33dac (patch)
treee5869283de7582ad2a1654daa3e39571b6303916 /lib/device.cc
parentb7e2dd013b1918e1f6ce8817909b7a744fcc820f (diff)
netsdr: add support for RFSPACE NetSDR receiver
- implements broadcast UDP based device discovery - prints device information (serial/versions) on startup - reads available frequency range(s) from the device - integrity checks of IQ stream using sequence numbers - automatic bandpass or a wideband lowpass selectable The following named gain stages are available: ATT: -30 to 0 dB, in 10dB steps Known limitations: - setting the sample rate is possible only before the flowgraph has been started
Diffstat (limited to 'lib/device.cc')
-rw-r--r--lib/device.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/device.cc b/lib/device.cc
index 108dd36..72396a6 100644
--- a/lib/device.cc
+++ b/lib/device.cc
@@ -66,6 +66,10 @@
#include <bladerf_source_c.h>
#endif
+#ifdef ENABLE_NETSDR
+#include <netsdr_source_c.h>
+#endif
+
#include "arg_helpers.h"
using namespace osmosdr;
@@ -145,6 +149,11 @@ devices_t device::find(const device_t &hint)
BOOST_FOREACH( std::string dev, hackrf_source_c::get_devices() )
devices.push_back( device_t(dev) );
#endif
+#ifdef ENABLE_NETSDR
+ BOOST_FOREACH( std::string dev, netsdr_source_c::get_devices( true ) )
+ devices.push_back( device_t(dev) );
+#endif
+
/* software-only sources should be appended at the very end,
* hopefully resulting in hardware sources to be shown first
* in a graphical interface etc... */