GNU Radio's DAB Package
time_deinterleave_ff.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
22#ifndef INCLUDED_DAB_TIME_DEINTERLEAVE_FF_H
23#define INCLUDED_DAB_TIME_DEINTERLEAVE_FF_H
24
25#include <dab/api.h>
26#include <gnuradio/sync_block.h>
27
28namespace gr {
29 namespace dab {
30
31/*! \brief applies time deinterleaving to a vector
32 *
33 * applies time deinterleaving to a vector with its arg_max[scrambling_vector] predecessors, the scrambling_vector describes which vector element comes from which predecessors
34 *
35 * @param vector_length length of input vectors
36 * @param scrambling_vector vector with scrambling parameters (see DAB standard p.138)
37 *
38 */
39 class DAB_API time_deinterleave_ff : virtual public gr::sync_block
40 {
41 public:
42 typedef std::shared_ptr<time_deinterleave_ff> sptr;
43
44 /*!
45 * \brief Return a shared_ptr to a new instance of dab::time_deinterleave_ff.
46 *
47 * To avoid accidental use of raw pointers, dab::time_deinterleave_ff's
48 * constructor is in a private implementation
49 * class. dab::time_deinterleave_ff::make is the public interface for
50 * creating new instances.
51 */
52 static sptr make(int vector_length, const std::vector<unsigned char> &scrambling_vector);
53 };
54
55 } // namespace dab
56} // namespace gr
57
58#endif /* INCLUDED_DAB_TIME_DEINTERLEAVE_FF_H */
59
#define DAB_API
Definition api.h:19
applies time deinterleaving to a vector
Definition time_deinterleave_ff.h:40
static sptr make(int vector_length, const std::vector< unsigned char > &scrambling_vector)
Return a shared_ptr to a new instance of dab::time_deinterleave_ff.
std::shared_ptr< time_deinterleave_ff > sptr
Definition time_deinterleave_ff.h:42
Definition complex_to_interleaved_float_vcf.h:28