aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/simple_usrp.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-05-14 13:02:04 -0700
committerJosh Blum <josh@joshknows.com>2010-05-14 13:02:04 -0700
commit695dd535d5a7419f467598a90c51c7e0f3d611e5 (patch)
treedb31ae8efe24f8ad972df4736090cc7304e31814 /host/lib/usrp/simple_usrp.cpp
parentce0a3da138f5de23f0647d991fd4a1dfaef17286 (diff)
downloaduhd-695dd535d5a7419f467598a90c51c7e0f3d611e5.tar.gz
uhd-695dd535d5a7419f467598a90c51c7e0f3d611e5.tar.bz2
uhd-695dd535d5a7419f467598a90c51c7e0f3d611e5.zip
added set freq with lo offset to simple usrp wrapper
Diffstat (limited to 'host/lib/usrp/simple_usrp.cpp')
-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>();
}