diff options
Diffstat (limited to 'gr-uhd/lib')
-rw-r--r-- | gr-uhd/lib/uhd_simple_sink.cc | 4 | ||||
-rw-r--r-- | gr-uhd/lib/uhd_simple_sink.h | 2 | ||||
-rw-r--r-- | gr-uhd/lib/uhd_simple_source.cc | 4 | ||||
-rw-r--r-- | gr-uhd/lib/uhd_simple_source.h | 2 |
4 files changed, 12 insertions, 0 deletions
diff --git a/gr-uhd/lib/uhd_simple_sink.cc b/gr-uhd/lib/uhd_simple_sink.cc index c1edf29bb..f208bd294 100644 --- a/gr-uhd/lib/uhd_simple_sink.cc +++ b/gr-uhd/lib/uhd_simple_sink.cc @@ -66,6 +66,10 @@ double uhd_simple_sink::get_samp_rate(void){ return _dev->get_tx_rate(); } +void uhd_simple_sink::set_center_freq(double freq){ + _dev->set_tx_freq(freq); +} + /*********************************************************************** * Work **********************************************************************/ diff --git a/gr-uhd/lib/uhd_simple_sink.h b/gr-uhd/lib/uhd_simple_sink.h index 301cdd24f..28965d870 100644 --- a/gr-uhd/lib/uhd_simple_sink.h +++ b/gr-uhd/lib/uhd_simple_sink.h @@ -39,6 +39,8 @@ public: void set_samp_rate(double rate); double get_samp_rate(void); + void set_center_freq(double freq); + int work( int noutput_items, gr_vector_const_void_star &input_items, diff --git a/gr-uhd/lib/uhd_simple_source.cc b/gr-uhd/lib/uhd_simple_source.cc index 827cad458..1a0bb2b61 100644 --- a/gr-uhd/lib/uhd_simple_source.cc +++ b/gr-uhd/lib/uhd_simple_source.cc @@ -68,6 +68,10 @@ double uhd_simple_source::get_samp_rate(void){ return _dev->get_rx_rate(); } +void uhd_simple_source::set_center_freq(double freq){ + _dev->set_rx_freq(freq); +} + /*********************************************************************** * Work **********************************************************************/ diff --git a/gr-uhd/lib/uhd_simple_source.h b/gr-uhd/lib/uhd_simple_source.h index 0ddf9d563..cfab8b7a4 100644 --- a/gr-uhd/lib/uhd_simple_source.h +++ b/gr-uhd/lib/uhd_simple_source.h @@ -39,6 +39,8 @@ public: void set_samp_rate(double rate); double get_samp_rate(void); + void set_center_freq(double freq); + int work( int noutput_items, gr_vector_const_void_star &input_items, |