GNU Radio's DAB Package
firecode_check_bb_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 * The class firecode_checker is adapted from the Qt-DAB software, Copyright Jan van Katwijk (Lazy Chair Computing J.vanKatwijk@gmail.com)
5 *
6 * This is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3, or (at your option)
9 * any later version.
10 *
11 * This software is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this software; see the file COPYING. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street,
19 * Boston, MA 02110-1301, USA.
20 */
21
22#ifndef INCLUDED_DAB_FIRECODE_CHECK_BB_IMPL_H
23#define INCLUDED_DAB_FIRECODE_CHECK_BB_IMPL_H
24
26#include "firecode-checker.h"
27
28namespace gr {
29 namespace dab {
30/*! \brief checks firecode of logical frames
31 *
32 * checks firecode of each logical frame as a qa test for the msc_decoder.
33 * According to ETSI TS 102 563 every fifth logical frame starts with 16 bit firecode
34 *
35 *
36 */
38 private:
39 int d_frame_size;
40 int d_bit_rate_n;
41 int d_nproduced, d_nconsumed;
42 bool d_firecode_passed;
44
45 public:
46 firecode_check_bb_impl(int bit_rate_n);
47
49
50 virtual bool get_firecode_passed()
51 { return d_firecode_passed; }
52
53 // Where all the action really happens
54 void forecast(int noutput_items, gr_vector_int &ninput_items_required);
55
56 int general_work(int noutput_items,
57 gr_vector_int &ninput_items,
58 gr_vector_const_void_star &input_items,
59 gr_vector_void_star &output_items);
60 };
61
62 } // namespace dab
63} // namespace gr
64
65#endif /* INCLUDED_DAB_FIRECODE_CHECK_BB_IMPL_H */
Definition firecode-checker.h:33
checks firecode of logical frames
Definition firecode_check_bb_impl.h:37
virtual bool get_firecode_passed()
Definition firecode_check_bb_impl.h:50
void forecast(int noutput_items, gr_vector_int &ninput_items_required)
firecode_check_bb_impl(int bit_rate_n)
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 firecode_check_bb.h:36
Definition complex_to_interleaved_float_vcf.h:28