diff options
author | Julian Arnold <julian.arnold@ettus.com> | 2014-12-16 13:30:54 -0800 |
---|---|---|
committer | Julian Arnold <julian.arnold@ettus.com> | 2015-01-12 15:39:04 -0800 |
commit | 6a98b4e67c6af0e3a17135a41c3c7bfdf62f4892 (patch) | |
tree | 26e9d7da388f4d096b62699b94fda95cf4f1980c | |
parent | 9d0750df6c90099eabd6d4108f51ebbee85ded21 (diff) | |
download | uhd-6a98b4e67c6af0e3a17135a41c3c7bfdf62f4892.tar.gz uhd-6a98b4e67c6af0e3a17135a41c3c7bfdf62f4892.tar.bz2 uhd-6a98b4e67c6af0e3a17135a41c3c7bfdf62f4892.zip |
b200: rssi sensor
-rw-r--r-- | host/lib/usrp/b200/b200_impl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/host/lib/usrp/b200/b200_impl.cpp b/host/lib/usrp/b200/b200_impl.cpp index 01c0f5cbf..aa309e7eb 100644 --- a/host/lib/usrp/b200/b200_impl.cpp +++ b/host/lib/usrp/b200/b200_impl.cpp @@ -655,7 +655,7 @@ void b200_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"); @@ -663,6 +663,8 @@ void b200_impl::setup_radio(const size_t dspno) _tree->create<std::string>(rf_fe_path / "antenna" / "value") .subscribe(boost::bind(&b200_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') { |