diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-03 18:51:42 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-03 18:51:42 -0800 |
commit | d6c52af6a8ac2e2a85942116768cf69971aac48a (patch) | |
tree | 58f90b7da55eda0317ac1343ad7878c9adfdc631 /host/lib/usrp/usrp1/mboard_impl.cpp | |
parent | 5d459d1cb09cdce0c1fd4d7e7d0259310921b94f (diff) | |
parent | 43b19815fec253dc7e5538329f9fe1363f007b8a (diff) | |
download | uhd-d6c52af6a8ac2e2a85942116768cf69971aac48a.tar.gz uhd-d6c52af6a8ac2e2a85942116768cf69971aac48a.tar.bz2 uhd-d6c52af6a8ac2e2a85942116768cf69971aac48a.zip |
Merge branch 'convert_fc64'
Diffstat (limited to 'host/lib/usrp/usrp1/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp1/mboard_impl.cpp | 8 |
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(); } } |