diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2012-05-10 12:14:59 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-05-10 12:49:42 -0700 |
commit | 926ee6316d768f72191e5abffc5c0e2074e0bbe7 (patch) | |
tree | 3b3cfadad414beab85ee9baabdf452b69078058e /host/lib/usrp | |
parent | c0a9d1c71cb0d82085221ffca4974a573de98552 (diff) | |
download | uhd-926ee6316d768f72191e5abffc5c0e2074e0bbe7.tar.gz uhd-926ee6316d768f72191e5abffc5c0e2074e0bbe7.tar.bz2 uhd-926ee6316d768f72191e5abffc5c0e2074e0bbe7.zip |
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
Diffstat (limited to 'host/lib/usrp')
-rw-r--r-- | host/lib/usrp/multi_usrp.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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<meta_range_t>(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<meta_range_t>(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); } |