44#include <uhd/utils/thread.hpp>
45#include <uhd/utils/safe_main.hpp>
46#include <uhd/usrp/multi_usrp.hpp>
47#include <uhd/usrp/dboard_base.hpp>
48#include <uhd/types/tune_request.hpp>
49#include <uhd/types/tune_result.hpp>
50#include <uhd/utils/msg.hpp>
71 std::string
unit_name = std::string(
"USRPTuner"));
83 bool force_fracN =
false,
84 bool force_simple =
false);
95 virtual bool setRXFreq(
double rx_freq,
double avoid_freq, uhd::tune_result_t & tune_result) = 0;
105 virtual bool setTXFreq(
double tx_freq,
double avoid_freq, uhd::tune_result_t & tune_result) = 0;
116 uhd::tune_result_t & cur);
119 uhd::usrp::multi_usrp::sptr
usrp;
150 bool setRXFreq(
double rx_freq,
double avoid_freq, uhd::tune_result_t & tune_result);
161 virtual bool setTXFreq(
double tx_freq,
double avoid_freq, uhd::tune_result_t & tune_result);
193 bool setRXFreq(
double rx_freq,
double avoid_freq, uhd::tune_result_t & tune_result)
195 uhd::tune_request_t rx_req(rx_freq);
196 tune_result =
usrp->set_rx_freq(rx_req);
210 bool setTXFreq(
double tx_freq,
double avoid_freq, uhd::tune_result_t & tune_result)
212 uhd::tune_request_t tx_req(tx_freq);
213 tune_result =
usrp->set_tx_freq(tx_req);
The Baseclass for all SoDa objects, and useful commonly used classes.
std::string unit_name
the name of the unit reporting status
Debug(std::string _unit_name=std::string("UNKNOWN"))
IntNTuner(uhd::usrp::multi_usrp::sptr usrp, double min_separation)
Constructor –.
virtual bool setTXFreq(double tx_freq, double avoid_freq, uhd::tune_result_t &tune_result)
setTXFreq set the TX 1st LO frequency.
bool setRXFreq(double rx_freq, double avoid_freq, uhd::tune_result_t &tune_result)
setRXFreq set the RX 1st LO frequency.
bool setRXFreq(double rx_freq, double avoid_freq, uhd::tune_result_t &tune_result)
setRXFreq set the RX 1st LO frequency.
SimpleTuner(uhd::usrp::multi_usrp::sptr usrp)
Constructor –.
bool setTXFreq(double tx_freq, double avoid_freq, uhd::tune_result_t &tune_result)
setTXFreq set the TX 1st LO frequency.
uhd::usrp::multi_usrp::sptr usrp
USRPTuner * makeTuner(uhd::usrp::multi_usrp::sptr usrp, double min_separation, bool force_fracN=false, bool force_simple=false)
Factory to build a particular subclass of USRPTuner based on the detected front-end module.
virtual bool setRXFreq(double rx_freq, double avoid_freq, uhd::tune_result_t &tune_result)=0
setRXFreq set the RX 1st LO frequency.
virtual bool setTXFreq(double tx_freq, double avoid_freq, uhd::tune_result_t &tune_result)=0
setTXFreq set the TX 1st LO frequency.
USRPTuner(uhd::usrp::multi_usrp::sptr usrp, double min_separation, std::string unit_name=std::string("USRPTuner"))
Constructor –.
virtual bool checkLock(uhd::tune_request_t &req, char sel, uhd::tune_result_t &cur)
is the identified (rx or tx) front-end LO locked?