diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-03 17:43:38 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-03 17:43:38 -0800 |
commit | abf755a8846b6e2afa53c9b521069e488038cf9a (patch) | |
tree | 320a801cfa577327bbcd19a00c3aa3f3bd99107a /host/lib/usrp/usrp2/mboard_impl.cpp | |
parent | d6cab26bf26d61d71ba0792bce8f48a89f7dc2d7 (diff) | |
parent | 67bba008255f98367cf19dba518dceb40f763c25 (diff) | |
download | uhd-abf755a8846b6e2afa53c9b521069e488038cf9a.tar.gz uhd-abf755a8846b6e2afa53c9b521069e488038cf9a.tar.bz2 uhd-abf755a8846b6e2afa53c9b521069e488038cf9a.zip |
Merge branch 'multi_usrp_only' into latency_test
Diffstat (limited to 'host/lib/usrp/usrp2/mboard_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/mboard_impl.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/mboard_impl.cpp b/host/lib/usrp/usrp2/mboard_impl.cpp index 3e7e8b01f..784f662d9 100644 --- a/host/lib/usrp/usrp2/mboard_impl.cpp +++ b/host/lib/usrp/usrp2/mboard_impl.cpp @@ -355,6 +355,10 @@ void usrp2_mboard_impl::get(const wax::obj &key_, wax::obj &val){ val = _iface->mb_eeprom; return; + case MBOARD_PROP_CLOCK_RATE: + val = this->get_master_clock_freq(); + return; + default: UHD_THROW_PROP_GET_ERROR(); } } @@ -412,6 +416,10 @@ void usrp2_mboard_impl::set(const wax::obj &key, const wax::obj &val){ _iface->mb_eeprom = mboard_eeprom_t(*_iface, mboard_eeprom_t::MAP_N100); return; + case MBOARD_PROP_CLOCK_RATE: + UHD_ASSERT_THROW(val.as<double>() == this->get_master_clock_freq()); + return; + default: UHD_THROW_PROP_SET_ERROR(); } } |