668d7c59927187ddb55c118925e8920af7915264
[debian/gnuradio] / grc / data / grc_gnuradio / blocks / gr_mute_xx.xml
1 <?xml version="1.0"?>
2 <!--
3 ###################################################
4 ##Mute Block:
5 ##      Cast input to bool.
6 ###################################################
7  -->
8 <block>
9         <name>Mute</name>
10         <key>gr_mute_xx</key>
11         <import>from gnuradio import gr</import>
12         <make>gr.mute_$(type.fcn)(bool($mute))</make>
13         <callback>set_mute(bool($mute))</callback>
14         <param>
15                 <name>IO Type</name>
16                 <key>type</key>
17                 <type>enum</type>
18                 <option>
19                         <name>Complex</name>
20                         <key>complex</key>
21                         <opt>fcn:cc</opt>
22                 </option>
23                 <option>
24                         <name>Float</name>
25                         <key>float</key>
26                         <opt>fcn:ff</opt>
27                 </option>
28                 <option>
29                         <name>Int</name>
30                         <key>int</key>
31                         <opt>fcn:ii</opt>
32                 </option>
33                 <option>
34                         <name>Short</name>
35                         <key>short</key>
36                         <opt>fcn:ss</opt>
37                 </option>
38         </param>
39         <param>
40                 <name>Mute</name>
41                 <key>mute</key>
42                 <value>False</value>
43                 <type>raw</type>
44         </param>
45         <sink>
46                 <name>in</name>
47                 <type>$type</type>
48         </sink>
49         <source>
50                 <name>out</name>
51                 <type>$type</type>
52         </source>
53 </block>