Imported Upstream version 3.2.2
[debian/gnuradio] / grc / blocks / blks2_variable_sink_x.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Variable Sink: Custom blks2 block
5 ###################################################
6  -->
7 <block>
8         <name>Variable Sink</name>
9         <key>blks2_variable_sink_x</key>
10         <import>from grc_gnuradio import blks2 as grc_blks2</import>
11         <make>grc_blks2.variable_sink_$(type.fcn)(
12         vlen=$vlen,
13         decim=$decim,
14         callback=self.set_$(variable()),
15 )</make>
16         <callback>set_decim($decim)</callback>
17         <param>
18                 <name>Type</name>
19                 <key>type</key>
20                 <type>enum</type>
21                 <option>
22                         <name>Complex</name>
23                         <key>complex</key>
24                         <opt>fcn:c</opt>
25                 </option>
26                 <option>
27                         <name>Float</name>
28                         <key>float</key>
29                         <opt>fcn:f</opt>
30                 </option>
31                 <option>
32                         <name>Int</name>
33                         <key>int</key>
34                         <opt>fcn:i</opt>
35                 </option>
36                 <option>
37                         <name>Short</name>
38                         <key>short</key>
39                         <opt>fcn:s</opt>
40                 </option>
41                 <option>
42                         <name>Byte</name>
43                         <key>byte</key>
44                         <opt>fcn:b</opt>
45                 </option>
46         </param>
47         <param>
48                 <name>Variable</name>
49                 <key>variable</key>
50                 <value></value>
51                 <type>string</type>
52         </param>
53         <param>
54                 <name>Decimation</name>
55                 <key>decim</key>
56                 <value>1</value>
57                 <type>int</type>
58         </param>
59         <param>
60                 <name>Vec Length</name>
61                 <key>vlen</key>
62                 <value>1</value>
63                 <type>int</type>
64         </param>
65         <check>$vlen &gt; 0</check>
66         <sink>
67                 <name>in</name>
68                 <type>$type</type>
69                 <vlen>$vlen</vlen>
70         </sink>
71         <doc>
72 Read samples from the input stream and \
73 write one in every decimation samples to the variable.
74
75 The variable must be the id of an existing variable block.
76         </doc>
77 </block>