Piotr Krysik | a6268a5 | 2017-08-23 16:02:19 +0200 | [diff] [blame^] | 1 | /* |
| 2 | * (C) 2013 by Andreas Eversberg <jolly@eversberg.eu> |
| 3 | * (C) 2016 by Tom Tsou <tom.tsou@ettus.com> |
| 4 | * |
| 5 | * All Rights Reserved |
| 6 | * |
| 7 | * This program 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 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program 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 along |
| 18 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | */ |
| 21 | |
Piotr Krysik | 70c25a1 | 2017-01-03 08:01:23 +0100 | [diff] [blame] | 22 | #pragma once |
| 23 | |
| 24 | #include <stdint.h> |
| 25 | #include <osmocom/core/bits.h> |
| 26 | |
| 27 | extern const ubit_t gsm0503_pdtch_hl_hn_ubit[4][8]; |
| 28 | extern const ubit_t gsm0503_pdtch_edge_hl_hn_ubit[3][8]; |
| 29 | extern const sbit_t gsm0503_pdtch_hl_hn_sbit[4][8]; |
| 30 | extern const sbit_t gsm0503_pdtch_edge_hl_hn_sbit[3][8]; |
| 31 | extern const ubit_t gsm0503_usf2six[8][6]; |
| 32 | extern const ubit_t gsm0503_usf2twelve_ubit[8][12]; |
| 33 | extern const sbit_t gsm0503_usf2twelve_sbit[8][12]; |
| 34 | extern const uint8_t gsm0503_puncture_cs2[588]; |
| 35 | extern const uint8_t gsm0503_puncture_cs3[676]; |
| 36 | extern const uint8_t gsm0503_puncture_mcs1_dl_hdr[108]; |
| 37 | extern const uint8_t gsm0503_puncture_mcs1_ul_hdr[117]; |
| 38 | extern const uint8_t gsm0503_puncture_mcs1_p1[588]; |
| 39 | extern const uint8_t gsm0503_puncture_mcs1_p2[588]; |
| 40 | extern const uint8_t gsm0503_puncture_mcs2_p1[732]; |
| 41 | extern const uint8_t gsm0503_puncture_mcs2_p2[732]; |
| 42 | extern const uint8_t gsm0503_puncture_mcs3_p1[948]; |
| 43 | extern const uint8_t gsm0503_puncture_mcs3_p2[948]; |
| 44 | extern const uint8_t gsm0503_puncture_mcs3_p3[948]; |
| 45 | extern const uint8_t gsm0503_puncture_mcs4_p1[1116]; |
| 46 | extern const uint8_t gsm0503_puncture_mcs4_p2[1116]; |
| 47 | extern const uint8_t gsm0503_puncture_mcs4_p3[1116]; |
| 48 | extern const uint8_t gsm0503_puncture_mcs5_p1[1404]; |
| 49 | extern const uint8_t gsm0503_puncture_mcs5_p2[1404]; |
| 50 | extern const uint8_t gsm0503_puncture_mcs6_p1[1836]; |
| 51 | extern const uint8_t gsm0503_puncture_mcs6_p2[1836]; |
| 52 | extern const uint8_t gsm0503_puncture_mcs7_dl_hdr[135]; |
| 53 | extern const uint8_t gsm0503_puncture_mcs7_ul_hdr[162]; |
| 54 | extern const uint8_t gsm0503_puncture_mcs7_p1[1404]; |
| 55 | extern const uint8_t gsm0503_puncture_mcs7_p2[1404]; |
| 56 | extern const uint8_t gsm0503_puncture_mcs7_p3[1404]; |
| 57 | extern const uint8_t gsm0503_puncture_mcs8_p1[1692]; |
| 58 | extern const uint8_t gsm0503_puncture_mcs8_p2[1692]; |
| 59 | extern const uint8_t gsm0503_puncture_mcs8_p3[1692]; |
| 60 | extern const uint8_t gsm0503_puncture_mcs9_p1[1836]; |
| 61 | extern const uint8_t gsm0503_puncture_mcs9_p2[1836]; |
| 62 | extern const uint8_t gsm0503_puncture_mcs9_p3[1836]; |
| 63 | extern const uint16_t gsm0503_interleave_mcs5[1248]; |
| 64 | extern const uint8_t gsm0503_gsm_fr_map[76]; |
| 65 | extern const uint8_t gsm0503_gsm_efr_protected_bits[65]; |
| 66 | extern const ubit_t gsm0503_afs_ic_ubit[4][8]; |
| 67 | extern const sbit_t gsm0503_afs_ic_sbit[4][8]; |
| 68 | extern const ubit_t gsm0503_ahs_ic_ubit[4][4]; |
| 69 | extern const sbit_t gsm0503_ahs_ic_sbit[4][4]; |
| 70 | extern const uint8_t gsm0503_tch_hr_interleaving[228][2]; |
| 71 | extern const ubit_t gsm0503_mcs5_usf_precode_table[8][36]; |