From d79054551fee36eda99a142aff2856f20b4787fa Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Thu, 26 Apr 2012 20:05:59 -0400 Subject: gr-fft: creates a gr-fft top-level component. --- gr-fft/grc/CMakeLists.txt | 26 +++++++++++++ gr-fft/grc/fft_block_tree.xml | 36 ++++++++++++++++++ gr-fft/grc/fft_vxx.xml | 88 +++++++++++++++++++++++++++++++++++++++++++ gr-fft/grc/goertzel_fc.xml | 37 ++++++++++++++++++ 4 files changed, 187 insertions(+) create mode 100644 gr-fft/grc/CMakeLists.txt create mode 100644 gr-fft/grc/fft_block_tree.xml create mode 100644 gr-fft/grc/fft_vxx.xml create mode 100644 gr-fft/grc/goertzel_fc.xml (limited to 'gr-fft/grc') diff --git a/gr-fft/grc/CMakeLists.txt b/gr-fft/grc/CMakeLists.txt new file mode 100644 index 000000000..632a9aaad --- /dev/null +++ b/gr-fft/grc/CMakeLists.txt @@ -0,0 +1,26 @@ +# Copyright 2012 Free Software Foundation, Inc. +# +# This file is part of GNU Radio +# +# GNU Radio is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# GNU Radio is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Radio; see the file COPYING. If not, write to +# the Free Software Foundation, Inc., 51 Franklin Street, +# Boston, MA 02110-1301, USA. + +install(FILES + fft_block_tree.xml + fft_vxx.xml + goertzel_fc.xml + DESTINATION ${GRC_BLOCKS_DIR} + COMPONENT "fft_python" +) diff --git a/gr-fft/grc/fft_block_tree.xml b/gr-fft/grc/fft_block_tree.xml new file mode 100644 index 000000000..3bda77eae --- /dev/null +++ b/gr-fft/grc/fft_block_tree.xml @@ -0,0 +1,36 @@ + + + + + + + + + FFT + fft_vxx + goertzel_fc + + diff --git a/gr-fft/grc/fft_vxx.xml b/gr-fft/grc/fft_vxx.xml new file mode 100644 index 000000000..69f12ace7 --- /dev/null +++ b/gr-fft/grc/fft_vxx.xml @@ -0,0 +1,88 @@ + + + + FFT + fft_vxx + from gnuradio import fft + from gnuradio import window + #if $type() == "complex" +fft.fft_vcc($fft_size, $forward, $window, $shift, $nthreads) +#else +fft.fft_vfc($fft_size, $forward, $window, $nthreads) +#end if + set_nthreads($nthreads) + + Input Type + type + enum + + + + + FFT Size + fft_size + 1024 + int + + + Forward/Reverse + forward + enum + + + + + Window + window + window.blackmanharris(1024) + real_vector + + + Shift + shift + enum + $type.hide_shift + + + + + Num. Threads + nthreads + 1 + int + + + in + $type + $fft_size + + + out + complex + $fft_size + + diff --git a/gr-fft/grc/goertzel_fc.xml b/gr-fft/grc/goertzel_fc.xml new file mode 100644 index 000000000..371284358 --- /dev/null +++ b/gr-fft/grc/goertzel_fc.xml @@ -0,0 +1,37 @@ + + + + Goertzel + goertzel_fc + from gnuradio import fft + fft.goertzel_fc($rate, $len, $freq) + set_freq($freq) + set_rate($rate) + + Rate + rate + int + + + Length + len + int + + + Frequency + freq + real + + + in + float + + + out + complex + + -- cgit