diff options
author | Brent Stapleton <brent.stapleton@ettus.com> | 2018-04-17 19:33:23 -0700 |
---|---|---|
committer | Brent Stapleton <bstapleton@g.hmc.edu> | 2018-07-18 15:37:27 -0700 |
commit | 300a5e3f6e5e845b4b8d093222e1c51ca4640f79 (patch) | |
tree | 62f8bb7bc7d847b8f32f1fe5b4c9c06ef608080e /host/lib/usrp/common | |
parent | a1d6530ce50ca9590739ffa40464747d3db968eb (diff) | |
download | uhd-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/usrp/common')
-rw-r--r-- | host/lib/usrp/common/ad9361_ctrl.cpp | 15 |
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)); +} |