diff options
Diffstat (limited to 'gr-trellis/grc')
-rw-r--r-- | gr-trellis/grc/trellis_encoder_xx.xml | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/gr-trellis/grc/trellis_encoder_xx.xml b/gr-trellis/grc/trellis_encoder_xx.xml index c4259ffb94..a2ad69278d 100644 --- a/gr-trellis/grc/trellis_encoder_xx.xml +++ b/gr-trellis/grc/trellis_encoder_xx.xml @@ -10,7 +10,7 @@ <key>trellis_encoder_xx</key> <category>Trellis Coding</category> <import>from gnuradio import trellis</import> - <make>trellis.encoder_$(type)(trellis.fsm($fsm_args), $init_state)</make> + <make> trellis.encoder_$(type)(trellis.fsm($fsm_args), $init_state, $blocklength) if $blockwise else trellis.encoder_$(type)(trellis.fsm($fsm_args), $init_state) </make> <callback>set_FSM(trellis.fsm($fsm_args))</callback> <callback>set_ST($init_state)</callback> <param> @@ -65,6 +65,28 @@ <value>0</value> <type>int</type> </param> + <param> + <name>Blockwise</name> + <key>blockwise</key> + <value>False</value> + <type>enum</type> + <hide>part</hide> + <option> + <name>On</name> + <key>True</key> + </option> + <option> + <name>Off</name> + <key>False</key> + </option> + </param> + <param> + <name>Block length</name> + <key>blocklength</key> + <value>0</value> + <type>int</type> + <hide>#if $blockwise() == 'True' then 'none' else 'all'#</hide> + </param> <check>(isinstance(eval(""" $fsm_args """[1:-1], locals(),globals()), str) and open($fsm_args).close()) or True</check> <sink> <name>in</name> |