piotr | faacc72 | 2014-07-20 23:48:32 +0200 | [diff] [blame] | 1 | /* -*- c++ -*- */ |
| 2 | /* |
| 3 | * Copyright 2014 <+YOU OR YOUR COMPANY+>. |
| 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_GSM_CONTROL_CHANNELS_DECODER_IMPL_H |
| 22 | #define INCLUDED_GSM_CONTROL_CHANNELS_DECODER_IMPL_H |
| 23 | |
| 24 | #include <gsm/control_channels_decoder.h> |
| 25 | #include "fire_crc.h" |
| 26 | #include "cch.h" |
| 27 | |
| 28 | namespace gr { |
| 29 | namespace gsm { |
| 30 | |
| 31 | class control_channels_decoder_impl : public control_channels_decoder |
| 32 | { |
| 33 | private: |
| 34 | unsigned int d_collected_bursts_num; |
| 35 | pmt::pmt_t d_bursts[4]; |
| 36 | unsigned short interleave_trans[CONV_SIZE]; |
| 37 | FC_CTX fc_ctx; |
| 38 | void decode(pmt::pmt_t msg); |
| 39 | public: |
| 40 | control_channels_decoder_impl(); |
| 41 | ~control_channels_decoder_impl(); |
| 42 | }; |
| 43 | |
| 44 | } // namespace gsm |
| 45 | } // namespace gr |
| 46 | |
| 47 | #endif /* INCLUDED_GSM_CONTROL_CHANNELS_DECODER_IMPL_H */ |
| 48 | |