From 721f2dd9c1b29b219c9e036f856e7f64f495728c Mon Sep 17 00:00:00 2001 From: Ashish Chaudhari Date: Wed, 9 Mar 2016 17:57:54 -0800 Subject: dboard_iface: Added method to configure front connection and settings --- host/lib/usrp/x300/x300_dboard_iface.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'host/lib/usrp/x300/x300_dboard_iface.cpp') diff --git a/host/lib/usrp/x300/x300_dboard_iface.cpp b/host/lib/usrp/x300/x300_dboard_iface.cpp index ef55368c8..884848624 100644 --- a/host/lib/usrp/x300/x300_dboard_iface.cpp +++ b/host/lib/usrp/x300/x300_dboard_iface.cpp @@ -80,6 +80,7 @@ public: boost::uint32_t data, size_t num_bits ); + void set_fe_connection(unit_t unit, const fe_connection_t& fe_conn); const x300_dboard_iface_config_t _config; uhd::dict _dac_regs; @@ -369,3 +370,12 @@ void x300_dboard_iface::set_command_time(const uhd::time_spec_t& t) { _config.cmd_time_ctrl->set_time(t); } + +void x300_dboard_iface::set_fe_connection(unit_t unit, const fe_connection_t& fe_conn) +{ + if (unit == UNIT_RX) { + _config.rx_dsp->set_mux(fe_conn); + } else { + throw uhd::not_implemented_error("frontend connection not configurable for TX"); + } +} -- cgit v1.2.3