Roman Khassraf | fb6bc50 | 2015-04-14 15:44:40 +0200 | [diff] [blame] | 1 | /* -*- c++ -*- */ |
| 2 | /* |
| 3 | * @file |
Piotr Krysik | a6268a5 | 2017-08-23 16:02:19 +0200 | [diff] [blame] | 4 | * @author (C) 2015 by Roman Khassraf <rkhassraf@gmail.com> |
Roman Khassraf | fb6bc50 | 2015-04-14 15:44:40 +0200 | [diff] [blame] | 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 | |
| 28 | namespace gr { |
| 29 | namespace gsm { |
| 30 | |
| 31 | class tch_f_chans_demapper_impl : public tch_f_chans_demapper |
| 32 | { |
| 33 | private: |
Roman Khassraf | fb6bc50 | 2015-04-14 15:44:40 +0200 | [diff] [blame] | 34 | unsigned int d_timeslot; |
Your Name | 4e89883 | 2016-07-19 17:21:58 +0430 | [diff] [blame] | 35 | // Downlink |
| 36 | uint32_t d_frame_numbers_dl[3][8]; // for checking consecutive frame numbers of tch |
| 37 | uint32_t d_frame_numbers_sacch_dl[4]; // for checking consecutive frame numbers of sacch |
| 38 | pmt::pmt_t d_bursts_dl[3][8]; // for tch output headers+bursts |
| 39 | pmt::pmt_t d_bursts_sacch_dl[4]; // for sacch output bursts |
| 40 | // bool d_bursts_stolen[3]; // useless! |
| 41 | // Uplink |
| 42 | uint32_t d_frame_numbers_ul[3][8]; // for checking consecutive frame numbers of tch |
| 43 | uint32_t d_frame_numbers_sacch_ul[4]; // for checking consecutive frame numbers of sacch |
| 44 | pmt::pmt_t d_bursts_ul[3][8]; // for tch output headers+bursts |
| 45 | pmt::pmt_t d_bursts_sacch_ul[4]; // for sacch output bursts |
| 46 | |
| 47 | void sacch_tch_demapper(uint32_t fn_mod13, u_int32_t fn_mod26, uint32_t frame_nr, pmt::pmt_t *d_bursts_sacch, |
| 48 | uint32_t *d_frame_numbers_sacch, pmt::pmt_t d_bursts[3][8], |
| 49 | uint32_t d_frame_numbers[3][8], pmt::pmt_t msg_out); |
Roman Khassraf | 155a744 | 2015-05-08 19:52:01 +0200 | [diff] [blame] | 50 | |
Roman Khassraf | fb6bc50 | 2015-04-14 15:44:40 +0200 | [diff] [blame] | 51 | public: |
| 52 | tch_f_chans_demapper_impl(unsigned int timeslot_nr); |
| 53 | ~tch_f_chans_demapper_impl(); |
| 54 | |
| 55 | void filter_tch_chans(pmt::pmt_t msg); |
| 56 | }; |
| 57 | |
| 58 | } // namespace gsm |
| 59 | } // namespace gr |
| 60 | |
| 61 | #endif /* INCLUDED_GSM_UNIVERSAL_TCH_CHANS_DEMAPPER_IMPL_H */ |
| 62 | |