added continuation mode for pad source and sinks
[debian/gnuradio] / grc / blocks / pad_source.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Pad Source: IO Pads
5 ###################################################
6  -->
7 <block>
8         <name>Pad Source</name>
9         <key>pad_source</key>
10         <make></make>
11         <param>
12                 <name>Mode</name>
13                 <key>mode</key>
14                 <value>hb</value>
15                 <type>enum</type>
16                 <option>
17                         <name>Hierarchical</name>
18                         <key>hb</key>
19                 </option>
20                 <option>
21                         <name>Continuation</name>
22                         <key>cont</key>
23                 </option>
24         </param>
25         <param>
26                 <name>Num Outputs</name>
27                 <key>nports</key>
28                 <value>1</value>
29                 <type>int</type>
30         </param>
31         <param>
32                 <name>Output Type</name>
33                 <key>type</key>
34                 <type>enum</type>
35                 <option>
36                         <name>Complex</name>
37                         <key>complex</key>
38                         <opt>size:gr.sizeof_gr_complex</opt>
39                 </option>
40                 <option>
41                         <name>Float</name>
42                         <key>float</key>
43                         <opt>size:gr.sizeof_float</opt>
44                 </option>
45                 <option>
46                         <name>Int</name>
47                         <key>int</key>
48                         <opt>size:gr.sizeof_int</opt>
49                 </option>
50                 <option>
51                         <name>Short</name>
52                         <key>short</key>
53                         <opt>size:gr.sizeof_short</opt>
54                 </option>
55                 <option>
56                         <name>Byte</name>
57                         <key>byte</key>
58                         <opt>size:gr.sizeof_char</opt>
59                 </option>
60         </param>
61         <param>
62                 <name>Vec Length</name>
63                 <key>vlen</key>
64                 <value>1</value>
65                 <type>int</type>
66         </param>
67         <param>
68                 <name>Pad Sink ID</name>
69                 <key>pad_sink_id</key>
70                 <value>pad_sink_0</value>
71                 <type>string</type>
72                 <hide>#if $mode() == 'cont' then 'none' else 'all'#</hide>
73         </param>
74         <check>$vlen &gt; 0</check>
75         <check>0 &lt; $nports</check>
76         <source>
77                 <name>out</name>
78                 <type>$type</type>
79                 <vlen>$vlen</vlen>
80                 <nports>$nports</nports>
81         </source>
82         <doc>
83 Continuation Mode:
84 The outputs of this block will alias the inputs of the pad sink specified by "pad sink id".
85
86 Hierarchical Mode:
87 The outputs of this block will become the inputs to this flow graph when it is instantiated as a hierarchical block. \
88 Limit one source pad block per flow graph. \
89 The "pad sink id" will be ignored in this mode.
90         </doc>
91 </block>