blob: 2f81a50e5c26db2f9eedb604ea54036ad270b270 (
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
82
83
84
85
86
87
88
|
<?xml version="1.0"?>
<!--
###################################################
##Rational Resampler
###################################################
-->
<block>
<name>Rational Resampler</name>
<key>blks2_rational_resampler_xxx</key>
<import>from gnuradio import blks2</import>
<import>from gnuradio.gr import firdes</import>
<make>blks2.rational_resampler_$(type)(
interpolation=$interp,
decimation=$decim,
#if $taps.eval
taps=$taps,
#else
taps=None,
#end if
#if $fractional_bw.eval != 0
fractional_bw=$fractional_bw,
#else
fractional_bw=None,
#end if
)</make>
<param>
<name>Type</name>
<key>type</key>
<type>enum</type>
<option>
<name>Complex->Complex (Complex Taps)</name>
<key>ccc</key>
<opt>input:complex</opt>
<opt>output:complex</opt>
<opt>taps:complex_vector</opt>
</option>
<option>
<name>Complex->Complex (Real Taps)</name>
<key>ccf</key>
<opt>input:complex</opt>
<opt>output:complex</opt>
<opt>taps:real_vector</opt>
</option>
<option>
<name>Float->Float (Real Taps)</name>
<key>fff</key>
<opt>input:float</opt>
<opt>output:float</opt>
<opt>taps:real_vector</opt>
</option>
</param>
<param>
<name>Decimation</name>
<key>decim</key>
<value>1</value>
<type>int</type>
</param>
<param>
<name>Interpolation</name>
<key>interp</key>
<value>1</value>
<type>int</type>
</param>
<param>
<name>Taps</name>
<key>taps</key>
<value>[]</value>
<type>$type.taps</type>
</param>
<param>
<name>Fractional BW</name>
<key>fractional_bw</key>
<value>0</value>
<type>real</type>
</param>
<sink>
<name>in</name>
<type>$type.input</type>
</sink>
<source>
<name>out</name>
<type>$type.output</type>
</source>
<doc>
Leave taps empty for automatic value.
Leave fractional bandwidth 0 for automatic value.
</doc>
</block>
|