From 3e10b9ed77fdeee88b8f72442058169afa13d439 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Fri, 4 May 2018 16:35:20 -0700 Subject: dboard_iface: Add has_set_fe_connection() method --- host/include/uhd/usrp/dboard_iface.hpp | 4 ++++ host/lib/usrp/x300/x300_dboard_iface.hpp | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/host/include/uhd/usrp/dboard_iface.hpp b/host/include/uhd/usrp/dboard_iface.hpp index a6a8966b3..60b1954fc 100644 --- a/host/include/uhd/usrp/dboard_iface.hpp +++ b/host/include/uhd/usrp/dboard_iface.hpp @@ -276,6 +276,10 @@ public: const uhd::usrp::fe_connection_t& fe_conn ) = 0; + /*! Returns the true if set_fe_connection() is implemented on this dboard_iface + */ + virtual bool has_set_fe_connection(const unit_t) { return false; } + /*! * Get the command time. * \return the command time diff --git a/host/lib/usrp/x300/x300_dboard_iface.hpp b/host/lib/usrp/x300/x300_dboard_iface.hpp index 807879bad..f41bb3d42 100644 --- a/host/lib/usrp/x300/x300_dboard_iface.hpp +++ b/host/lib/usrp/x300/x300_dboard_iface.hpp @@ -88,6 +88,12 @@ public: unit_t unit, const std::string& name, const uhd::usrp::fe_connection_t& fe_conn); + // X300 can set the FE connection on the RX side + bool has_set_fe_connection(const unit_t unit) override + { + return unit == UNIT_RX; + } + void add_rx_fe( const std::string& fe_name, rx_frontend_core_3000::sptr fe_core); -- cgit v1.2.3