diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-01-13 09:45:55 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-01-13 09:45:55 +0100 |
commit | be5f9613311d944b8971570bff444c5af094f0f5 (patch) | |
tree | 6e97e48801fe10a61244c2f4e36ef7f28a6e3c57 /host/lib/usrp/e300/e300_impl.cpp | |
parent | d15fe9bc22efe4d0499a9108659e32c93e0a2848 (diff) | |
parent | 23729861a2020359b9c920347bd2d7c43d96ebf8 (diff) | |
download | uhd-be5f9613311d944b8971570bff444c5af094f0f5.tar.gz uhd-be5f9613311d944b8971570bff444c5af094f0f5.tar.bz2 uhd-be5f9613311d944b8971570bff444c5af094f0f5.zip |
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/e300/e300_impl.cpp')
-rw-r--r-- | host/lib/usrp/e300/e300_impl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 8807a56e4..43a9b7b26 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -1097,14 +1097,15 @@ void e300_impl::_setup_radio(const size_t dspno) _tree->create<meta_range_t>(rf_fe_path / "freq" / "range") .publish(boost::bind(&ad9361_ctrl::get_rf_freq_range)); - //setup antenna stuff + //setup RX related stuff if (key[0] == 'R') { static const std::vector<std::string> ants = boost::assign::list_of("TX/RX")("RX2"); _tree->create<std::vector<std::string> >(rf_fe_path / "antenna" / "options").set(ants); _tree->create<std::string>(rf_fe_path / "antenna" / "value") .subscribe(boost::bind(&e300_impl::_update_antenna_sel, this, dspno, _1)) .set("RX2"); - + _tree->create<sensor_value_t>(rf_fe_path / "sensors" / "rssi") + .publish(boost::bind(&ad9361_ctrl::get_rssi, _codec_ctrl, key)); } if (key[0] == 'T') { static const std::vector<std::string> ants(1, "TX/RX"); |