diff options
author | Josh Blum <josh@joshknows.com> | 2011-06-28 19:10:55 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-06-28 19:10:55 -0700 |
commit | ebd2ecc6ff2b82cb06701bbcda17d4caaa4ba8c1 (patch) | |
tree | 458881f9c6fda810b0dc51a5ee12b89c24624b82 /host/utils/uhd_usrp_probe.cpp | |
parent | cbbae2f5b4a429458892267254bdf6e25864f375 (diff) | |
download | uhd-ebd2ecc6ff2b82cb06701bbcda17d4caaa4ba8c1.tar.gz uhd-ebd2ecc6ff2b82cb06701bbcda17d4caaa4ba8c1.tar.bz2 uhd-ebd2ecc6ff2b82cb06701bbcda17d4caaa4ba8c1.zip |
uhd: work getting multi-usrp working
Diffstat (limited to 'host/utils/uhd_usrp_probe.cpp')
-rw-r--r-- | host/utils/uhd_usrp_probe.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/host/utils/uhd_usrp_probe.cpp b/host/utils/uhd_usrp_probe.cpp index 0605aa621..e90f82ee8 100644 --- a/host/utils/uhd_usrp_probe.cpp +++ b/host/utils/uhd_usrp_probe.cpp @@ -74,6 +74,7 @@ static std::string get_subdev_pp_string(const std::string &type, property_tree:: ss << boost::format("Name: %s") % (tree->access<std::string>(path / "name").get()) << std::endl; ss << boost::format("Antennas: %s") % prop_names_to_pp_string(tree->access<std::vector<std::string> >(path / "antenna/options").get()) << std::endl; + ss << boost::format("Sensors: %s") % prop_names_to_pp_string(tree->list(path / "sensors")) << std::endl; meta_range_t freq_range = tree->access<meta_range_t>(path / "freq/range").get(); ss << boost::format("Freq range: %.3f to %.3f Mhz") % (freq_range.start()/1e6) % (freq_range.stop()/1e6) << std::endl; @@ -134,6 +135,10 @@ static std::string get_mboard_pp_string(property_tree::sptr tree, const property BOOST_FOREACH(const std::string &key, mb_eeprom.keys()){ if (not mb_eeprom[key].empty()) ss << boost::format("%s: %s") % key % mb_eeprom[key] << std::endl; } + ss << std::endl; + ss << "Time sources: " << prop_names_to_pp_string(tree->access<std::vector<std::string> >(path / "time_source" / "options").get()) << std::endl; + ss << "Ref sources: " << prop_names_to_pp_string(tree->access<std::vector<std::string> >(path / "ref_source" / "options").get()) << std::endl; + ss << "Sensors: " << prop_names_to_pp_string(tree->list(path / "sensors")) << std::endl; BOOST_FOREACH(const std::string &name, tree->list(path / "rx_dsps")){ ss << make_border(get_dsp_pp_string("RX", tree, path / "rx_dsps" / name)); } |