summaryrefslogtreecommitdiff
path: root/grc/blocks/gr_peak_detector_xb.xml
blob: 394b0697f8f721cb21b736e6a6dbb4e13b31d253 (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
<?xml version="1.0"?>
<!--
###################################################
##Peak Detector
###################################################
 -->
<block>
	<name>Peak Detector</name>
	<key>gr_peak_detector_xb</key>
	<import>from gnuradio import gr</import>
	<make>gr.peak_detector_$(type.fcn)b($threshold_factor_rise, $threshold_factor_fall, $look_ahead, $alpha)</make>
	<callback>set_threshold_factor_rise($threshold_factor_rise)</callback>
	<callback>set_threshold_factor_fall($threshold_factor_fall)</callback>
	<callback>set_look_ahead($look_ahead)</callback>
	<callback>set_alpha($alpha)</callback>
	<param>
		<name>Input Type</name>
		<key>type</key>
		<type>enum</type>
		<option>
			<name>Float</name>
			<key>float</key>
			<opt>fcn:f</opt>
		</option>
		<option>
			<name>Int</name>
			<key>int</key>
			<opt>fcn:i</opt>
		</option>
		<option>
			<name>Short</name>
			<key>short</key>
			<opt>fcn:s</opt>
		</option>
	</param>
	<param>
		<name>TH Factor Rise</name>
		<key>threshold_factor_rise</key>
		<type>real</type>
	</param>
	<param>
		<name>TH Factor Fall</name>
		<key>threshold_factor_fall</key>
		<type>real</type>
	</param>
	<param>
		<name>Look Ahead</name>
		<key>look_ahead</key>
		<type>int</type>
	</param>
	<param>
		<name>Alpha</name>
		<key>alpha</key>
		<type>real</type>
	</param>
	<sink>
		<name>in</name>
		<type>$type</type>
	</sink>
	<source>
		<name>out</name>
		<type>byte</type>
	</source>
</block>