34 #include <uhd/version.hpp> 35 #include <uhd/device.hpp> 36 #include <uhd/types/ranges.hpp> 37 #include <uhd/property_tree.hpp> 38 #include <boost/algorithm/string.hpp> 39 #include <uhd/usrp/dboard_id.hpp> 40 #include <uhd/usrp/mboard_eeprom.hpp> 41 #include <uhd/usrp/dboard_eeprom.hpp> 48 std::string modelname = tree.
getStringProp(
"name",
"unknown");
51 if ((modelname == std::string(
"N200")) ||
52 (modelname == std::string(
"N210"))) {
54 std::string ip_address;
55 ip_address = tree.
getProperty<uhd::usrp::mboard_eeprom_t>(
"/eeprom")[
"ip-addr"];
57 std::string gpsdo = tree.
getProperty<uhd::usrp::mboard_eeprom_t>(
"/eeprom")[
"gpsdo"];
58 if(gpsdo == std::string(
"none")) {
66 else if ((modelname == std::string(
"B200")) ||
67 (modelname == std::string(
"B210"))) {
Transmit/Receive switch control for N200/N210 via the GPS serial or EXP serial io port...
T getProperty(const std::string &propname, const T defval)
Generic Control class to activate T/R switching, band switching, and other control functions...
PropTree class encapsulates the USRP property tree functions to allow better trap and error recovery ...
Transmit/Receive switch control for B200/B210 via the FX3 debug GPIO pins.
std::string getStringProp(const std::string &propname, const std::string defval=std::string("None"))
a null control class that returns happily for everyone.
static TRControl * makeTRControl(uhd::usrp::multi_usrp::sptr usrp, int mboard=0)
make the appropriate TR control widget given a pointer to a USRP device.