summaryrefslogtreecommitdiff
path: root/gr-blocks/grc
diff options
context:
space:
mode:
authorRuben Undheim <ruben.undheim@gmail.com>2017-04-26 20:15:20 +0000
committerRuben Undheim <ruben.undheim@gmail.com>2017-05-19 18:03:27 +0000
commit7a6dace271a53faccec6d691477e2c5ccc5e9d49 (patch)
treeffab940bd1e7debaa7c321e8ce16a38fa6efd29c /gr-blocks/grc
parent0e32fcaf928e8f3f9161a619201d3cf253a46ded (diff)
blocks: file_source ("file_begin" stream tag)
- Add a configurable "file_begin" stream tag which is especially useful in repeat mode. - Added unit tests for new functionality
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r--gr-blocks/grc/blocks_file_source.xml19
1 files changed, 18 insertions, 1 deletions
diff --git a/gr-blocks/grc/blocks_file_source.xml b/gr-blocks/grc/blocks_file_source.xml
index 7ac573f2da..22c5263171 100644
--- a/gr-blocks/grc/blocks_file_source.xml
+++ b/gr-blocks/grc/blocks_file_source.xml
@@ -8,8 +8,10 @@
<name>File Source</name>
<key>blocks_file_source</key>
<import>from gnuradio import blocks</import>
- <make>blocks.file_source($type.size*$vlen, $file, $repeat)</make>
+ <make>blocks.file_source($type.size*$vlen, $file, $repeat)
+self.$(id).set_begin_tag($begin_tag)</make>
<callback>open($file, $repeat)</callback>
+ <callback>self.$(id).set_begin_tag($begin_tag)</callback>
<param>
<name>File</name>
<key>file</key>
@@ -66,6 +68,21 @@
<value>1</value>
<type>int</type>
</param>
+
+ <param>
+ <name>Add begin tag</name>
+ <key>begin_tag</key>
+ <value>False</value>
+ <type>bool</type>
+ <option>
+ <name>Yes</name>
+ <key>True</key>
+ </option>
+ <option>
+ <name>No</name>
+ <key>False</key>
+ </option>
+ </param>
<check>$vlen &gt; 0</check>
<source>
<name>out</name>