root / grc / blocks / root_raised_cosine_filter.xml @ f4da804e
History | View | Annotate | Download (2.4 kB)
| 1 | <?xml version="1.0"?>
|
|---|---|
| 2 | <!--
|
| 3 | ################################################### |
| 4 | ##Root Raised Cosine Filter: Custom wrapper |
| 5 | ################################################### |
| 6 | --> |
| 7 | <block>
|
| 8 | <name>Root Raised Cosine Filter</name> |
| 9 | <key>root_raised_cosine_filter</key> |
| 10 | <import>from gnuradio import gr</import> |
| 11 | <import>from gnuradio.gr import firdes</import> |
| 12 | <make>gr.$(type)(#if str($type).startswith('interp') then $interp else $decim#, firdes.root_raised_cosine(
|
| 13 | $gain, $samp_rate, $sym_rate, $alpha, $ntaps))</make>
|
| 14 | <callback>set_taps(firdes.root_raised_cosine($gain, $samp_rate, $sym_rate, $alpha, $ntaps))</callback> |
| 15 | <param>
|
| 16 | <name>FIR Type</name> |
| 17 | <key>type</key> |
| 18 | <type>enum</type> |
| 19 | <option>
|
| 20 | <name>Complex->Complex (Decimating)</name> |
| 21 | <key>fir_filter_ccf</key> |
| 22 | <opt>input:complex</opt> |
| 23 | <opt>output:complex</opt> |
| 24 | </option>
|
| 25 | <option>
|
| 26 | <name>Complex->Complex (Interpolating)</name> |
| 27 | <key>interp_fir_filter_ccf</key> |
| 28 | <opt>input:complex</opt> |
| 29 | <opt>output:complex</opt> |
| 30 | </option>
|
| 31 | <option>
|
| 32 | <name>Float->Float (Decimating)</name> |
| 33 | <key>fir_filter_fff</key> |
| 34 | <opt>input:float</opt> |
| 35 | <opt>output:float</opt> |
| 36 | </option>
|
| 37 | <option>
|
| 38 | <name>Float->Float (Interpolating)</name> |
| 39 | <key>interp_fir_filter_fff</key> |
| 40 | <opt>input:float</opt> |
| 41 | <opt>output:float</opt> |
| 42 | </option>
|
| 43 | </param>
|
| 44 | <param>
|
| 45 | <name>Decimation</name> |
| 46 | <key>decim</key> |
| 47 | <value>1</value> |
| 48 | <type>int</type> |
| 49 | <hide>#if str($type).startswith('interp') then 'all' else 'none'#</hide> |
| 50 | </param>
|
| 51 | <param>
|
| 52 | <name>Interpolation</name> |
| 53 | <key>interp</key> |
| 54 | <value>1</value> |
| 55 | <type>int</type> |
| 56 | <hide>#if str($type).startswith('interp') then 'none' else 'all'#</hide> |
| 57 | </param>
|
| 58 | <param>
|
| 59 | <name>Gain</name> |
| 60 | <key>gain</key> |
| 61 | <value>1</value> |
| 62 | <type>real</type> |
| 63 | </param>
|
| 64 | <param>
|
| 65 | <name>Sample Rate</name> |
| 66 | <key>samp_rate</key> |
| 67 | <value>samp_rate</value> |
| 68 | <type>real</type> |
| 69 | </param>
|
| 70 | <param>
|
| 71 | <name>Symbol Rate</name> |
| 72 | <key>sym_rate</key> |
| 73 | <value>1.0</value> |
| 74 | <type>real</type> |
| 75 | </param>
|
| 76 | <param>
|
| 77 | <name>Alpha</name> |
| 78 | <key>alpha</key> |
| 79 | <value>0.35</value> |
| 80 | <type>real</type> |
| 81 | </param>
|
| 82 | <param>
|
| 83 | <name>Num Taps</name> |
| 84 | <key>ntaps</key> |
| 85 | <value>11*samp_rate</value> |
| 86 | <type>int</type> |
| 87 | </param>
|
| 88 | <sink>
|
| 89 | <name>in</name> |
| 90 | <type>$type.input</type> |
| 91 | </sink>
|
| 92 | <source>
|
| 93 | <name>out</name> |
| 94 | <type>$type.output</type> |
| 95 | </source>
|
| 96 | <doc>
|
| 97 | This filter is a convenience wrapper for an fir filter and a firdes taps generating function. |
| 98 | |
| 99 | Sample rate in Hertz. |
| 100 | </doc>
|
| 101 | </block>
|