29 #ifndef TR_CONTROL_HDR 30 #define TR_CONTROL_HDR 32 #include <uhd/usrp/multi_usrp.hpp> 72 virtual bool getTX() = 0;
82 virtual bool setBand(
unsigned int band,
bool state) { (void) band; (void) state;
return false; }
90 virtual bool getBand(
unsigned int band) { (void) band;
return false; }
99 virtual bool setServo(
unsigned int servo_sel,
double val) { (void) servo_sel; (void) val;
return false; }
125 #endif // TR_CONTROL_HDR virtual bool setServo(unsigned int servo_sel, double val)
set state of selected servo
bool setTXOn()
activate external controls to enable transmit mode.
virtual bool getTX()=0
report state of transmit-enable.
Generic Control class to activate T/R switching, band switching, and other control functions...
virtual bool setTXOn()=0
activate external controls to enable transmit mode.
virtual bool setTXOff()=0
activate external controls to disable transmit mode.
virtual bool getBand(unsigned int band)
query state of signal path for selected band
bool setTXOff()
activate external controls to disable transmit mode.
virtual 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(!) ...
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.
bool getTX()
report state of transmit-enable.