comparison src/cs/layer1/p_include/l1p_tabs.h @ 0:92470e5d0b9e

src: partial import from FC Selenite
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 01:28:16 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:92470e5d0b9e
1 /************* Revision Controle System Header *************
2 * GSM Layer 1 software
3 * L1P_TABS.H
4 *
5 * Filename l1p_tabs.h
6 * Copyright 2003 (C) Texas Instruments
7 *
8 ************* Revision Controle System Header *************/
9
10 /*********************************************************************
11 * Content:
12 * This file contains miscelaneous ROM tables for packet procedures
13 *********************************************************************/
14
15 #ifdef L1_SYNC_C
16 /*-----------------------------------------------------------------*/
17 /* Frame Number Paging Position. */
18 /*-----------------------------------------------------------------*/
19
20 const UWORD8 PACKET_PG_POSITION[MAX_NBR_PG_BLKS * (MAX_PG_BLKS_INDEX+1)] =
21 {
22 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 1.
23 // ---------------------------------------
24 // Paging
25 PCCCH_1, // Packet Paging Block Index = 0.
26 PCCCH_2, // Packet Paging Block Index = 1.
27 PCCCH_3, // Packet Paging Block Index = 2.
28 PCCCH_4, // Packet Paging Block Index = 3.
29 PCCCH_5, // Packet Paging Block Index = 4.
30 PCCCH_6, // Packet Paging Block Index = 5.
31 PCCCH_7, // Packet Paging Block Index = 6.
32 PCCCH_8, // Packet Paging Block Index = 7.
33 PCCCH_9, // Packet Paging Block Index = 8.
34 PCCCH_10, // Packet Paging Block Index = 9.
35 PCCCH_11, // Packet Paging Block Index = 10.
36
37 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 2.
38 // ---------------------------------------
39 // Paging
40 PCCCH_1, // Packet Paging Block Index = 0.
41 PCCCH_2, // Packet Paging Block Index = 1.
42 PCCCH_3, // Packet Paging Block Index = 2.
43 PCCCH_4, // Packet Paging Block Index = 3.
44 PCCCH_5, // Packet Paging Block Index = 4.
45 PCCCH_7, // Packet Paging Block Index = 5.
46 PCCCH_8, // Packet Paging Block Index = 6.
47 PCCCH_9, // Packet Paging Block Index = 7.
48 PCCCH_10, // Packet Paging Block Index = 8.
49 PCCCH_11, // Packet Paging Block Index = 9.
50 NULL, // Packet Paging Block Index = 10.
51
52 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 3.
53 // ---------------------------------------
54 // Paging
55 PCCCH_1, // Packet Paging Block Index = 0.
56 PCCCH_2, // Packet Paging Block Index = 1.
57 PCCCH_4, // Packet Paging Block Index = 2.
58 PCCCH_5, // Packet Paging Block Index = 3.
59 PCCCH_7, // Packet Paging Block Index = 4.
60 PCCCH_8, // Packet Paging Block Index = 5.
61 PCCCH_9, // Packet Paging Block Index = 6.
62 PCCCH_10, // Packet Paging Block Index = 7.
63 PCCCH_11, // Packet Paging Block Index = 8.
64 NULL, // Packet Paging Block Index = 9.
65 NULL, // Packet Paging Block Index = 10.
66
67 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 4.
68 // ---------------------------------------
69 // Paging
70 PCCCH_1, // Packet Paging Block Index = 0.
71 PCCCH_2, // Packet Paging Block Index = 1.
72 PCCCH_4, // Packet Paging Block Index = 2.
73 PCCCH_5, // Packet Paging Block Index = 3.
74 PCCCH_7, // Packet Paging Block Index = 4.
75 PCCCH_8, // Packet Paging Block Index = 5.
76 PCCCH_10, // Packet Paging Block Index = 6.
77 PCCCH_11, // Packet Paging Block Index = 7.
78 NULL, // Packet Paging Block Index = 8.
79 NULL, // Packet Paging Block Index = 9.
80 NULL, // Packet Paging Block Index = 10.
81
82 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 5.
83 // ---------------------------------------
84 // Paging
85 PCCCH_2, // Packet Paging Block Index = 0.
86 PCCCH_4, // Packet Paging Block Index = 1.
87 PCCCH_5, // Packet Paging Block Index = 2.
88 PCCCH_7, // Packet Paging Block Index = 3.
89 PCCCH_8, // Packet Paging Block Index = 4.
90 PCCCH_10, // Packet Paging Block Index = 5.
91 PCCCH_11, // Packet Paging Block Index = 6.
92 NULL, // Packet Paging Block Index = 7.
93 NULL, // Packet Paging Block Index = 8.
94 NULL, // Packet Paging Block Index = 9.
95 NULL, // Packet Paging Block Index = 10.
96
97 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 6.
98 // ---------------------------------------
99 // Paging
100 PCCCH_2, // Packet Paging Block Index = 0.
101 PCCCH_4, // Packet Paging Block Index = 1.
102 PCCCH_5, // Packet Paging Block Index = 2.
103 PCCCH_8, // Packet Paging Block Index = 3.
104 PCCCH_10, // Packet Paging Block Index = 4.
105 PCCCH_11, // Packet Paging Block Index = 5.
106 NULL, // Packet Paging Block Index = 6.
107 NULL, // Packet Paging Block Index = 7.
108 NULL, // Packet Paging Block Index = 8.
109 NULL, // Packet Paging Block Index = 9.
110 NULL, // Packet Paging Block Index = 10.
111
112 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 7.
113 // ---------------------------------------
114 // Paging
115 PCCCH_2, // Packet Paging Block Index = 0.
116 PCCCH_5, // Packet Paging Block Index = 1.
117 PCCCH_8, // Packet Paging Block Index = 2.
118 PCCCH_10, // Packet Paging Block Index = 3.
119 PCCCH_11, // Packet Paging Block Index = 4.
120 NULL, // Packet Paging Block Index = 5.
121 NULL, // Packet Paging Block Index = 6.
122 NULL, // Packet Paging Block Index = 7.
123 NULL, // Packet Paging Block Index = 8.
124 NULL, // Packet Paging Block Index = 9.
125 NULL, // Packet Paging Block Index = 10.
126
127 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 8.
128 // ---------------------------------------
129 // Paging
130 PCCCH_2, // Packet Paging Block Index = 0.
131 PCCCH_5, // Packet Paging Block Index = 1.
132 PCCCH_8, // Packet Paging Block Index = 2.
133 PCCCH_11, // Packet Paging Block Index = 3.
134 NULL, // Packet Paging Block Index = 4.
135 NULL, // Packet Paging Block Index = 5.
136 NULL, // Packet Paging Block Index = 6.
137 NULL, // Packet Paging Block Index = 7.
138 NULL, // Packet Paging Block Index = 8.
139 NULL, // Packet Paging Block Index = 9.
140 NULL, // Packet Paging Block Index = 10.
141
142 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 9.
143 // ---------------------------------------
144 // Paging
145 PCCCH_5, // Packet Paging Block Index = 0.
146 PCCCH_8, // Packet Paging Block Index = 1.
147 PCCCH_11, // Packet Paging Block Index = 2.
148 NULL, // Packet Paging Block Index = 3.
149 NULL, // Packet Paging Block Index = 4.
150 NULL, // Packet Paging Block Index = 5.
151 NULL, // Packet Paging Block Index = 6.
152 NULL, // Packet Paging Block Index = 7.
153 NULL, // Packet Paging Block Index = 8.
154 NULL, // Packet Paging Block Index = 9.
155 NULL, // Packet Paging Block Index = 10.
156
157 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 10.
158 // ---------------------------------------
159 // Paging
160 PCCCH_5, // Packet Paging Block Index = 0.
161 PCCCH_11, // Packet Paging Block Index = 1.
162 NULL, // Packet Paging Block Index = 2.
163 NULL, // Packet Paging Block Index = 3.
164 NULL, // Packet Paging Block Index = 4.
165 NULL, // Packet Paging Block Index = 5.
166 NULL, // Packet Paging Block Index = 6.
167 NULL, // Packet Paging Block Index = 7.
168 NULL, // Packet Paging Block Index = 8.
169 NULL, // Packet Paging Block Index = 9.
170 NULL, // Packet Paging Block Index = 10.
171
172 // BS_PAG_BLKS_RES + BS_PBCCH_BLKS_RES = 11.
173 // ---------------------------------------
174 // Paging
175 PCCCH_11, // Packet Paging Block Index = 0.
176 NULL, // Packet Paging Block Index = 1.
177 NULL, // Packet Paging Block Index = 2.
178 NULL, // Packet Paging Block Index = 3.
179 NULL, // Packet Paging Block Index = 4.
180 NULL, // Packet Paging Block Index = 5.
181 NULL, // Packet Paging Block Index = 6.
182 NULL, // Packet Paging Block Index = 7.
183 NULL, // Packet Paging Block Index = 8.
184 NULL, // Packet Paging Block Index = 9.
185 NULL, // Packet Paging Block Index = 10.
186 };
187
188 // Starting times of each block for ordered list of blocks
189 const UWORD8 ORDERED_BLOCK_START_TIME[12] =
190 {
191 0, // B0
192 26, // B6
193 13, // B3
194 39, // B9
195 4, // B1
196 30, // B7
197 17, // B4
198 43, // B10
199 8, // B2
200 34, // B8
201 21, // B5
202 47 // B11
203 };
204
205
206 // Serving Cell PBCCH block index
207 const UWORD8 PBCCH_BLK_INDEX[MAX_NBR_PB_BLKS * (MAX_PB_BLKS_INDEX+1)] =
208 {
209 // BS_BPCCH_BLKS = 0
210 0,
211 0,
212 0,
213 0,
214
215 // BS_BPCCH_BLKS = 1
216 0,
217 6,
218 0,
219 0,
220
221 // BS_BPCCH_BLKS = 2
222 0,
223 3,
224 6,
225 0,
226
227 // BS_BPCCH_BLKS = 3
228 0,
229 3,
230 6,
231 9
232 };
233
234 // Serving PBCCH and Neighbor PBCCH block position in the MF52
235 const UWORD8 PBCCH_POSITION[4][4] =
236 {
237 {51,00,00,00}, // BS_PBCCH_BLKS=0
238 {51,25,00,00}, // BS_PBCCH_BLKS=1
239 {51,12,25,00}, // BS_PBCCH_BLKS=2
240 {51,12,25,38} // BS_PBCCH_BLKS=3
241 };
242
243 #else
244 extern UWORD8 PACKET_PG_POSITION[MAX_NBR_PG_BLKS * (MAX_PG_BLKS_INDEX+1)];
245 extern UWORD8 ORDERED_BLOCK_START_TIME[12];
246 extern UWORD8 PBCCH_BLK_INDEX[MAX_NBR_PB_BLKS * (MAX_PB_BLKS_INDEX+1)];
247 extern UWORD8 PBCCH_POSITION[4][4];
248 #endif