From 926ee6316d768f72191e5abffc5c0e2074e0bbe7 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Thu, 10 May 2012 12:14:59 -0700 Subject: Examples - Test Daughterboard Coercion: moves across the frequency and gain ranges of a daughterboard and tests whether or not it can tune/lock at all advertised frequencies and gains --- host/lib/usrp/multi_usrp.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'host/lib/usrp') diff --git a/host/lib/usrp/multi_usrp.cpp b/host/lib/usrp/multi_usrp.cpp index fe3c923d3..1267da89c 100644 --- a/host/lib/usrp/multi_usrp.cpp +++ b/host/lib/usrp/multi_usrp.cpp @@ -579,6 +579,10 @@ public: ); } + freq_range_t get_fe_rx_freq_range(size_t chan){ + return _tree->access(rx_rf_fe_root(chan) / "freq" / "range").get(); + } + void set_rx_gain(double gain, const std::string &name, size_t chan){ return rx_gain_group(chan)->set_value(gain, name); } @@ -727,6 +731,10 @@ public: ); } + freq_range_t get_fe_tx_freq_range(size_t chan){ + return _tree->access(tx_rf_fe_root(chan) / "freq" / "range").get(); + } + void set_tx_gain(double gain, const std::string &name, size_t chan){ return tx_gain_group(chan)->set_value(gain, name); } -- cgit v1.2.3