aboutsummaryrefslogtreecommitdiffstats
path: root/host/utils/uhd_usrp_probe.cpp
diff options
context:
space:
mode:
authorMarcus Müller <marcus.mueller@ettus.com>2015-02-17 16:58:29 +0100
committerMartin Braun <martin.braun@ettus.com>2015-02-18 16:38:12 +0100
commitf06509c47dd16991bc922d132512ea8c45f09887 (patch)
tree0dcd7a51db3ce9764b43398b2d9fa39112ff7cda /host/utils/uhd_usrp_probe.cpp
parent1e6e4a262d94fb21e06c8381ba3bd0f6fa553154 (diff)
downloaduhd-f06509c47dd16991bc922d132512ea8c45f09887.tar.gz
uhd-f06509c47dd16991bc922d132512ea8c45f09887.tar.bz2
uhd-f06509c47dd16991bc922d132512ea8c45f09887.zip
uhd: uhd_usrp_probe: added bandwidth ranges to RX output, if available
Diffstat (limited to 'host/utils/uhd_usrp_probe.cpp')
-rw-r--r--host/utils/uhd_usrp_probe.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/utils/uhd_usrp_probe.cpp b/host/utils/uhd_usrp_probe.cpp
index 656cdf45a..ea346b4c9 100644
--- a/host/utils/uhd_usrp_probe.cpp
+++ b/host/utils/uhd_usrp_probe.cpp
@@ -88,6 +88,11 @@ static std::string get_frontend_pp_string(const std::string &type, property_tree
meta_range_t gain_range = tree->access<meta_range_t>(path / "gains" / name / "range").get();
ss << boost::format("Gain range %s: %.1f to %.1f step %.1f dB") % name % gain_range.start() % gain_range.stop() % gain_range.step() << std::endl;
}
+ if (tree->exists(path / "bandwidth" / "range"))
+ {
+ meta_range_t bw_range = tree->access<meta_range_t>(path / "bandwidth" / "range").get();
+ ss << boost::format("Bandwidth range: %.1f to %.1f step %.1f Hz") % bw_range.start() % bw_range.stop() % bw_range.step() << std::endl;
+ }
ss << boost::format("Connection Type: %s") % (tree->access<std::string>(path / "connection").get()) << std::endl;
ss << boost::format("Uses LO offset: %s") % ((tree->access<bool>(path / "use_lo_offset").get())? "Yes" : "No") << std::endl;