aboutsummaryrefslogtreecommitdiffstats
path: root/lib/device.cc
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2013-12-18 23:55:10 +0100
committerDimitri Stolnikov <horiz0n@gmx.net>2013-12-22 16:28:27 +0100
commit9c6ac9e3e3878a5cbe1a261e91350a9123dec532 (patch)
treef32ca7364b68e7912a1748129b8c92e3179679ec /lib/device.cc
parent5410ee53b26f954f9895f84257526e5b0c88e1d4 (diff)
rfspace: add support for RFSPACE SDR-IQ and SDR-IP
Usage example: osmocom_fft -a sdr-iq=/dev/ttyUSB0 osmocom_fft -a sdr-ip=host[:port] osmocom_fft -a netsdr=host[:port][,nchan=2] The following named gain stages are available: SDR-IQ: ATT: -20 to +10 dB, in 10dB steps SDR-IP: ATT: -30 to 0 dB, in 10dB steps The ftdi_sio driver is being used for SDR-IQ. It creates a character device of the form: crw-rw---- 1 root dialout 188, 0 Dec 19 22:14 /dev/ttyUSB0 To be able to open the device without root permissions add yourself to the "dialout" group or do a "chmod 666 /dev/ttyUSB0" after pluggin in.
Diffstat (limited to 'lib/device.cc')
-rw-r--r--lib/device.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/device.cc b/lib/device.cc
index ee3070b..d943ce6 100644
--- a/lib/device.cc
+++ b/lib/device.cc
@@ -66,8 +66,8 @@
#include <bladerf_source_c.h>
#endif
-#ifdef ENABLE_NETSDR
-#include <netsdr_source_c.h>
+#ifdef ENABLE_RFSPACE
+#include <rfspace_source_c.h>
#endif
#include "arg_helpers.h"
@@ -154,8 +154,8 @@ 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( fake ) )
+#ifdef ENABLE_RFSPACE
+ BOOST_FOREACH( std::string dev, rfspace_source_c::get_devices( fake ) )
devices.push_back( device_t(dev) );
#endif