summaryrefslogtreecommitdiff
path: root/grc/data/platforms/python/blocks/gr_fft_vxx.xml
blob: d398486efac6f9594f96570fe95b33c06be765bb (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
81
<?xml version="1.0"?>
<!--
###################################################
##FFT
###################################################
 -->
<block>
	<name>FFT</name>
	<key>gr_fft_vxx</key>
	<import>from gnuradio import gr</import>
	<import>from gnuradio import window</import>
	<make>#if $type() == "complex"
gr.fft_vcc($fft_size, $forward, $window, $shift)
#else
gr.fft_vfc($fft_size, $forward, $window)
#end if</make>
	<param>
		<name>Input Type</name>
		<key>type</key>
		<type>enum</type>
		<option>
			<name>Complex</name>
			<key>complex</key>
			<opt>hide_shift:</opt>
		</option>
		<option>
			<name>Float</name>
			<key>float</key>
			<opt>hide_shift:all</opt>
		</option>
	</param>
	<param>
		<name>FFT Size</name>
		<key>fft_size</key>
		<value>1024</value>
		<type>int</type>
	</param>
	<param>
		<name>Forward/Reverse</name>
		<key>forward</key>
		<type>enum</type>
		<option>
			<name>Forward</name>
			<key>True</key>
		</option>
		<option>
			<name>Reverse</name>
			<key>False</key>
		</option>
	</param>
	<param>
		<name>Window</name>
		<key>window</key>
		<value>window.blackmanharris(1024)</value>
		<type>real_vector</type>
	</param>
	<param>
		<name>Shift</name>
		<key>shift</key>
		<type>enum</type>
		<hide>$type.hide_shift</hide>
		<option>
			<name>Yes</name>
			<key>True</key>
		</option>
		<option>
			<name>No</name>
			<key>False</key>
		</option>
	</param>
	<sink>
		<name>in</name>
		<type>$type</type>
		<vlen>$fft_size</vlen>
	</sink>
	<source>
		<name>out</name>
		<type>complex</type>
		<vlen>$fft_size</vlen>
	</source>
</block>