3 # Copyright 2009 Free Software Foundation, Inc.
5 # This file is part of GNU Radio
7 # GNU Radio is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3, or (at your option)
12 # GNU Radio is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with GNU Radio; see the file COPYING. If not, write to
19 # the Free Software Foundation, Inc., 51 Franklin Street,
20 # Boston, MA 02110-1301, USA.
23 from gnuradio import gr
25 class pfb_interpolator_ccf(gr.hier_block2):
27 Make a Polyphase Filter interpolator (complex in, complex out, floating-point taps)
29 The block takes a single complex stream in and outputs a single complex
30 stream out. As such, it requires no extra glue to handle the input/output
31 streams. This block is provided to be consistent with the interface to the
34 def __init__(self, interp, taps):
35 gr.hier_block2.__init__(self, "pfb_interpolator_ccf",
36 gr.io_signature(1, 1, gr.sizeof_gr_complex), # Input signature
37 gr.io_signature(1, 1, gr.sizeof_gr_complex)) # Output signature
42 self.pfb = gr.pfb_interpolator_ccf(self._interp, self._taps)
44 self.connect(self, self.pfb)
45 self.connect(self.pfb, self)