grc: adds gr.and_const to block tree
[debian/gnuradio] / grc / blocks / gr_and_const_xx.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ## And Const Block:
5 ##      all types, 1 output, 1 input & const
6 ###################################################
7  -->
8 <block>
9         <name>And Const</name>
10         <key>gr_and_const_xx</key>
11         <import>from gnuradio import gr</import>
12         <make>gr.and_const_$(type.fcn)($const)</make>
13         <callback>set_k($const)</callback>
14         <param>
15                 <name>IO Type</name>
16                 <key>type</key>
17                 <type>enum</type>
18                 <option>
19                         <name>Int</name>
20                         <key>int</key>
21                         <opt>fcn:ii</opt>
22                 </option>
23                 <option>
24                         <name>Short</name>
25                         <key>short</key>
26                         <opt>fcn:ss</opt>
27                 </option>
28                 <option>
29                         <name>Byte</name>
30                         <key>byte</key>
31                         <opt>fcn:bb</opt>
32                 </option>
33         </param>
34         <param>
35                 <name>Constant</name>
36                 <key>const</key>
37                 <value>0</value>
38                 <type>int</type>
39         </param>
40         <sink>
41                 <name>in</name>
42                 <type>$type</type>
43         </sink>
44         <source>
45                 <name>out</name>
46                 <type>$type</type>
47         </source>
48 </block>