diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2015-04-08 14:58:02 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2015-04-08 14:58:02 -0700 |
commit | 2a1957c57b7f993f373c4aedee2a455d3dbe552b (patch) | |
tree | 10635b83ac7f040ad4bc27156af3ba07f42515f3 | |
parent | d42760342231b2a8a15940fccf82e256578d186e (diff) |
filter: added variable_band_reject_filter_taps and variable_rrc_filter_taps
-rw-r--r-- | gr-filter/grc/CMakeLists.txt | 2 | ||||
-rw-r--r-- | gr-filter/grc/filter_block_tree.xml | 2 | ||||
-rw-r--r-- | gr-filter/grc/variable_band_reject_filter_taps.xml | 81 | ||||
-rw-r--r-- | gr-filter/grc/variable_rrc_filter_taps.xml | 50 |
4 files changed, 135 insertions, 0 deletions
diff --git a/gr-filter/grc/CMakeLists.txt b/gr-filter/grc/CMakeLists.txt index b31b40464f..b3bc2e1828 100644 --- a/gr-filter/grc/CMakeLists.txt +++ b/gr-filter/grc/CMakeLists.txt @@ -48,6 +48,8 @@ install(FILES variable_low_pass_filter_taps.xml variable_high_pass_filter_taps.xml variable_band_pass_filter_taps.xml + variable_band_reject_filter_taps.xml + variable_rrc_filter_taps.xml DESTINATION ${GRC_BLOCKS_DIR} COMPONENT "filter_python" ) diff --git a/gr-filter/grc/filter_block_tree.xml b/gr-filter/grc/filter_block_tree.xml index eac192aa6b..ea869a75bd 100644 --- a/gr-filter/grc/filter_block_tree.xml +++ b/gr-filter/grc/filter_block_tree.xml @@ -34,6 +34,8 @@ <block>variable_low_pass_filter_taps</block> <block>variable_high_pass_filter_taps</block> <block>variable_band_pass_filter_taps</block> + <block>variable_band_reject_filter_taps</block> + <block>variable_rrc_filter_taps</block> <!-- FIR convenience filters --> <block>low_pass_filter</block> <block>high_pass_filter</block> diff --git a/gr-filter/grc/variable_band_reject_filter_taps.xml b/gr-filter/grc/variable_band_reject_filter_taps.xml new file mode 100644 index 0000000000..fbf25886d3 --- /dev/null +++ b/gr-filter/grc/variable_band_reject_filter_taps.xml @@ -0,0 +1,81 @@ +<?xml version="1.0"?> +<!-- +######################################################### +# Convenience wrapper for calling firdes.band_reject(...) +######################################################### + --> +<block> + <name>Band-reject Filter Taps</name> + <key>variable_band_reject_filter_taps</key> + <import>from gnuradio.filter import firdes</import> + <var_make> +self.$(id) = $(id) = firdes.band_reject($gain, $samp_rate, $low_cutoff_freq, $high_cutoff_freq, $width, $win, $beta) + </var_make> + <var_value>firdes.band_reject($gain, $samp_rate, $low_cutoff_freq, $high_cutoff_freq, $width, $win, $beta)</var_value> + <make></make> + + <param> + <name>Gain</name> + <key>gain</key> + <value>1.0</value> + <type>float</type> + </param> + <param> + <name>Sample Rate (Hz)</name> + <key>samp_rate</key> + <value>samp_rate</value> + <type>float</type> + </param> + <param> + <name>Low Cutoff Freq (Hz)</name> + <key>low_cutoff_freq</key> + <type>float</type> + </param> + <param> + <name>High Cutoff Freq (Hz)</name> + <key>high_cutoff_freq</key> + <type>float</type> + </param> + <param> + <name>Transition Width (Hz)</name> + <key>width</key> + <type>float</type> + </param> + <param> + <name>Window</name> + <key>win</key> + <value>firdes.WIN_HAMMING</value> + <type>int</type> + <option> + <name>Hamming</name> + <key>firdes.WIN_HAMMING</key> + </option> + <option> + <name>Hann</name> + <key>firdes.WIN_HANN</key> + </option> + <option> + <name>Blackman</name> + <key>firdes.WIN_BLACKMAN</key> + </option> + <option> + <name>Rectangular</name> + <key>firdes.WIN_RECTANGULAR</key> + </option> + <option> + <name>Kaiser</name> + <key>firdes.WIN_KAISER</key> + </option> + </param> + <param> + <name>Beta</name> + <key>beta</key> + <value>6.76</value> + <type>float</type> + </param> + <doc> + This is a convenience wrapper for calling firdes.band_reject(). + + The beta paramater only applies to the Kaiser window. + </doc> +</block> diff --git a/gr-filter/grc/variable_rrc_filter_taps.xml b/gr-filter/grc/variable_rrc_filter_taps.xml new file mode 100644 index 0000000000..2824ba75b2 --- /dev/null +++ b/gr-filter/grc/variable_rrc_filter_taps.xml @@ -0,0 +1,50 @@ +<?xml version="1.0"?> +<!-- +######################################################################## +## Convenience wrapper for calling firdes.root_raised_cosine_filter(...) +######################################################################## + --> +<block> + <name>RRC Filter Taps</name> + <key>variable_rrc_filter_taps</key> + <import>from gnuradio.filter import firdes</import> + <var_make> +self.$(id) = $(id) = firdes.root_raised_cosine($gain, $samp_rate, $sym_rate, $alpha, $ntaps) + </var_make> + <var_value>firdes.root_raised_cosine($gain, $samp_rate, $sym_rate, $alpha, $ntaps)</var_value> + <make></make> + + <param> + <name>Gain</name> + <key>gain</key> + <value>1.0</value> + <type>float</type> + </param> + <param> + <name>Sample Rate (Hz)</name> + <key>samp_rate</key> + <value>samp_rate</value> + <type>float</type> + </param> + <param> + <name>Symbol Rate (Hz)</name> + <key>sym_rate</key> + <value></value> + <type>float</type> + </param> + <param> + <name>Excess BW</name> + <key>alpha</key> + <value>0.35</value> + <type>float</type> + </param> + <param> + <name>Num Taps</name> + <key>ntaps</key> + <value>11*sps</value> + <type>int</type> + </param> + <doc> + This is a convenience wrapper for calling firdes.root_raised_cosine(...). + </doc> +</block> |