Statistics
| Branch: | Tag: | Revision:

root / grc / blocks / gr_sub_xx.xml @ 494f2fbd

History | View | Annotate | Download (1.2 kB)

1
<?xml version="1.0"?>
2
<!--
3
###################################################
4
##Subtract Block:
5
##        all types, 1 output, 2 to inf inputs
6
###################################################
7
 -->
8
<block>
9
        <name>Subtract</name>
10
        <key>gr_sub_xx</key>
11
        <import>from gnuradio import gr</import>
12
        <make>gr.sub_$(type.fcn)($vlen)</make>
13
        <param>
14
                <name>IO Type</name>
15
                <key>type</key>
16
                <type>enum</type>
17
                <option>
18
                        <name>Complex</name>
19
                        <key>complex</key>
20
                        <opt>fcn:cc</opt>
21
                </option>
22
                <option>
23
                        <name>Float</name>
24
                        <key>float</key>
25
                        <opt>fcn:ff</opt>
26
                </option>
27
                <option>
28
                        <name>Int</name>
29
                        <key>int</key>
30
                        <opt>fcn:ii</opt>
31
                </option>
32
                <option>
33
                        <name>Short</name>
34
                        <key>short</key>
35
                        <opt>fcn:ss</opt>
36
                </option>
37
        </param>
38
        <param>
39
                <name>Vec Length</name>
40
                <key>vlen</key>
41
                <value>1</value>
42
                <type>int</type>
43
        </param>
44
        <param>
45
                <name>Num Inputs</name>
46
                <key>num_inputs</key>
47
                <value>2</value>
48
                <type>int</type>
49
        </param>
50
        <check>$vlen &gt; 0</check>
51
        <check>$num_inputs &gt;= 2</check>
52
        <sink>
53
                <name>in</name>
54
                <type>$type</type>
55
                <vlen>$vlen</vlen>
56
                <nports>$num_inputs</nports>
57
        </sink>
58
        <source>
59
                <name>out</name>
60
                <type>$type</type>
61
                <vlen>$vlen</vlen>
62
        </source>
63
</block>