summaryrefslogtreecommitdiff
path: root/grc/blocks/gr_probe_avg_mag_sqrd_x.xml
blob: eb855956a7c5feb7998d09e88d3b87a72840175e (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
<?xml version="1.0"?>
<!--
###################################################
##Probe Average Magnitude Squared
###################################################
 -->
<block>
	<name>Probe Avg Mag^2</name>
	<key>gr_probe_avg_mag_sqrd_x</key>
	<import>from grc_gnuradio import blks2 as grc_blks2</import>
	<make>grc_blks2.probe_avg_mag_sqrd_$(type)(
	threshold=$threshold,
	alpha=$alpha,
	probe_rate=$probe_rate,
)</make>
	<callback>set_alpha($alpha)</callback>
	<callback>set_threshold($threshold)</callback>
	<callback>set_probe_rate($probe_rate)</callback>
	<param>
		<name>Type</name>
		<key>type</key>
		<type>enum</type>
		<option>
			<name>Complex</name>
			<key>c</key>
			<opt>input:complex</opt>
		</option>
		<option>
			<name>Float</name>
			<key>f</key>
			<opt>input:float</opt>
		</option>
	</param>
	<param>
		<name>Threshold (dB)</name>
		<key>threshold</key>
		<value>0</value>
		<type>real</type>
	</param>
	<param>
		<name>Alpha</name>
		<key>alpha</key>
		<value>1</value>
		<type>real</type>
	</param>
	<param>
		<name>Probe Rate</name>
		<key>probe_rate</key>
		<value>10</value>
		<type>real</type>
	</param>
	<sink>
		<name>in</name>
		<type>$type.input</type>
	</sink>
	<source>
		<name>out</name>
		<type>float</type>
	</source>
</block>