aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2018-03-28 14:39:11 -0700
committerMartin Braun <martin.braun@ettus.com>2018-04-03 17:03:14 -0700
commitd110e64f82fe4413393f8078d82ae0468cef283a (patch)
tree23347f3589b99a50e4c81b708a3be877a8df669a
parent0430819e47e89afdf2f382f53f5730900a2339fe (diff)
downloaduhd-d110e64f82fe4413393f8078d82ae0468cef283a.tar.gz
uhd-d110e64f82fe4413393f8078d82ae0468cef283a.tar.bz2
uhd-d110e64f82fe4413393f8078d82ae0468cef283a.zip
b200: Add clock rate range
-rw-r--r--host/lib/usrp/b200/b200_impl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp
index 570994496..c432ad905 100644
--- a/host/lib/usrp/b200/b200_impl.cpp
+++ b/host/lib/usrp/b200/b200_impl.cpp
@@ -572,6 +572,11 @@ b200_impl::b200_impl(const uhd::device_addr_t& device_addr, usb_device_handle::s
.set_coercer(boost::bind(&b200_impl::set_tick_rate, this, _1))
.set_publisher(boost::bind(&b200_impl::get_tick_rate, this))
.add_coerced_subscriber(boost::bind(&b200_impl::update_tick_rate, this, _1));
+ _tree->create<meta_range_t>(mb_path / "tick_rate/range")
+ .set_publisher([this](){
+ return this->_codec_ctrl->get_clock_rate_range();
+ })
+ ;
_tree->create<time_spec_t>(mb_path / "time" / "cmd");
_tree->create<bool>(mb_path / "auto_tick_rate").set(false);