aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-05-04 16:35:20 -0700
committerMartin Braun <martin.braun@ettus.com>2018-05-08 10:43:25 -0700
commit3e10b9ed77fdeee88b8f72442058169afa13d439 (patch)
tree923516ab48966eecb34d9f595b7cb11044bc83b2 /host
parent9a14a07a97e7f0b1eed02ea25d070b42217b8b63 (diff)
downloaduhd-3e10b9ed77fdeee88b8f72442058169afa13d439.tar.gz
uhd-3e10b9ed77fdeee88b8f72442058169afa13d439.tar.bz2
uhd-3e10b9ed77fdeee88b8f72442058169afa13d439.zip
dboard_iface: Add has_set_fe_connection() method
Diffstat (limited to 'host')
-rw-r--r--host/include/uhd/usrp/dboard_iface.hpp4
-rw-r--r--host/lib/usrp/x300/x300_dboard_iface.hpp6
2 files changed, 10 insertions, 0 deletions
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);