aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-08-19 16:26:37 +0000
committerPhilip Balister <philip@opensdr.com>2010-08-19 16:26:37 +0000
commit2ef82f57b815a9e53685617f1b779d4cbdf7fb31 (patch)
tree375a4e0d31824b87da2eabe6a805a625e65f9b0b /host/examples
parentb0a2f23bb66fce362b70117efe7b4e967e891c14 (diff)
downloaduhd-2ef82f57b815a9e53685617f1b779d4cbdf7fb31.tar.gz
uhd-2ef82f57b815a9e53685617f1b779d4cbdf7fb31.tar.bz2
uhd-2ef82f57b815a9e53685617f1b779d4cbdf7fb31.zip
Add get setting to the rx_to_file program.
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/rx_to_file.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/examples/rx_to_file.cpp b/host/examples/rx_to_file.cpp
index cb8c42acc..79d3e9d8b 100644
--- a/host/examples/rx_to_file.cpp
+++ b/host/examples/rx_to_file.cpp
@@ -74,6 +74,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
sdev->set_rx_freq(freq);
sdev->set_time_now(uhd::time_spec_t(0.0));
+ uhd::gain_range_t rx_gain = sdev->get_rx_gain_range();
+ std::cout << "Setting RX Gain to: " << rx_gain.max << std::endl;
+ sdev->set_rx_gain(rx_gain.max);
+
sleep(1);
std::cout << "LO Locked = " << sdev->get_rx_lo_locked() << std::endl;