aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp/common')
-rw-r--r--host/lib/usrp/common/ad9361_ctrl.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/host/lib/usrp/common/ad9361_ctrl.cpp b/host/lib/usrp/common/ad9361_ctrl.cpp
index b0bd73093..3cf89ad7a 100644
--- a/host/lib/usrp/common/ad9361_ctrl.cpp
+++ b/host/lib/usrp/common/ad9361_ctrl.cpp
@@ -212,6 +212,14 @@ public:
_device.set_dc_offset_auto(direction,on);
}
+ std::string get_lo_source(const std::string &which)
+ {
+ const auto dir = _get_direction_from_antenna(which);
+ //TODO: Implement this
+ boost::lock_guard<boost::mutex> lock(_mutex);
+ return "internal";
+ }
+
void set_iq_balance_auto(const std::string &which, const bool on)
{
boost::lock_guard<boost::mutex> lock(_mutex);
@@ -315,3 +323,10 @@ ad9361_ctrl::sptr ad9361_ctrl::make_spi(
boost::shared_ptr<ad9361_io_spi> spi_io_iface = boost::make_shared<ad9361_io_spi>(spi_iface, slave_num);
return sptr(new ad9361_ctrl_impl(client_settings, spi_io_iface));
}
+
+ad9361_ctrl::sptr ad9361_ctrl::make_spi(
+ ad9361_params::sptr client_settings,
+ ad9361_io::sptr spi_io_iface
+) {
+ return sptr(new ad9361_ctrl_impl(client_settings, spi_io_iface));
+}