Imported Upstream version 3.2.2
[debian/gnuradio] / grc / blocks / const_source_x.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Constant Source: Custom wrapper
5 ###################################################
6  -->
7 <block>
8         <name>Constant Source</name>
9         <key>const_source_x</key>
10         <import>from gnuradio import gr</import>
11         <make>gr.sig_source_$(type.fcn)(0, gr.GR_CONST_WAVE, 0, 0, $const)</make>
12         <callback>set_offset($const)</callback>
13         <param>
14                 <name>Output Type</name>
15                 <key>type</key>
16                 <type>enum</type>
17                 <option>
18                         <name>Complex</name>
19                         <key>complex</key>
20                         <opt>fcn:c</opt>
21                         <opt>const_type:complex</opt>
22                 </option>
23                 <option>
24                         <name>Float</name>
25                         <key>float</key>
26                         <opt>fcn:f</opt>
27                         <opt>const_type:real</opt>
28                 </option>
29                 <option>
30                         <name>Int</name>
31                         <key>int</key>
32                         <opt>fcn:i</opt>
33                         <opt>const_type:int</opt>
34                 </option>
35                 <option>
36                         <name>Short</name>
37                         <key>short</key>
38                         <opt>fcn:s</opt>
39                         <opt>const_type:int</opt>
40                 </option>
41         </param>
42         <param>
43                 <name>Constant</name>
44                 <key>const</key>
45                 <value>0</value>
46                 <type>$type.const_type</type>
47         </param>
48         <source>
49                 <name>out</name>
50                 <type>$type</type>
51         </source>
52 </block>