From: jblum Date: Mon, 6 Apr 2009 00:39:01 +0000 (+0000) Subject: Format param replaced with width and shift in usrp blocks. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=aa0ccae025ac3d482e15043b169432b0e9454ddd;p=debian%2Fgnuradio Format param replaced with width and shift in usrp blocks. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10778 221aa14e-8319-0410-a670-987f0aec2ac5 --- 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 639737de..b76a561b 100644 --- a/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml +++ b/grc/data/platforms/python/blocks/usrp_dual_sink_x.xml @@ -9,8 +9,8 @@ usrp_dual_sink_x from grc_gnuradio import usrp as grc_usrp 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) - Format - format + Width + width enum - #if $format.eval then '' else 'part'# + #if $width.eval then 'none' else 'part'# + + + + Shift + shift + 8 + int + #if $width.eval then 'none' else 'all'# Unit Number 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 823850b5..980d1aa8 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 $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) - Format - format + Width + width enum - #if $format.eval then '' else 'part'# + #if $width.eval then 'none' 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 e88fcd7e..c183ddb9 100644 --- a/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml +++ b/grc/data/platforms/python/blocks/usrp_simple_sink_x.xml @@ -9,8 +9,8 @@ usrp_simple_sink_x from grc_gnuradio import usrp as grc_usrp 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) - Format - format + Width + width enum - #if $format.eval then '' else 'part'# + #if $width.eval then 'none' 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_source_x.xml b/grc/data/platforms/python/blocks/usrp_simple_source_x.xml index d7f5475a..521ba91d 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 $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) - Format - format + Width + width enum - #if $format.eval then '' else 'part'# + #if $width.eval then 'none' else 'part'# + + + + Shift + shift + 8 + int + #if $width.eval then 'none' else 'all'# Unit Number