aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/mboard_impl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-31 18:05:16 -0800
committerJosh Blum <josh@joshknows.com>2011-01-31 18:05:16 -0800
commit52e9c8f8027d0bbe1e6b0f57e30f985613e48be2 (patch)
tree44bb54695dfc8a0ba552085a1f9625d7d85d37ab /host/lib/usrp/usrp1/mboard_impl.cpp
parent572a64f0acb459583abfccbc8288158822fa2f77 (diff)
parent67bba008255f98367cf19dba518dceb40f763c25 (diff)
downloaduhd-52e9c8f8027d0bbe1e6b0f57e30f985613e48be2.tar.gz
uhd-52e9c8f8027d0bbe1e6b0f57e30f985613e48be2.tar.bz2
uhd-52e9c8f8027d0bbe1e6b0f57e30f985613e48be2.zip
Merge branch 'multi_usrp_only' into usrp_e100_devel
Diffstat (limited to 'host/lib/usrp/usrp1/mboard_impl.cpp')
-rw-r--r--host/lib/usrp/usrp1/mboard_impl.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/mboard_impl.cpp b/host/lib/usrp/usrp1/mboard_impl.cpp
index 23c8f03c4..6d5bf466d 100644
--- a/host/lib/usrp/usrp1/mboard_impl.cpp
+++ b/host/lib/usrp/usrp1/mboard_impl.cpp
@@ -317,6 +317,10 @@ void usrp1_impl::mboard_get(const wax::obj &key_, wax::obj &val)
val = _soft_time_ctrl->get_time();
return;
+ case MBOARD_PROP_CLOCK_RATE:
+ val = _clock_ctrl->get_master_clock_freq();
+ return;
+
default: UHD_THROW_PROP_GET_ERROR();
}
}
@@ -379,6 +383,10 @@ void usrp1_impl::mboard_set(const wax::obj &key, const wax::obj &val)
_soft_time_ctrl->set_time(val.as<time_spec_t>());
return;
+ case MBOARD_PROP_CLOCK_RATE:
+ _clock_ctrl->set_master_clock_freq(val.as<double>());
+ return;
+
default: UHD_THROW_PROP_SET_ERROR();
}
}