aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/usrp2_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-03-01 18:35:12 -0800
committerJosh Blum <josh@joshknows.com>2012-03-23 14:36:56 -0700
commitb1d82758b0e98ab10c5ca2e65eed1ae90afd8d62 (patch)
tree8785ecaf8598c839fe15096f9dfad35f2eb11dd6 /host/lib/usrp/usrp2/usrp2_impl.cpp
parentf59ef44a43d0d16655cb67a3d0334e8cacd76f09 (diff)
downloaduhd-b1d82758b0e98ab10c5ca2e65eed1ae90afd8d62.tar.gz
uhd-b1d82758b0e98ab10c5ca2e65eed1ae90afd8d62.tar.bz2
uhd-b1d82758b0e98ab10c5ca2e65eed1ae90afd8d62.zip
usrp2: implementation of timed commands working
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r--host/lib/usrp/usrp2/usrp2_impl.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp
index 59cf65828..68ee8044c 100644
--- a/host/lib/usrp/usrp2/usrp2_impl.cpp
+++ b/host/lib/usrp/usrp2/usrp2_impl.cpp
@@ -579,6 +579,11 @@ usrp2_impl::usrp2_impl(const device_addr_t &_device_addr){
.subscribe(boost::bind(&usrp2_impl::update_clock_source, this, mb, _1));
static const std::vector<std::string> clock_sources = boost::assign::list_of("internal")("external")("mimo");
_tree->create<std::vector<std::string> >(mb_path / "clock_source/options").set(clock_sources);
+ //plug timed commands into tree here
+ _tree->create<time_spec_t>(mb_path / "time/cmd")
+ .subscribe(boost::bind(&usrp2_fifo_ctrl::set_time, _mbc[mb].fifo_ctrl, _1));
+ _tree->access<double>(mb_path / "tick_rate")
+ .subscribe(boost::bind(&usrp2_fifo_ctrl::set_tick_rate, _mbc[mb].fifo_ctrl, _1));
////////////////////////////////////////////////////////////////////
// create user-defined control objects