GNU Radio's FILTER_AVX2 Package
pfb_channelizer_ccf_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2015 <+YOU OR YOUR COMPANY+>.
4  *
5  * This is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 3, or (at your option)
8  * any later version.
9  *
10  * This software is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this software; see the file COPYING. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef INCLUDED_FILTER_AVX2_PFB_CHANNELIZER_CCF_IMPL_H
22 #define INCLUDED_FILTER_AVX2_PFB_CHANNELIZER_CCF_IMPL_H
23 
25 #include "polyphase_filterbank.h"
26 #include "fir_filter.h"
27 #include <gnuradio/fft/fft.h>
28 #include <gnuradio/thread/thread.h>
29 
30 namespace gr {
31  namespace filter_avx2 {
32 
34  {
35  private:
36  bool d_updated;
37  float d_oversample_rate;
38  int *d_idxlut;
39  int d_rate_ratio;
40  int d_output_multiple;
41  std::vector<int> d_channel_map;
42  gr::thread::mutex d_mutex; // mutex to protect set/work access
43 
44  public:
45  pfb_channelizer_ccf_impl(unsigned int nfilts,
46  const std::vector<float> &taps,
47  float oversample_rate);
48 
50 
51  void set_taps(const std::vector<float> &taps);
52  void print_taps();
53  std::vector<std::vector<float> > taps() const;
54 
55  void set_channel_map(const std::vector<int> &map);
56  std::vector<int> channel_map() const;
57 
58  int general_work(int noutput_items,
59  gr_vector_int &ninput_items,
60  gr_vector_const_void_star &input_items,
61  gr_vector_void_star &output_items);
62  };
63 
64  } // namespace filter_avx2
65 } // namespace gr
66 
67 #endif /* INCLUDED_FILTER_AVX2_PFB_CHANNELIZER_CCF_IMPL_H */
68 
std::vector< int > channel_map() const
std::vector< std::vector< float > > taps() const
void set_channel_map(const std::vector< int > &map)
pfb_channelizer_ccf_impl(unsigned int nfilts, const std::vector< float > &taps, float oversample_rate)
Polyphase filterbank parent class.
Definition: polyphase_filterbank.h:101
void set_taps(const std::vector< float > &taps)
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
Definition: pfb_channelizer_ccf_impl.h:33
<+description of block+>
Definition: pfb_channelizer_ccf.h:36