summaryrefslogtreecommitdiff
path: root/grc/tests/resources/file2.xml
blob: 1300c7f5a1295250bba04d9e87f5be52e51aa3af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?xml version="1.0"?>
<!--
Copyright 2014 Free Software Foundation, Inc.
This file is part of GNU Radio

GNU Radio Companion is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

GNU Radio Companion is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.

You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
-->
<!--
###################################################
## And Const Block:
##	all types, 1 output, 1 input & const
###################################################
 -->
<block>
	<name>And Const</name>
	<key>blocks_and_const_xx</key>
	<category>test</category>
	<throttle>1</throttle>
	<import>from gnuradio import blocks</import>
	<make>blocks.and_const_$(type.fcn)($const)</make>
	<callback>set_k($const)</callback>
	<param>
		<name>IO Type</name>
		<key>type</key>
		<type>enum</type>
		<option>
			<name>Int</name>
			<key>int</key>
			<opt>fcn:ii</opt>
		</option>
		<option>
			<name>Short</name>
			<key>short</key>
			<opt>fcn:ss</opt>
		</option>
		<option>
			<name>Byte</name>
			<key>byte</key>
			<opt>fcn:bb</opt>
		</option>
	</param>
	<param>
		<name>Constant</name>
		<key>const</key>
		<value>0</value>
		<type>${type}</type>
        <hide>#if $log then 'none' else 'part'#</hide>
	</param>
	<sink>
		<name>in</name>
		<type>$type</type>
	</sink>
	<source>
		<name>out</name>
		<type>$(type.fcn)</type>
	</source>
	<doc>
This block creates a variable check box. \
Leave the label blank to use the variable id as the label.

A check box selects between two values of similar type. \
Te values do not necessarily need to be of boolean type.

The GUI hint can be used to position the widget within the application. \
The hint is of the form [tab_id@tab_index]: [row, col, row_span, col_span]. \
Both the tab specification and the grid position are optional.
	</doc>
</block>