From a73dcedda272a527f9248f2a88e59c367c1ff5d2 Mon Sep 17 00:00:00 2001
From: jblum
Date: Tue, 7 Apr 2009 19:10:49 +0000
Subject: Removed format from usrp dual/simple sink. USRP sink does not have a
format option. Gave usrp dual/simple source a unified format option with the
only 2 choices possible: (16, 0) and (8, 8). When and if future options are
available, these blocks will be modified as such. Until then, these blocks
reflect the capabilities in the current trunk.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10787 221aa14e-8319-0410-a670-987f0aec2ac5
---
.../platforms/python/blocks/usrp_dual_sink_x.xml | 29 --------------------
.../platforms/python/blocks/usrp_dual_source_x.xml | 31 +++++++++-------------
.../platforms/python/blocks/usrp_simple_sink_x.xml | 29 --------------------
.../python/blocks/usrp_simple_source_x.xml | 31 +++++++++-------------
4 files changed, 24 insertions(+), 96 deletions(-)
(limited to 'grc/data/platforms/python')
diff --git a/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml b/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml
index b76a561b7..d87d14703 100644
--- a/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml
+++ b/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml
@@ -9,9 +9,6 @@
usrp_dual_sink_x
from grc_gnuradio import usrp as grc_usrp
grc_usrp.dual_sink_$(type.fcn)(which=$which)
-#if $width.eval
-self.$(id).set_format(width=$width, shift=$shift)
-#end if
self.$(id).set_interp_rate($interpolation)
self.$(id).set_frequency_a($frequency_a, verbose=True)
self.$(id).set_frequency_b($frequency_b, verbose=True)
@@ -55,32 +52,6 @@ self.$(id).set_auto_tr_b(True)
fcn:s
-
- Width
- width
-
- enum
- #if $width.eval then 'none' else 'part'#
-
-
-
-
-
- Shift
- shift
- 8
- int
- #if $width.eval then 'none' else 'all'#
-
Unit Number
which
diff --git a/grc/data/platforms/python/blocks/usrp_dual_source_x.xml b/grc/data/platforms/python/blocks/usrp_dual_source_x.xml
index 980d1aa8e..823850b52 100644
--- a/grc/data/platforms/python/blocks/usrp_dual_source_x.xml
+++ b/grc/data/platforms/python/blocks/usrp_dual_source_x.xml
@@ -9,8 +9,8 @@
usrp_dual_source_x
from grc_gnuradio import usrp as grc_usrp
grc_usrp.dual_source_$(type.fcn)(which=$which, rx_ant_a='$rx_ant_a', rx_ant_b='$rx_ant_b')
-#if $width.eval
-self.$(id).set_format(width=$width, shift=$shift)
+#if $format.eval
+self.$(id).set_format(width=$format.width, shift=$format.shift)
#end if
self.$(id).set_decim_rate($decimation)
self.$(id).set_frequency_a($frequency_a, verbose=True)
@@ -38,30 +38,23 @@ self.$(id).set_gain_b($gain_b)
- Width
- width
+ Format
+ format
enum
- #if $width.eval then 'none' else 'part'#
+ #if $format.eval then '' else 'part'#
-
-
-
- Shift
- shift
- 8
- int
- #if $width.eval then 'none' else 'all'#
Unit Number
diff --git a/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml b/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml
index c183ddb9f..ca887997a 100644
--- a/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml
+++ b/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml
@@ -9,9 +9,6 @@
usrp_simple_sink_x
from grc_gnuradio import usrp as grc_usrp
grc_usrp.simple_sink_$(type.fcn)(which=$which, side='$side')
-#if $width.eval
-self.$(id).set_format(width=$width, shift=$shift)
-#end if
self.$(id).set_interp_rate($interpolation)
self.$(id).set_frequency($frequency, verbose=True)
self.$(id).set_gain($gain)
@@ -39,32 +36,6 @@ self.$(id).set_auto_tr(True)
fcn:s
-
- Width
- width
-
- enum
- #if $width.eval then 'none' else 'part'#
-
-
-
-
-
- Shift
- shift
- 8
- int
- #if $width.eval then 'none' else 'all'#
-
Unit Number
which
diff --git a/grc/data/platforms/python/blocks/usrp_simple_source_x.xml b/grc/data/platforms/python/blocks/usrp_simple_source_x.xml
index 521ba91d3..d7f5475a6 100644
--- a/grc/data/platforms/python/blocks/usrp_simple_source_x.xml
+++ b/grc/data/platforms/python/blocks/usrp_simple_source_x.xml
@@ -9,8 +9,8 @@
usrp_simple_source_x
from grc_gnuradio import usrp as grc_usrp
grc_usrp.simple_source_$(type.fcn)(which=$which, side='$side', rx_ant='$rx_ant'#if $hb_filters.eval then ', no_hb=True' else ''#)
-#if $width.eval
-self.$(id).set_format(width=$width, shift=$shift)
+#if $format.eval
+self.$(id).set_format(width=$format.width, shift=$format.shift)
#end if
self.$(id).set_decim_rate($decimation)
self.$(id).set_frequency($frequency, verbose=True)
@@ -34,30 +34,23 @@ self.$(id).set_gain($gain)
- Width
- width
+ Format
+ format
enum
- #if $width.eval then 'none' else 'part'#
+ #if $format.eval then '' else 'part'#
-
-
-
- Shift
- shift
- 8
- int
- #if $width.eval then 'none' else 'all'#
Unit Number
--
cgit