aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorBrent Stapleton <brent.stapleton@ettus.com>2018-04-17 19:33:23 -0700
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-07-18 15:37:27 -0700
commit300a5e3f6e5e845b4b8d093222e1c51ca4640f79 (patch)
tree62f8bb7bc7d847b8f32f1fe5b4c9c06ef608080e /host/lib
parenta1d6530ce50ca9590739ffa40464747d3db968eb (diff)
downloaduhd-300a5e3f6e5e845b4b8d093222e1c51ca4640f79.tar.gz
uhd-300a5e3f6e5e845b4b8d093222e1c51ca4640f79.tar.bz2
uhd-300a5e3f6e5e845b4b8d093222e1c51ca4640f79.zip
mpm: initial commit of E320 code
Co-authored-by: Sugandha Gupta <sugandha.gupta@ettus.com>
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/include/uhdlib/usrp/common/ad9361_ctrl.hpp6
-rw-r--r--host/lib/usrp/common/ad9361_ctrl.cpp15
2 files changed, 21 insertions, 0 deletions
diff --git a/host/lib/include/uhdlib/usrp/common/ad9361_ctrl.hpp b/host/lib/include/uhdlib/usrp/common/ad9361_ctrl.hpp
index 1d9585d35..30c3987e1 100644
--- a/host/lib/include/uhdlib/usrp/common/ad9361_ctrl.hpp
+++ b/host/lib/include/uhdlib/usrp/common/ad9361_ctrl.hpp
@@ -50,6 +50,12 @@ public:
uhd::spi_iface::sptr spi_iface,
uint32_t slave_num
);
+
+ static sptr make_spi(
+ ad9361_params::sptr client_settings,
+ ad9361_io::sptr spi_io_iface
+ );
+
//! Get a list of gain names for RX or TX
static std::vector<std::string> get_gain_names(const std::string &/*which*/)
{
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));
+}