GNU Radio's GSM Package
GSM503Tables.h
Go to the documentation of this file.
1 /*
2  * Copyright 2012, 2014 Range Networks, Inc.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Affero General Public License as published by
6  * the Free Software Foundation, either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU Affero General Public License for more details.
13  *
14  * You should have received a copy of the GNU Affero General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16  *
17  * This use of this software may be subject to additional restrictions.
18  * See the LEGAL file in the main directory for details.
19  */
20 
21 #ifndef GSM503TABLES_H
22 #define GSM503TABLES_H
23 
24 
25 
26 namespace GSM {
27 
28 // don't change the positions in this enum
29 // (pat) The first 8 values are used as indicies into numerous tables.
30 // (pat) Encoder/decoder mode includes 8 modes for AMR + TCH_FS makes 9.
31 // TODO: Add AFS_SID type. And why is it not type 8?
33 
34 /** Tables #7-14 from GSM 05.03 */
35 extern const unsigned int gAMRBitOrderTCH_AFS12_2[244];
36 extern const unsigned int gAMRBitOrderTCH_AFS10_2[204];
37 extern const unsigned int gAMRBitOrderTCH_AFS7_95[159];
38 extern const unsigned int gAMRBitOrderTCH_AFS7_4[148];
39 extern const unsigned int gAMRBitOrderTCH_AFS6_7[134];
40 extern const unsigned int gAMRBitOrderTCH_AFS5_9[118];
41 extern const unsigned int gAMRBitOrderTCH_AFS5_15[103];
42 extern const unsigned int gAMRBitOrderTCH_AFS4_75[95];
43 
44 /** GSM 05.03 3.9.4.4 */
45 extern const unsigned int gAMRPuncturedTCH_AFS12_2[60];
46 extern const unsigned int gAMRPuncturedTCH_AFS10_2[194];
47 extern const unsigned int gAMRPuncturedTCH_AFS7_95[65];
48 extern const unsigned int gAMRPuncturedTCH_AFS7_4[26];
49 extern const unsigned int gAMRPuncturedTCH_AFS6_7[128];
50 extern const unsigned int gAMRPuncturedTCH_AFS5_9[72];
51 extern const unsigned int gAMRPuncturedTCH_AFS5_15[117];
52 extern const unsigned int gAMRPuncturedTCH_AFS4_75[87];
53 
54 /* GSM 05.03 Tables 7-14 */
55 extern const unsigned *gAMRBitOrder[8];
56 
57 /* GSM 05.03 3.9.4.2 */
58 extern const unsigned gAMRKd[9];
59 
60 /* GSM 05.03 3.9.4.2 */
61 extern const unsigned gAMRClass1ALth[8];
62 
63 /* GSM 05.03 3.9.4.4 */
64 extern const unsigned gAMRTCHUCLth[8];
65 
66 /* GSM 05.03 3.9.4.2 */
67 extern const unsigned gAMRPunctureLth[8];
68 
69 /* GSM 05.03 3.9.4.4 */
70 extern const unsigned *gAMRPuncture[8];
71 
72 }
73 
74 
75 #endif
GSM::TCH_AFS10_2
@ TCH_AFS10_2
Definition: GSM503Tables.h:32
GSM::gAMRPuncturedTCH_AFS4_75
const unsigned int gAMRPuncturedTCH_AFS4_75[87]
GSM::TCH_AFS12_2
@ TCH_AFS12_2
Definition: GSM503Tables.h:32
GSM::gAMRTCHUCLth
const unsigned gAMRTCHUCLth[8]
GSM::TCH_AFS6_7
@ TCH_AFS6_7
Definition: GSM503Tables.h:32
GSM::gAMRPuncturedTCH_AFS12_2
const unsigned int gAMRPuncturedTCH_AFS12_2[60]
GSM::TCH_AFS5_9
@ TCH_AFS5_9
Definition: GSM503Tables.h:32
GSM::TCH_AFS4_75
@ TCH_AFS4_75
Definition: GSM503Tables.h:32
GSM::gAMRBitOrderTCH_AFS6_7
const unsigned int gAMRBitOrderTCH_AFS6_7[134]
GSM::TCH_AFS7_95
@ TCH_AFS7_95
Definition: GSM503Tables.h:32
GSM::gAMRBitOrderTCH_AFS5_9
const unsigned int gAMRBitOrderTCH_AFS5_9[118]
GSM::gAMRPuncturedTCH_AFS6_7
const unsigned int gAMRPuncturedTCH_AFS6_7[128]
GSM::gAMRPuncturedTCH_AFS5_9
const unsigned int gAMRPuncturedTCH_AFS5_9[72]
GSM::gAMRBitOrderTCH_AFS12_2
const unsigned int gAMRBitOrderTCH_AFS12_2[244]
GSM::TCH_AFS5_15
@ TCH_AFS5_15
Definition: GSM503Tables.h:32
GSM::gAMRBitOrderTCH_AFS7_4
const unsigned int gAMRBitOrderTCH_AFS7_4[148]
GSM::TCH_AFS7_4
@ TCH_AFS7_4
Definition: GSM503Tables.h:32
GSM::gAMRPuncturedTCH_AFS7_95
const unsigned int gAMRPuncturedTCH_AFS7_95[65]
GSM::TCH_FS
@ TCH_FS
Definition: GSM503Tables.h:32
GSM::gAMRBitOrder
const unsigned * gAMRBitOrder[8]
GSM::gAMRPuncture
const unsigned * gAMRPuncture[8]
GSM::gAMRPunctureLth
const unsigned gAMRPunctureLth[8]
GSM::gAMRBitOrderTCH_AFS7_95
const unsigned int gAMRBitOrderTCH_AFS7_95[159]
GSM::gAMRPuncturedTCH_AFS5_15
const unsigned int gAMRPuncturedTCH_AFS5_15[117]
GSM::gAMRPuncturedTCH_AFS10_2
const unsigned int gAMRPuncturedTCH_AFS10_2[194]
GSM::gAMRClass1ALth
const unsigned gAMRClass1ALth[8]
GSM::AMRMode
AMRMode
Definition: GSM503Tables.h:32
GSM::gAMRBitOrderTCH_AFS5_15
const unsigned int gAMRBitOrderTCH_AFS5_15[103]
GSM
Definition: GSM503Tables.h:26
GSM::gAMRBitOrderTCH_AFS10_2
const unsigned int gAMRBitOrderTCH_AFS10_2[204]
GSM::gAMRPuncturedTCH_AFS7_4
const unsigned int gAMRPuncturedTCH_AFS7_4[26]
GSM::gAMRBitOrderTCH_AFS4_75
const unsigned int gAMRBitOrderTCH_AFS4_75[95]
GSM::gAMRKd
const unsigned gAMRKd[9]