GNU Radio Manual and C++ API Reference 3.7.14.0
The Free & Open Software Radio Ecosystem
filterbank_vcvcf.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2009,2010,2012,2014 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
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)
10 * any later version.
11 *
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.
16 *
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.
21 */
22
23
24#ifndef INCLUDED_FILTER_FILTERBANK_CHANNELIZER_VCVCF_H
25#define INCLUDED_FILTER_FILTERBANK_CHANNELIZER_VCVCF_H
26
27#include <gnuradio/block.h>
28#include <gnuradio/filter/api.h>
29
30namespace gr {
31namespace filter {
32
33/*!
34 * \brief Filterbank with vector of gr_complex input,
35 * vector of gr_complex output and float taps
36 * \ingroup filter_blk
37 *
38 * \details
39 * This block takes in complex vectors and outputs complex vectors of the same
40 * size. Vectors of length N, rather than N normal streams are used to reduce
41 * overhead.
42 */
43class FILTER_API filterbank_vcvcf : virtual public block
44{
45public:
46 typedef boost::shared_ptr<filterbank_vcvcf> sptr;
47
48 /*!
49 * Build the filterbank.
50 * \param taps (vector of vector of floats/list of list of floats)
51 * Used to populate the filters.
52 */
53 static sptr make(const std::vector<std::vector<float> >& taps);
54
55 /*!
56 * Resets the filterbank's filter taps with the new prototype filter
57 * \param taps (vector/list of floats) The prototype filter to populate the
58 * filterbank.
59 */
60 virtual void set_taps(const std::vector<std::vector<float> >& taps) = 0;
61
62 /*!
63 * Print all of the filterbank taps to screen.
64 */
65 virtual void print_taps() = 0;
66
67 /*!
68 * Return a vector<vector<>> of the filterbank taps
69 */
70 virtual std::vector<std::vector<float> > taps() const = 0;
71};
72
73} /* namespace filter */
74} /* namespace gr */
75
76#endif /* INCLUDED_FILTER_PFB_CHANNELIZER_VCVCF_H */
The abstract base class for all 'terminal' processing blocks.
Definition: block.h:66
Filterbank with vector of gr_complex input, vector of gr_complex output and float taps.
Definition: filterbank_vcvcf.h:44
static sptr make(const std::vector< std::vector< float > > &taps)
virtual void print_taps()=0
virtual std::vector< std::vector< float > > taps() const =0
boost::shared_ptr< filterbank_vcvcf > sptr
Definition: filterbank_vcvcf.h:46
virtual void set_taps(const std::vector< std::vector< float > > &taps)=0
#define FILTER_API
Definition: gr-filter/include/gnuradio/filter/api.h:30
static const float taps[NSTEPS+1][NTAPS]
Definition: interpolator_taps.h:9
Include this header to use the message passing features.
Definition: basic_block.h:45