diff options
author | Tom Rondeau <tom@trondeau.com> | 2014-02-26 14:49:15 -0500 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-02-27 12:29:27 -0500 |
commit | 92b01e30373e6ed36d1067e2bcba661d2253f34a (patch) | |
tree | 5722eab1753cddf8483ad57dbcb02dc28a4518c5 /gr-blocks/grc | |
parent | efa9f5ccdfa985f67eda3a1f781f35c127088c44 (diff) |
blocks: allows null source/sink to output/input multiple streams.
Updats xml files to allow this and to set bus port connection vector to group ports.
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_null_sink.xml | 17 | ||||
-rw-r--r-- | gr-blocks/grc/blocks_null_source.xml | 16 |
2 files changed, 33 insertions, 0 deletions
diff --git a/gr-blocks/grc/blocks_null_sink.xml b/gr-blocks/grc/blocks_null_sink.xml index 2ae20e619a..f2907d20bd 100644 --- a/gr-blocks/grc/blocks_null_sink.xml +++ b/gr-blocks/grc/blocks_null_sink.xml @@ -45,10 +45,27 @@ <value>1</value> <type>int</type> </param> + <param> + <name>Num Inputs</name> + <key>num_inputs</key> + <value>1</value> + <type>int</type> + </param> + <param> + <name>Bus Connections</name> + <key>bus_conns</key> + <value>[[0,],]</value> + <type>raw</type> + <hide>part</hide> + </param> + <check>$num_inputs >= 1</check> <check>$vlen > 0</check> <sink> <name>in</name> <type>$type</type> <vlen>$vlen</vlen> + <nports>$num_inputs</nports> </sink> + <bus_structure_sink>$bus_conns</bus_structure_sink> </block> + diff --git a/gr-blocks/grc/blocks_null_source.xml b/gr-blocks/grc/blocks_null_source.xml index 01d3905cab..9c109e651f 100644 --- a/gr-blocks/grc/blocks_null_source.xml +++ b/gr-blocks/grc/blocks_null_source.xml @@ -45,10 +45,26 @@ <value>1</value> <type>int</type> </param> + <param> + <name>Num Outputs</name> + <key>num_outputs</key> + <value>1</value> + <type>int</type> + </param> + <param> + <name>Bus Connections</name> + <key>bus_conns</key> + <value>[[0,],]</value> + <type>raw</type> + <hide>part</hide> + </param> + <check>$num_outputs >= 1</check> <check>$vlen > 0</check> <source> <name>out</name> <type>$type</type> <vlen>$vlen</vlen> + <nports>$num_outputs</nports> </source> + <bus_structure_source>$bus_conns</bus_structure_source> </block> |