]> git.gag.com Git - debian/gnuradio/commitdiff
Format param replaced with width and shift in usrp blocks.
authorjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 6 Apr 2009 00:39:01 +0000 (00:39 +0000)
committerjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Mon, 6 Apr 2009 00:39:01 +0000 (00:39 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10778 221aa14e-8319-0410-a670-987f0aec2ac5

grc/data/platforms/python/blocks/usrp_dual_sink_x.xml
grc/data/platforms/python/blocks/usrp_dual_source_x.xml
grc/data/platforms/python/blocks/usrp_simple_sink_x.xml
grc/data/platforms/python/blocks/usrp_simple_source_x.xml

index 639737de4737f0da199c1d8f9daa70fd98fefba0..b76a561b7dfb21b498dbb1cd3a2dde726d60a064 100644 (file)
@@ -9,8 +9,8 @@
        <key>usrp_dual_sink_x</key>
        <import>from grc_gnuradio import usrp as grc_usrp</import>
        <make>grc_usrp.dual_sink_$(type.fcn)(which=$which)
-#if $format.eval
-self.$(id).set_format(width=$format.width, shift=$format.shift)
+#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)
@@ -56,23 +56,30 @@ self.$(id).set_auto_tr_b(True)
                </option>
        </param>
        <param>
-               <name>Format</name>
-               <key>format</key>
+               <name>Width</name>
+               <key>width</key>
                <value></value>
                <type>enum</type>
-               <hide>#if $format.eval then '' else 'part'#</hide>
+               <hide>#if $width.eval then 'none' else 'part'#</hide>
                <option>
-                       <name>16 Bits (Default)</name>
+                       <name>Default</name>
                        <key></key>
-                       <opt>width:16</opt>
-                       <opt>shift:0</opt>
                </option>
                <option>
-                       <name>8 Bits, Shift 8</name>
-                       <key>w8_s8</key>
-                       <opt>width:8</opt>
-                       <opt>shift:8</opt>
+                       <name>16 Bits</name>
+                       <key>16</key>
                </option>
+               <option>
+                       <name>8 Bits</name>
+                       <key>8</key>
+               </option>
+       </param>
+       <param>
+               <name>Shift</name>
+               <key>shift</key>
+               <value>8</value>
+               <type>int</type>
+               <hide>#if $width.eval then 'none' else 'all'#</hide>
        </param>
        <param>
                <name>Unit Number</name>
index 823850b52c3a02b1569461b89a8f37199599738c..980d1aa8ec16fc42667e95b324c5125ff3038fdc 100644 (file)
@@ -9,8 +9,8 @@
        <key>usrp_dual_source_x</key>
        <import>from grc_gnuradio import usrp as grc_usrp</import>
        <make>grc_usrp.dual_source_$(type.fcn)(which=$which, rx_ant_a='$rx_ant_a', rx_ant_b='$rx_ant_b')
-#if $format.eval
-self.$(id).set_format(width=$format.width, shift=$format.shift)
+#if $width.eval
+self.$(id).set_format(width=$width, shift=$shift)
 #end if
 self.$(id).set_decim_rate($decimation)
 self.$(id).set_frequency_a($frequency_a, verbose=True)
@@ -38,23 +38,30 @@ self.$(id).set_gain_b($gain_b)</make>
                </option>
        </param>
        <param>
-               <name>Format</name>
-               <key>format</key>
+               <name>Width</name>
+               <key>width</key>
                <value></value>
                <type>enum</type>
-               <hide>#if $format.eval then '' else 'part'#</hide>
+               <hide>#if $width.eval then 'none' else 'part'#</hide>
                <option>
-                       <name>16 Bits (Default)</name>
+                       <name>Default</name>
                        <key></key>
-                       <opt>width:16</opt>
-                       <opt>shift:0</opt>
                </option>
                <option>
-                       <name>8 Bits, Shift 8</name>
-                       <key>w8_s8</key>
-                       <opt>width:8</opt>
-                       <opt>shift:8</opt>
+                       <name>16 Bits</name>
+                       <key>16</key>
                </option>
+               <option>
+                       <name>8 Bits</name>
+                       <key>8</key>
+               </option>
+       </param>
+       <param>
+               <name>Shift</name>
+               <key>shift</key>
+               <value>8</value>
+               <type>int</type>
+               <hide>#if $width.eval then 'none' else 'all'#</hide>
        </param>
        <param>
                <name>Unit Number</name>
index e88fcd7e4c4178e19d88bb37eff46f98163b8528..c183ddb9f748f552ab8ce5297a95facfc3e935ce 100644 (file)
@@ -9,8 +9,8 @@
        <key>usrp_simple_sink_x</key>
        <import>from grc_gnuradio import usrp as grc_usrp</import>
        <make>grc_usrp.simple_sink_$(type.fcn)(which=$which, side='$side')
-#if $format.eval
-self.$(id).set_format(width=$format.width, shift=$format.shift)
+#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)
@@ -40,23 +40,30 @@ self.$(id).set_auto_tr(True)
                </option>
        </param>
        <param>
-               <name>Format</name>
-               <key>format</key>
+               <name>Width</name>
+               <key>width</key>
                <value></value>
                <type>enum</type>
-               <hide>#if $format.eval then '' else 'part'#</hide>
+               <hide>#if $width.eval then 'none' else 'part'#</hide>
                <option>
-                       <name>16 Bits (Default)</name>
+                       <name>Default</name>
                        <key></key>
-                       <opt>width:16</opt>
-                       <opt>shift:0</opt>
                </option>
                <option>
-                       <name>8 Bits, Shift 8</name>
-                       <key>w8_s8</key>
-                       <opt>width:8</opt>
-                       <opt>shift:8</opt>
+                       <name>16 Bits</name>
+                       <key>16</key>
                </option>
+               <option>
+                       <name>8 Bits</name>
+                       <key>8</key>
+               </option>
+       </param>
+       <param>
+               <name>Shift</name>
+               <key>shift</key>
+               <value>8</value>
+               <type>int</type>
+               <hide>#if $width.eval then 'none' else 'all'#</hide>
        </param>
        <param>
                <name>Unit Number</name>
index d7f5475a6921ca7e6340e3e17dd4062350886a66..521ba91d33c476c4a0ae7c43b34e17112c39ad6a 100644 (file)
@@ -9,8 +9,8 @@
        <key>usrp_simple_source_x</key>
        <import>from grc_gnuradio import usrp as grc_usrp</import>
        <make>grc_usrp.simple_source_$(type.fcn)(which=$which, side='$side', rx_ant='$rx_ant'#if $hb_filters.eval then ', no_hb=True' else ''#)
-#if $format.eval
-self.$(id).set_format(width=$format.width, shift=$format.shift)
+#if $width.eval
+self.$(id).set_format(width=$width, shift=$shift)
 #end if
 self.$(id).set_decim_rate($decimation)
 self.$(id).set_frequency($frequency, verbose=True)
@@ -34,23 +34,30 @@ self.$(id).set_gain($gain)</make>
                </option>
        </param>
        <param>
-               <name>Format</name>
-               <key>format</key>
+               <name>Width</name>
+               <key>width</key>
                <value></value>
                <type>enum</type>
-               <hide>#if $format.eval then '' else 'part'#</hide>
+               <hide>#if $width.eval then 'none' else 'part'#</hide>
                <option>
-                       <name>16 Bits (Default)</name>
+                       <name>Default</name>
                        <key></key>
-                       <opt>width:16</opt>
-                       <opt>shift:0</opt>
                </option>
                <option>
-                       <name>8 Bits, Shift 8</name>
-                       <key>w8_s8</key>
-                       <opt>width:8</opt>
-                       <opt>shift:8</opt>
+                       <name>16 Bits</name>
+                       <key>16</key>
                </option>
+               <option>
+                       <name>8 Bits</name>
+                       <key>8</key>
+               </option>
+       </param>
+       <param>
+               <name>Shift</name>
+               <key>shift</key>
+               <value>8</value>
+               <type>int</type>
+               <hide>#if $width.eval then 'none' else 'all'#</hide>
        </param>
        <param>
                <name>Unit Number</name>