GNU Radio's DAB Package
select_subch_vfvf_impl.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2017 Moritz Luca Schmid, Communications Engineering Lab (CEL) / Karlsruhe Institute of Technology (KIT).
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_DAB_SELECT_SUBCH_VFVF_IMPL_H
22 #define INCLUDED_DAB_SELECT_SUBCH_VFVF_IMPL_H
23 
25 
26 namespace gr {
27  namespace dab {
28 /*! \brief selects vectors out of input vectors that belong to one subchannel
29  *
30  * input: float vector of size vlen_in
31  *
32  * output: float vector of size vlen_out
33  *
34  * selects vlen_out/vlen_in vectors of total_size input vectors, beginning at address
35  *
36  * @param vlen_in Length of input vector in floats.
37  * @param vlen_out Length of output vector in floats.
38  * @param address number of input vector where output the output vector begins
39  * @param total_size size in input vectors of one frame (dumped after output vector is selected)
40  */
42  {
43  private:
44  unsigned int d_vlen_in, d_vlen_out, d_address, d_total_size;
45 
46  public:
47  select_subch_vfvf_impl(unsigned int vlen_in, unsigned int vlen_out, unsigned int address, unsigned int total_size);
49 
50  // Where all the action really happens
51  void forecast (int noutput_items, gr_vector_int &ninput_items_required);
52 
53  int general_work(int noutput_items,
54  gr_vector_int &ninput_items,
55  gr_vector_const_void_star &input_items,
56  gr_vector_void_star &output_items);
57  };
58 
59  } // namespace dab
60 } // namespace gr
61 
62 #endif /* INCLUDED_DAB_SELECT_SUBCH_VFVF_IMPL_H */
63 
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
selects vectors out of input vectors that belong to one subchannel
Definition: select_subch_vfvf.h:44
selects vectors out of input vectors that belong to one subchannel
Definition: select_subch_vfvf_impl.h:41
Definition: complex_to_interleaved_float_vcf.h:28
int general_work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
select_subch_vfvf_impl(unsigned int vlen_in, unsigned int vlen_out, unsigned int address, unsigned int total_size)