diff options
author | Julian Arnold <julian.arnold@ettus.com> | 2014-12-10 12:08:40 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-01-20 19:33:05 +0100 |
commit | 81f08ddff55fb5b181fb2575bd418eee2ac95937 (patch) | |
tree | 5de7307608606c6a508324f32b25c64f08696738 /host/lib/usrp/e300/e300_impl.cpp | |
parent | 93bd61a0fec4ea7e81ba78f62fb998116266ac96 (diff) | |
download | uhd-81f08ddff55fb5b181fb2575bd418eee2ac95937.tar.gz uhd-81f08ddff55fb5b181fb2575bd418eee2ac95937.tar.bz2 uhd-81f08ddff55fb5b181fb2575bd418eee2ac95937.zip |
e200: Expose temperature sensor through property tree (sensors/temp)
Diffstat (limited to 'host/lib/usrp/e300/e300_impl.cpp')
-rw-r--r-- | host/lib/usrp/e300/e300_impl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 3f1b4fea4..9b98e6f8b 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -1044,6 +1044,8 @@ void e300_impl::_setup_radio(const size_t dspno) _tree->create<int>(rf_fe_path / "sensors"); //empty TODO _tree->create<sensor_value_t>(rf_fe_path / "sensors" / "lo_locked") .publish(boost::bind(&e300_impl::_get_fe_pll_lock, this, direction == "tx")); + _tree->create<sensor_value_t>(rf_fe_path / "sensors" / "temp") + .publish(boost::bind(&ad9361_ctrl::get_temperature, _codec_ctrl)); BOOST_FOREACH(const std::string &name, ad9361_ctrl::get_gain_names(key)) { _tree->create<meta_range_t>(rf_fe_path / "gains" / name / "range") |