30 #include <boost/format.hpp> 31 #include <boost/asio.hpp> 50 std::string ip_addr_str,
67 std::cerr <<
"No Serial TR switch control device found." << std::endl;
75 if(
skt == NULL)
return false;
78 const char * cmd =
"ON00NO\r";
82 std::cerr << boost::format(
"\n\nON sent [%s]\n\n\t got [%s]\n\n")
87 std::cerr <<
"No Serial Controlled TR switch is connected to this N2xx....." << std::endl;
99 if(
skt == NULL) {
return false; }
102 const char * cmd =
"ST00TS\r";
107 std::cerr << boost::format(
"\n\nOFF sent [%s]\n\n\t got [%s]\n\n")
112 std::cerr <<
"No Serial Controlled TR switch is connected to this N2xx....." << std::endl;
127 { (void) band; (void) state;
return false; }
129 { (void) band;
return false; }
uhd::usrp::multi_usrp::sptr usrp
int putRaw(const void *ptr, unsigned int size)
bool setTXOff()
activate external controls to disable transmit mode.
Generic Control class to activate T/R switching, band switching, and other control functions...
bool setTXOn()
activate external controls to enable transmit mode.
int getRaw(const void *ptr, unsigned int size, unsigned int usec_timeout=0)
get a raw string of <size> bytes...
bool getBand(unsigned int band)
query state of signal path for selected band
N200Control(uhd::usrp::multi_usrp::sptr usrp, int mboard, std::string ip_addr_str, unsigned int portnum=49172)
constructor
bool getTX()
report state of transmit-enable.
bool setBand(unsigned int band, bool state)
turn on/off signal path for selected band note that multiple bands can be enabled at one time(!) ...