diff options
author | Josh Blum <josh@joshknows.com> | 2011-02-03 15:28:00 -0800 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-02-03 15:28:00 -0800 |
commit | 1c8626e40cc9e5243cea0956c6d35d9d96c08d38 (patch) | |
tree | f1621dbd71469508e054dcf892d043d33c4aee98 /host/lib/usrp/usrp2/mboard_impl.cpp | |
parent | 6ccd8fc94607d5e81ac4c8a819e9ce89966a6692 (diff) | |
parent | 67bba008255f98367cf19dba518dceb40f763c25 (diff) | |
download | uhd-1c8626e40cc9e5243cea0956c6d35d9d96c08d38.tar.gz uhd-1c8626e40cc9e5243cea0956c6d35d9d96c08d38.tar.bz2 uhd-1c8626e40cc9e5243cea0956c6d35d9d96c08d38.zip |
Merge branch 'multi_usrp_only' into convert_fc64
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(); } } |