forked from sdr/gr-osmosdr
add Red Pitaya discovery in device find function
This commit is contained in:
parent
3fda9d6be5
commit
11257d0aa6
|
@ -78,6 +78,10 @@
|
||||||
#include <airspy_source_c.h>
|
#include <airspy_source_c.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENABLE_REDPITAYA
|
||||||
|
#include <redpitaya_source_c.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "arg_helpers.h"
|
#include "arg_helpers.h"
|
||||||
|
|
||||||
using namespace osmosdr;
|
using namespace osmosdr;
|
||||||
|
@ -174,6 +178,7 @@ devices_t device::find(const device_t &hint)
|
||||||
BOOST_FOREACH( std::string dev, airspy_source_c::get_devices() )
|
BOOST_FOREACH( std::string dev, airspy_source_c::get_devices() )
|
||||||
devices.push_back( device_t(dev) );
|
devices.push_back( device_t(dev) );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* software-only sources should be appended at the very end,
|
/* software-only sources should be appended at the very end,
|
||||||
* hopefully resulting in hardware sources to be shown first
|
* hopefully resulting in hardware sources to be shown first
|
||||||
* in a graphical interface etc... */
|
* in a graphical interface etc... */
|
||||||
|
@ -182,6 +187,10 @@ devices_t device::find(const device_t &hint)
|
||||||
BOOST_FOREACH( std::string dev, rtl_tcp_source_c::get_devices( fake ) )
|
BOOST_FOREACH( std::string dev, rtl_tcp_source_c::get_devices( fake ) )
|
||||||
devices.push_back( device_t(dev) );
|
devices.push_back( device_t(dev) );
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef ENABLE_REDPITAYA
|
||||||
|
BOOST_FOREACH( std::string dev, redpitaya_source_c::get_devices( fake ) )
|
||||||
|
devices.push_back( device_t(dev) );
|
||||||
|
#endif
|
||||||
#ifdef ENABLE_FILE
|
#ifdef ENABLE_FILE
|
||||||
BOOST_FOREACH( std::string dev, file_source_c::get_devices( fake ) )
|
BOOST_FOREACH( std::string dev, file_source_c::get_devices( fake ) )
|
||||||
devices.push_back( device_t(dev) );
|
devices.push_back( device_t(dev) );
|
||||||
|
|
Loading…
Reference in New Issue