summaryrefslogtreecommitdiffstats
path: root/host/lib/usrp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/usrp')
-rw-r--r--host/lib/usrp/simple_usrp.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/lib/usrp/simple_usrp.cpp b/host/lib/usrp/simple_usrp.cpp
index a8c104485..f4aa82669 100644
--- a/host/lib/usrp/simple_usrp.cpp
+++ b/host/lib/usrp/simple_usrp.cpp
@@ -121,6 +121,10 @@ public:
return tune_rx_subdev_and_ddc(_rx_subdev, _rx_dsp, target_freq);
}
+ tune_result_t set_rx_freq(double target_freq, double lo_off){
+ return tune_rx_subdev_and_ddc(_rx_subdev, _rx_dsp, target_freq, lo_off);
+ }
+
freq_range_t get_rx_freq_range(void){
return _rx_subdev[SUBDEV_PROP_FREQ_RANGE].as<freq_range_t>();
}
@@ -168,6 +172,10 @@ public:
return tune_tx_subdev_and_duc(_tx_subdev, _tx_dsp, target_freq);
}
+ tune_result_t set_tx_freq(double target_freq, double lo_off){
+ return tune_tx_subdev_and_duc(_tx_subdev, _tx_dsp, target_freq, lo_off);
+ }
+
freq_range_t get_tx_freq_range(void){
return _tx_subdev[SUBDEV_PROP_FREQ_RANGE].as<freq_range_t>();
}