summaryrefslogtreecommitdiff
path: root/grc/src/grc_gnuradio/usrp
diff options
context:
space:
mode:
Diffstat (limited to 'grc/src/grc_gnuradio/usrp')
-rw-r--r--grc/src/grc_gnuradio/usrp/dual_usrp.py4
-rw-r--r--grc/src/grc_gnuradio/usrp/simple_usrp.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/grc/src/grc_gnuradio/usrp/dual_usrp.py b/grc/src/grc_gnuradio/usrp/dual_usrp.py
index f12b5348d..1ecf7c47f 100644
--- a/grc/src/grc_gnuradio/usrp/dual_usrp.py
+++ b/grc/src/grc_gnuradio/usrp/dual_usrp.py
@@ -67,6 +67,8 @@ class _dual_source(gr.hier_block2):
frequency=frequency,
verbose=verbose,
)
+ def set_lo_offset_a(self, lo_offset): self._subdev_a.set_lo_offset(lo_offset)
+ def set_lo_offset_b(self, lo_offset): self._subdev_b.set_lo_offset(lo_offset)
def set_gain_a(self, gain): self._subdev_a.set_gain(gain)
def set_gain_b(self, gain): self._subdev_b.set_gain(gain)
@@ -117,6 +119,8 @@ class _dual_sink(gr.hier_block2):
frequency=frequency,
verbose=verbose,
)
+ def set_lo_offset_a(self, lo_offset): self._subdev_a.set_lo_offset(lo_offset)
+ def set_lo_offset_b(self, lo_offset): self._subdev_b.set_lo_offset(lo_offset)
def set_gain_a(self, gain): self._subdev_a.set_gain(gain)
def set_gain_b(self, gain): self._subdev_b.set_gain(gain)
def set_enable_a(self, enable): self._subdev_a.set_enable(enable)
diff --git a/grc/src/grc_gnuradio/usrp/simple_usrp.py b/grc/src/grc_gnuradio/usrp/simple_usrp.py
index 58683433e..9065c7fe9 100644
--- a/grc/src/grc_gnuradio/usrp/simple_usrp.py
+++ b/grc/src/grc_gnuradio/usrp/simple_usrp.py
@@ -56,6 +56,7 @@ class _simple_source(gr.hier_block2):
self._get_u().set_decim_rate(int(decim))
if self._no_hb: #set the BW to half the sample rate
self._subdev.set_bw(self._get_u().converter_rate()/decim/2)
+ def set_lo_offset(self, lo_offset): self._subdev.set_lo_offset(lo_offset)
def set_frequency(self, frequency, verbose=False):
self._set_frequency(
chan=0, #ddc0
@@ -102,6 +103,7 @@ class _simple_sink(gr.hier_block2):
frequency=frequency,
verbose=verbose,
)
+ def set_lo_offset(self, lo_offset): self._subdev.set_lo_offset(lo_offset)
def set_gain(self, gain): self._subdev.set_gain(gain)
def set_enable(self, enable): self._subdev.set_enable(enable)
def set_auto_tr(self, auto_tr): self._subdev.set_auto_tr(auto_tr)