aboutsummaryrefslogtreecommitdiffstats
path: root/lib/source_impl.cc
diff options
context:
space:
mode:
authorAlexandru Csete <oz9aec@gmail.com>2019-12-08 16:07:28 +0100
committerSylvain Munaut <tnt@246tNt.com>2020-02-16 09:52:00 +0100
commit743cac795eef3cce95c87270670f383339bdbef9 (patch)
treec0ff5d7034b24d119e5b9d38683c3112f8b203d0 /lib/source_impl.cc
parent5d59e56ff90258e32a0606121c8dea522c45cb17 (diff)
airspyhf: Add initial support for Airspy HF+
Info: http://airspy.com/airspy-hf-plus/ From: Alexandru Csete <oz9aec@gmail.com> Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'lib/source_impl.cc')
-rw-r--r--lib/source_impl.cc18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/source_impl.cc b/lib/source_impl.cc
index a8a3cec..af2e3c2 100644
--- a/lib/source_impl.cc
+++ b/lib/source_impl.cc
@@ -80,6 +80,10 @@
#include <airspy_source_c.h>
#endif
+#ifdef ENABLE_AIRSPYHF
+#include <airspyhf_source_c.h>
+#endif
+
#ifdef ENABLE_SOAPY
#include <soapy_source_c.h>
#endif
@@ -157,6 +161,9 @@ source_impl::source_impl( const std::string &args )
#ifdef ENABLE_AIRSPY
dev_types.push_back("airspy");
#endif
+#ifdef ENABLE_AIRSPYHF
+ dev_types.push_back("airspyhf");
+#endif
#ifdef ENABLE_SOAPY
dev_types.push_back("soapy");
#endif
@@ -233,6 +240,10 @@ source_impl::source_impl( const std::string &args )
BOOST_FOREACH( std::string dev, airspy_source_c::get_devices() )
dev_list.push_back( dev );
#endif
+#ifdef ENABLE_AIRSPYHF
+ BOOST_FOREACH( std::string dev, airspyhf_source_c::get_devices() )
+ dev_list.push_back( dev );
+#endif
#ifdef ENABLE_SOAPY
BOOST_FOREACH( std::string dev, soapy_source_c::get_devices() )
dev_list.push_back( dev );
@@ -355,6 +366,13 @@ source_impl::source_impl( const std::string &args )
}
#endif
+#ifdef ENABLE_AIRSPYHF
+ if ( dict.count("airspyhf") ) {
+ airspyhf_source_c_sptr src = make_airspyhf_source_c( arg );
+ block = src; iface = src.get();
+ }
+#endif
+
#ifdef ENABLE_SOAPY
if ( dict.count("soapy") ) {
soapy_source_c_sptr src = make_soapy_source_c( arg );