blob: b9895646b33950ec334d4ee4617e1c8b737aacc2 [file] [log] [blame]
Roman Khassraffb6bc502015-04-14 15:44:40 +02001/* -*- c++ -*- */
2/*
3 * @file
4 * @author Piotr Krysik <ptrkrysik@gmail.com>
5 * @section LICENSE
6 *
7 * Gr-gsm 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 * Gr-gsm 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 gr-gsm; 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#ifndef INCLUDED_GSM_UNIVERSAL_TCH_CHANS_DEMAPPER_IMPL_H
24#define INCLUDED_GSM_UNIVERSAL_TCH_CHANS_DEMAPPER_IMPL_H
25
26#include <grgsm/demapping/tch_f_chans_demapper.h>
27
28namespace gr {
29 namespace gsm {
30
31 class tch_f_chans_demapper_impl : public tch_f_chans_demapper
32 {
33 private:
Roman Khassraffb6bc502015-04-14 15:44:40 +020034 unsigned int d_timeslot;
Roman Khassraf155a7442015-05-08 19:52:01 +020035 uint32_t d_frame_numbers[3][8];
Roman Khassraffb6bc502015-04-14 15:44:40 +020036 uint32_t d_frame_numbers_sacch[4];
Roman Khassraf155a7442015-05-08 19:52:01 +020037 pmt::pmt_t d_bursts[3][8];
Roman Khassraffb6bc502015-04-14 15:44:40 +020038 pmt::pmt_t d_bursts_sacch[4];
Roman Khassraf155a7442015-05-08 19:52:01 +020039 bool d_bursts_stolen[3];
40
Roman Khassraffb6bc502015-04-14 15:44:40 +020041 public:
42 tch_f_chans_demapper_impl(unsigned int timeslot_nr);
43 ~tch_f_chans_demapper_impl();
44
45 void filter_tch_chans(pmt::pmt_t msg);
46 };
47
48 } // namespace gsm
49} // namespace gr
50
51#endif /* INCLUDED_GSM_UNIVERSAL_TCH_CHANS_DEMAPPER_IMPL_H */
52