30 #include <boost/format.hpp> 31 #include <boost/foreach.hpp> 32 #include <boost/assign.hpp> 53 std::vector<std::string>
port =
usrp->get_gpio_banks(0);
65 usrp->set_gpio_attr(
"FP0",
"DDR", 0x300, 0x300);
66 usrp->set_gpio_attr(
"FP0",
"CTRL", 0x0, 0x300);
73 usrp->set_gpio_attr(
"FP0",
"OUT", 0x100, 0x300);
79 usrp->set_gpio_attr(
"FP0",
"OUT", 0x200, 0x300);
90 { (void) band; (void) state;
return false; }
92 { (void) band;
return false; }
bool setTXOn()
activate external controls to enable transmit mode.
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(!) ...
B200Control(uhd::usrp::multi_usrp::sptr usrp, int mboard=0)
constructor
Generic Control class to activate T/R switching, band switching, and other control functions...
bool getTX()
report state of transmit-enable.
bool getBand(unsigned int band)
query state of signal path for selected band
uhd::usrp::multi_usrp::sptr usrp
bool setTXOff()
activate external controls to disable transmit mode.