Harald Welte | eea18a6 | 2016-04-29 15:18:35 +0200 | [diff] [blame] | 1 | /* |
| 2 | * gsm0503.h |
| 3 | * |
| 4 | * Copyright (C) 2016 sysmocom s.f.m.c. GmbH |
| 5 | * |
| 6 | * All Rights Reserved |
| 7 | * |
| 8 | * This program is free software; you can redistribute it and/or modify |
| 9 | * it under the terms of the GNU General Public License as published by |
| 10 | * the Free Software Foundation; either version 2 of the License, or |
| 11 | * (at your option) any later version. |
| 12 | * |
| 13 | * This program is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License along |
| 19 | * with this program; if not, write to the Free Software Foundation, Inc., |
| 20 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 21 | */ |
| 22 | |
| 23 | #pragma once |
| 24 | |
| 25 | #include <stdint.h> |
| 26 | |
| 27 | #include <osmocom/core/conv.h> |
| 28 | |
Vadim Yanitskiy | c7a01d5 | 2016-09-07 23:03:05 +0700 | [diff] [blame] | 29 | /*! \file gsm0503.h |
Harald Welte | eea18a6 | 2016-04-29 15:18:35 +0200 | [diff] [blame] | 30 | * Osmocom convolutional encoder/decoder for xCCH channels, see 3GPP TS 05.03 |
| 31 | */ |
| 32 | |
| 33 | /*! \brief structure describing convolutional code xCCH |
| 34 | * |
| 35 | * Non-recursive code, flushed, not punctured code. |
| 36 | */ |
| 37 | extern const struct osmo_conv_code gsm0503_xcch; |
| 38 | |
Vadim Yanitskiy | f3d38c4 | 2016-09-07 23:09:49 +0700 | [diff] [blame] | 39 | /*! \brief structure describing convolutional code RACH |
| 40 | */ |
| 41 | extern const struct osmo_conv_code gsm0503_rach; |
| 42 | |
| 43 | /*! \brief structure describing convolutional code SCH |
| 44 | */ |
| 45 | extern const struct osmo_conv_code gsm0503_sch; |
| 46 | |
Harald Welte | eea18a6 | 2016-04-29 15:18:35 +0200 | [diff] [blame] | 47 | /*! \brief structures describing convolutional codes CS2/3 |
| 48 | */ |
| 49 | extern const struct osmo_conv_code gsm0503_cs2; |
| 50 | extern const struct osmo_conv_code gsm0503_cs3; |
| 51 | |
Vadim Yanitskiy | f3d38c4 | 2016-09-07 23:09:49 +0700 | [diff] [blame] | 52 | /*! \brief structure describing convolutional code TCH/FR |
| 53 | */ |
| 54 | extern const struct osmo_conv_code gsm0503_tch_fr; |
| 55 | |
| 56 | /*! \brief structure describing convolutional code TCH/HR |
| 57 | */ |
| 58 | extern const struct osmo_conv_code gsm0503_tch_hr; |
| 59 | |
Harald Welte | eea18a6 | 2016-04-29 15:18:35 +0200 | [diff] [blame] | 60 | /*! \brief structure describing convolutional code TCH/AFS 12.2 |
| 61 | */ |
| 62 | extern const struct osmo_conv_code gsm0503_tch_afs_12_2; |
| 63 | |
| 64 | /*! \brief structure describing convolutional code TCH/AFS 10.2 |
| 65 | */ |
| 66 | extern const struct osmo_conv_code gsm0503_tch_afs_10_2; |
| 67 | |
| 68 | /*! \brief structure describing convolutional code TCH/AFS 7.95 |
| 69 | */ |
| 70 | extern const struct osmo_conv_code gsm0503_tch_afs_7_95; |
| 71 | |
| 72 | /*! \brief structure describing convolutional code TCH/AFS 7.4 |
| 73 | */ |
| 74 | extern const struct osmo_conv_code gsm0503_tch_afs_7_4; |
| 75 | |
| 76 | /*! \brief structure describing convolutional code TCH/AFS 6.7 |
| 77 | */ |
| 78 | extern const struct osmo_conv_code gsm0503_tch_afs_6_7; |
| 79 | |
| 80 | /*! \brief structure describing convolutional code TCH/AFS 5.9 |
| 81 | */ |
| 82 | extern const struct osmo_conv_code gsm0503_tch_afs_5_9; |
| 83 | |
| 84 | /*! \brief structure describing convolutional code TCH/AFS 5.15 |
| 85 | */ |
| 86 | extern const struct osmo_conv_code gsm0503_tch_afs_5_15; |
| 87 | |
| 88 | /*! \brief structure describing convolutional code TCH/AFS 4.75 |
| 89 | */ |
| 90 | extern const struct osmo_conv_code gsm0503_tch_afs_4_75; |
Vadim Yanitskiy | f3d38c4 | 2016-09-07 23:09:49 +0700 | [diff] [blame] | 91 | |
| 92 | /*! \brief structure describing convolutional code TCH/AHS 7.95 |
| 93 | */ |
| 94 | extern const struct osmo_conv_code gsm0503_tch_ahs_7_95; |
| 95 | |
| 96 | /*! \brief structure describing convolutional code TCH/AHS 7.4 |
| 97 | */ |
| 98 | extern const struct osmo_conv_code gsm0503_tch_ahs_7_4; |
| 99 | |
| 100 | /*! \brief structure describing convolutional code TCH/AHS 6.7 |
| 101 | */ |
| 102 | extern const struct osmo_conv_code gsm0503_tch_ahs_6_7; |
| 103 | |
| 104 | /*! \brief structure describing convolutional code TCH/AHS 5.9 |
| 105 | */ |
| 106 | extern const struct osmo_conv_code gsm0503_tch_ahs_5_9; |
| 107 | |
| 108 | /*! \brief structure describing convolutional code TCH/AHS 5.15 |
| 109 | */ |
| 110 | extern const struct osmo_conv_code gsm0503_tch_ahs_5_15; |
| 111 | |
| 112 | /*! \brief structure describing convolutional code TCH/AHS 4.75 |
| 113 | */ |
| 114 | extern const struct osmo_conv_code gsm0503_tch_ahs_4_75; |