30 #include <boost/format.hpp> 31 #include <boost/foreach.hpp> 39 std::vector<std::string> dblist = tree->
getPropNames(
"dboards");
45 fe_name =
"/rx_frontends";
49 fe_name =
"/tx_frontends";
55 BOOST_FOREACH(std::string dbn, dblist) {
57 std::string fe_listn =
"dboards/" + dbn + fe_name;
58 std::vector<std::string> felist = tree->
getPropNames(fe_listn);
59 BOOST_FOREACH(std::string fen, felist) {
60 fe_name = fe_listn +
"/" + fen;
62 std::string conn_type = tree->
getStringProp(fe_name +
"/connection");
63 if((conn_type ==
"IQ") || (conn_type ==
"QI")) {
PropTree * getUSRPFrontEnd(PropTree *tree, char tr_choice)
return a pointer to a PropTree object for the first "T" or "R" front end that provides an IQ or QI st...
PropTree class encapsulates the USRP property tree functions to allow better trap and error recovery ...
std::string getStringProp(const std::string &propname, const std::string defval=std::string("None"))
std::vector< std::string > getPropNames(const std::string &path=std::string(""))
Manage front end settings for Ettus USRP devices Functions that return a property tree corresponding ...