FreeCalypso > hg > tcs211-l1-reconst
comparison chipsetsw/layer1/cust0/l1_rf12.c @ 200:87fffabe4aec
l1_cust.c & l1_rf12.c: initial import from MV100 source
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Wed, 08 Jun 2016 05:18:40 +0000 |
parents | |
children | 47ac87c0bc1b |
comparison
equal
deleted
inserted
replaced
199:58303c49e536 | 200:87fffabe4aec |
---|---|
1 #if (OP_L1_STANDALONE == 1) | |
2 // Define the correct enumeration of PA. Consult tpudrv12.h for the enumeration. | |
3 #if ((BOARD == 40) || (BOARD == 41) || (BOARD == 45)) // EvaRita + D-sample or EvaConso | |
4 #define PA 3 | |
5 #else | |
6 #define PA 0 | |
7 #endif | |
8 #else | |
9 #include "rf.cfg" | |
10 //#define PA 3 // Hitachi | |
11 #endif | |
12 | |
13 T_RF rf = | |
14 { | |
15 RF_RITA_10, //RF revision | |
16 RF_HW_BAND_SUPPORT, // radio_band_support E-GSM/DCS + PCS | |
17 | |
18 { //RX structure | |
19 { //AGC structure | |
20 140, // low_agc_noise_thr; | |
21 110, // high_agc_sat_thr; | |
22 6, // low_agc; | |
23 34, // high_agc; | |
24 //IL2AGC tables | |
25 { // below is: il2agc_pwr[121]; | |
26 // il2agc_max[121]; | |
27 // il2agc_av[121]; | |
28 // il2agc_pwr | |
29 // Note this is shared between PCN and EGSM. | |
30 14, /* EGSM_MAX IL=0 */ | |
31 14, /* EGSM_MAX IL=-1 */ | |
32 14, /* EGSM_MAX IL=-2 */ | |
33 14, /* EGSM_MAX IL=-3 */ | |
34 14, /* EGSM_MAX IL=-4 */ | |
35 14, /* EGSM_MAX IL=-5 */ | |
36 14, /* EGSM_MAX IL=-6 */ | |
37 14, /* EGSM_MAX IL=-7 */ | |
38 14, /* EGSM_MAX IL=-8 */ | |
39 14, /* EGSM_MAX IL=-9 */ | |
40 14, /* EGSM_MAX IL=-10 */ | |
41 14, /* EGSM_MAX IL=-11 */ | |
42 14, /* EGSM_MAX IL=-12 */ | |
43 14, /* EGSM_MAX IL=-13 */ | |
44 14, /* EGSM_MAX IL=-14 */ | |
45 14, /* EGSM_MAX IL=-15 */ | |
46 14, /* EGSM_MAX IL=-16 */ | |
47 14, /* EGSM_MAX IL=-17 */ | |
48 14, /* EGSM_MAX IL=-18 */ | |
49 14, /* EGSM_MAX IL=-19 */ | |
50 14, /* EGSM_MAX IL=-20 */ | |
51 14, /* EGSM_MAX IL=-21 */ | |
52 14, /* EGSM_MAX IL=-22 */ | |
53 14, /* EGSM_MAX IL=-23 */ | |
54 14, /* EGSM_MAX IL=-24 */ | |
55 14, /* EGSM_MAX IL=-25 */ | |
56 14, /* EGSM_MAX IL=-26 */ | |
57 14, /* EGSM_MAX IL=-27 */ | |
58 14, /* EGSM_MAX IL=-28 */ | |
59 14, /* EGSM_MAX IL=-29 */ | |
60 14, /* EGSM_MAX IL=-30 */ | |
61 14, /* EGSM_MAX IL=-31 */ | |
62 14, /* EGSM_MAX IL=-32 */ | |
63 14, /* EGSM_MAX IL=-33 */ | |
64 14, /* EGSM_MAX IL=-34 */ | |
65 14, /* EGSM_MAX IL=-35 */ | |
66 14, /* EGSM_MAX IL=-36 */ | |
67 14, /* EGSM_MAX IL=-37 */ | |
68 14, /* EGSM_MAX IL=-38 */ | |
69 14, /* EGSM_MAX IL=-39 */ | |
70 14, /* EGSM_MAX IL=-40 */ | |
71 14, /* EGSM_MAX IL=-41 */ | |
72 14, /* EGSM_MAX IL=-42 */ | |
73 14, /* EGSM_MAX IL=-43 */ | |
74 14, /* EGSM_MAX IL=-44 */ | |
75 14, /* EGSM_MAX IL=-45 */ | |
76 14, /* EGSM_MAX IL=-46 */ | |
77 14, /* EGSM_MAX IL=-47 */ | |
78 14, /* EGSM_MAX IL=-48 */ | |
79 14, /* EGSM_MAX IL=-49 */ | |
80 14, /* EGSM_MAX IL=-50 */ | |
81 14, /* EGSM_MAX IL=-51 */ | |
82 14, /* EGSM_MAX IL=-52 */ | |
83 14, /* EGSM_MAX IL=-53 */ | |
84 14, /* EGSM_MAX IL=-54 */ | |
85 16, /* EGSM_MAX IL=-55 */ | |
86 16, /* EGSM_MAX IL=-56 */ | |
87 18, /* EGSM_MAX IL=-57 */ | |
88 18, /* EGSM_MAX IL=-58 */ | |
89 20, /* EGSM_MAX IL=-59 */ | |
90 20, /* EGSM_MAX IL=-60 */ | |
91 22, /* EGSM_MAX IL=-61 */ | |
92 22, /* EGSM_MAX IL=-62 */ | |
93 24, /* EGSM_MAX IL=-63 */ | |
94 24, /* EGSM_MAX IL=-64 */ | |
95 26, /* EGSM_MAX IL=-65 */ | |
96 26, /* EGSM_MAX IL=-66 */ | |
97 28, /* EGSM_MAX IL=-67 */ | |
98 28, /* EGSM_MAX IL=-68 */ | |
99 30, /* EGSM_MAX IL=-69 */ | |
100 30, /* EGSM_MAX IL=-70 */ | |
101 32, /* EGSM_MAX IL=-71 */ | |
102 32, /* EGSM_MAX IL=-72 */ | |
103 34, /* EGSM_MAX IL=-73 */ | |
104 34, /* EGSM_MAX IL=-74 */ | |
105 36, /* EGSM_MAX IL=-75 */ | |
106 36, /* EGSM_MAX IL=-76 */ | |
107 38, /* EGSM_MAX IL=-77 */ | |
108 38, /* EGSM_MAX IL=-78 */ | |
109 40, /* EGSM_MAX IL=-79 */ | |
110 40, /* EGSM_MAX IL=-80 */ | |
111 40, /* EGSM_MAX IL=-81 */ | |
112 40, /* EGSM_MAX IL=-82 */ | |
113 40, /* EGSM_MAX IL=-83 */ | |
114 40, /* EGSM_MAX IL=-84 */ | |
115 40, /* EGSM_MAX IL=-85 */ | |
116 40, /* EGSM_MAX IL=-86 */ | |
117 40, /* EGSM_MAX IL=-87 */ | |
118 40, /* EGSM_MAX IL=-88 */ | |
119 40, /* EGSM_MAX IL=-89 */ | |
120 40, /* EGSM_MAX IL=-90 */ | |
121 40, /* EGSM_MAX IL=-91 */ | |
122 40, /* EGSM_MAX IL=-92 */ | |
123 40, /* EGSM_MAX IL=-93 */ | |
124 40, /* EGSM_MAX IL=-94 */ | |
125 40, /* EGSM_MAX IL=-95 */ | |
126 40, /* EGSM_MAX IL=-96 */ | |
127 40, /* EGSM_MAX IL=-97 */ | |
128 40, /* EGSM_MAX IL=-98 */ | |
129 40, /* EGSM_MAX IL=-99 */ | |
130 40, /* EGSM_MAX IL=-100 */ | |
131 40, /* EGSM_MAX IL=-101 */ | |
132 40, /* EGSM_MAX IL=-102 */ | |
133 40, /* EGSM_MAX IL=-103 */ | |
134 40, /* EGSM_MAX IL=-104 */ | |
135 40, /* EGSM_MAX IL=-105 */ | |
136 40, /* EGSM_MAX IL=-106 */ | |
137 40, /* EGSM_MAX IL=-107 */ | |
138 40, /* EGSM_MAX IL=-108 */ | |
139 40, /* EGSM_MAX IL=-109 */ | |
140 40, /* EGSM_MAX IL=-110 */ | |
141 40, /* EGSM_MAX IL=-111 */ | |
142 40, /* EGSM_MAX IL=-112 */ | |
143 40, /* EGSM_MAX IL=-113 */ | |
144 40, /* EGSM_MAX IL=-114 */ | |
145 40, /* EGSM_MAX IL=-115 */ | |
146 40, /* EGSM_MAX IL=-116 */ | |
147 40, /* EGSM_MAX IL=-117 */ | |
148 40, /* EGSM_MAX IL=-118 */ | |
149 40, /* EGSM_MAX IL=-119 */ | |
150 40 /* EGSM_MAX IL=-120 */ | |
151 }, | |
152 { // il2agc_max | |
153 // Note this is shared between PCN and EGSM. | |
154 14, /* EGSM_MAX IL=0 */ | |
155 14, /* EGSM_MAX IL=-1 */ | |
156 14, /* EGSM_MAX IL=-2 */ | |
157 14, /* EGSM_MAX IL=-3 */ | |
158 14, /* EGSM_MAX IL=-4 */ | |
159 14, /* EGSM_MAX IL=-5 */ | |
160 14, /* EGSM_MAX IL=-6 */ | |
161 14, /* EGSM_MAX IL=-7 */ | |
162 14, /* EGSM_MAX IL=-8 */ | |
163 14, /* EGSM_MAX IL=-9 */ | |
164 14, /* EGSM_MAX IL=-10 */ | |
165 14, /* EGSM_MAX IL=-11 */ | |
166 14, /* EGSM_MAX IL=-12 */ | |
167 14, /* EGSM_MAX IL=-13 */ | |
168 14, /* EGSM_MAX IL=-14 */ | |
169 14, /* EGSM_MAX IL=-15 */ | |
170 14, /* EGSM_MAX IL=-16 */ | |
171 14, /* EGSM_MAX IL=-17 */ | |
172 14, /* EGSM_MAX IL=-18 */ | |
173 14, /* EGSM_MAX IL=-19 */ | |
174 14, /* EGSM_MAX IL=-20 */ | |
175 14, /* EGSM_MAX IL=-21 */ | |
176 14, /* EGSM_MAX IL=-22 */ | |
177 14, /* EGSM_MAX IL=-23 */ | |
178 14, /* EGSM_MAX IL=-24 */ | |
179 14, /* EGSM_MAX IL=-25 */ | |
180 14, /* EGSM_MAX IL=-26 */ | |
181 14, /* EGSM_MAX IL=-27 */ | |
182 14, /* EGSM_MAX IL=-28 */ | |
183 14, /* EGSM_MAX IL=-29 */ | |
184 14, /* EGSM_MAX IL=-30 */ | |
185 14, /* EGSM_MAX IL=-31 */ | |
186 14, /* EGSM_MAX IL=-32 */ | |
187 14, /* EGSM_MAX IL=-33 */ | |
188 14, /* EGSM_MAX IL=-34 */ | |
189 14, /* EGSM_MAX IL=-35 */ | |
190 14, /* EGSM_MAX IL=-36 */ | |
191 14, /* EGSM_MAX IL=-37 */ | |
192 14, /* EGSM_MAX IL=-38 */ | |
193 14, /* EGSM_MAX IL=-39 */ | |
194 14, /* EGSM_MAX IL=-40 */ | |
195 14, /* EGSM_MAX IL=-41 */ | |
196 14, /* EGSM_MAX IL=-42 */ | |
197 14, /* EGSM_MAX IL=-43 */ | |
198 14, /* EGSM_MAX IL=-44 */ | |
199 14, /* EGSM_MAX IL=-45 */ | |
200 14, /* EGSM_MAX IL=-46 */ | |
201 14, /* EGSM_MAX IL=-47 */ | |
202 14, /* EGSM_MAX IL=-48 */ | |
203 14, /* EGSM_MAX IL=-49 */ | |
204 14, /* EGSM_MAX IL=-50 */ | |
205 14, /* EGSM_MAX IL=-51 */ | |
206 14, /* EGSM_MAX IL=-52 */ | |
207 14, /* EGSM_MAX IL=-53 */ | |
208 14, /* EGSM_MAX IL=-54 */ | |
209 16, /* EGSM_MAX IL=-55 */ | |
210 16, /* EGSM_MAX IL=-56 */ | |
211 18, /* EGSM_MAX IL=-57 */ | |
212 18, /* EGSM_MAX IL=-58 */ | |
213 20, /* EGSM_MAX IL=-59 */ | |
214 20, /* EGSM_MAX IL=-60 */ | |
215 22, /* EGSM_MAX IL=-61 */ | |
216 22, /* EGSM_MAX IL=-62 */ | |
217 24, /* EGSM_MAX IL=-63 */ | |
218 24, /* EGSM_MAX IL=-64 */ | |
219 26, /* EGSM_MAX IL=-65 */ | |
220 26, /* EGSM_MAX IL=-66 */ | |
221 28, /* EGSM_MAX IL=-67 */ | |
222 28, /* EGSM_MAX IL=-68 */ | |
223 30, /* EGSM_MAX IL=-69 */ | |
224 30, /* EGSM_MAX IL=-70 */ | |
225 32, /* EGSM_MAX IL=-71 */ | |
226 32, /* EGSM_MAX IL=-72 */ | |
227 34, /* EGSM_MAX IL=-73 */ | |
228 34, /* EGSM_MAX IL=-74 */ | |
229 36, /* EGSM_MAX IL=-75 */ | |
230 36, /* EGSM_MAX IL=-76 */ | |
231 38, /* EGSM_MAX IL=-77 */ | |
232 38, /* EGSM_MAX IL=-78 */ | |
233 40, /* EGSM_MAX IL=-79 */ | |
234 40, /* EGSM_MAX IL=-80 */ | |
235 40, /* EGSM_MAX IL=-81 */ | |
236 40, /* EGSM_MAX IL=-82 */ | |
237 40, /* EGSM_MAX IL=-83 */ | |
238 40, /* EGSM_MAX IL=-84 */ | |
239 40, /* EGSM_MAX IL=-85 */ | |
240 40, /* EGSM_MAX IL=-86 */ | |
241 40, /* EGSM_MAX IL=-87 */ | |
242 40, /* EGSM_MAX IL=-88 */ | |
243 40, /* EGSM_MAX IL=-89 */ | |
244 40, /* EGSM_MAX IL=-90 */ | |
245 40, /* EGSM_MAX IL=-91 */ | |
246 40, /* EGSM_MAX IL=-92 */ | |
247 40, /* EGSM_MAX IL=-93 */ | |
248 40, /* EGSM_MAX IL=-94 */ | |
249 40, /* EGSM_MAX IL=-95 */ | |
250 40, /* EGSM_MAX IL=-96 */ | |
251 40, /* EGSM_MAX IL=-97 */ | |
252 40, /* EGSM_MAX IL=-98 */ | |
253 40, /* EGSM_MAX IL=-99 */ | |
254 40, /* EGSM_MAX IL=-100 */ | |
255 40, /* EGSM_MAX IL=-101 */ | |
256 40, /* EGSM_MAX IL=-102 */ | |
257 40, /* EGSM_MAX IL=-103 */ | |
258 40, /* EGSM_MAX IL=-104 */ | |
259 40, /* EGSM_MAX IL=-105 */ | |
260 40, /* EGSM_MAX IL=-106 */ | |
261 40, /* EGSM_MAX IL=-107 */ | |
262 40, /* EGSM_MAX IL=-108 */ | |
263 40, /* EGSM_MAX IL=-109 */ | |
264 40, /* EGSM_MAX IL=-110 */ | |
265 40, /* EGSM_MAX IL=-111 */ | |
266 40, /* EGSM_MAX IL=-112 */ | |
267 40, /* EGSM_MAX IL=-113 */ | |
268 40, /* EGSM_MAX IL=-114 */ | |
269 40, /* EGSM_MAX IL=-115 */ | |
270 40, /* EGSM_MAX IL=-116 */ | |
271 40, /* EGSM_MAX IL=-117 */ | |
272 40, /* EGSM_MAX IL=-118 */ | |
273 40, /* EGSM_MAX IL=-119 */ | |
274 40 /* EGSM_MAX IL=-120 */ | |
275 }, | |
276 { // il2agc_av | |
277 // Note this is shared between PCN and EGSM. | |
278 14, /* EGSM_MAX IL=0 */ | |
279 14, /* EGSM_MAX IL=-1 */ | |
280 14, /* EGSM_MAX IL=-2 */ | |
281 14, /* EGSM_MAX IL=-3 */ | |
282 14, /* EGSM_MAX IL=-4 */ | |
283 14, /* EGSM_MAX IL=-5 */ | |
284 14, /* EGSM_MAX IL=-6 */ | |
285 14, /* EGSM_MAX IL=-7 */ | |
286 14, /* EGSM_MAX IL=-8 */ | |
287 14, /* EGSM_MAX IL=-9 */ | |
288 14, /* EGSM_MAX IL=-10 */ | |
289 14, /* EGSM_MAX IL=-11 */ | |
290 14, /* EGSM_MAX IL=-12 */ | |
291 14, /* EGSM_MAX IL=-13 */ | |
292 14, /* EGSM_MAX IL=-14 */ | |
293 14, /* EGSM_MAX IL=-15 */ | |
294 14, /* EGSM_MAX IL=-16 */ | |
295 14, /* EGSM_MAX IL=-17 */ | |
296 14, /* EGSM_MAX IL=-18 */ | |
297 14, /* EGSM_MAX IL=-19 */ | |
298 14, /* EGSM_MAX IL=-20 */ | |
299 14, /* EGSM_MAX IL=-21 */ | |
300 14, /* EGSM_MAX IL=-22 */ | |
301 14, /* EGSM_MAX IL=-23 */ | |
302 14, /* EGSM_MAX IL=-24 */ | |
303 14, /* EGSM_MAX IL=-25 */ | |
304 14, /* EGSM_MAX IL=-26 */ | |
305 14, /* EGSM_MAX IL=-27 */ | |
306 14, /* EGSM_MAX IL=-28 */ | |
307 14, /* EGSM_MAX IL=-29 */ | |
308 14, /* EGSM_MAX IL=-30 */ | |
309 14, /* EGSM_MAX IL=-31 */ | |
310 14, /* EGSM_MAX IL=-32 */ | |
311 14, /* EGSM_MAX IL=-33 */ | |
312 14, /* EGSM_MAX IL=-34 */ | |
313 14, /* EGSM_MAX IL=-35 */ | |
314 14, /* EGSM_MAX IL=-36 */ | |
315 14, /* EGSM_MAX IL=-37 */ | |
316 14, /* EGSM_MAX IL=-38 */ | |
317 14, /* EGSM_MAX IL=-39 */ | |
318 14, /* EGSM_MAX IL=-40 */ | |
319 14, /* EGSM_MAX IL=-41 */ | |
320 14, /* EGSM_MAX IL=-42 */ | |
321 14, /* EGSM_MAX IL=-43 */ | |
322 14, /* EGSM_MAX IL=-44 */ | |
323 14, /* EGSM_MAX IL=-45 */ | |
324 14, /* EGSM_MAX IL=-46 */ | |
325 14, /* EGSM_MAX IL=-47 */ | |
326 14, /* EGSM_MAX IL=-48 */ | |
327 14, /* EGSM_MAX IL=-49 */ | |
328 14, /* EGSM_MAX IL=-50 */ | |
329 14, /* EGSM_MAX IL=-51 */ | |
330 14, /* EGSM_MAX IL=-52 */ | |
331 14, /* EGSM_MAX IL=-53 */ | |
332 14, /* EGSM_MAX IL=-54 */ | |
333 16, /* EGSM_MAX IL=-55 */ | |
334 16, /* EGSM_MAX IL=-56 */ | |
335 18, /* EGSM_MAX IL=-57 */ | |
336 18, /* EGSM_MAX IL=-58 */ | |
337 20, /* EGSM_MAX IL=-59 */ | |
338 20, /* EGSM_MAX IL=-60 */ | |
339 22, /* EGSM_MAX IL=-61 */ | |
340 22, /* EGSM_MAX IL=-62 */ | |
341 24, /* EGSM_MAX IL=-63 */ | |
342 24, /* EGSM_MAX IL=-64 */ | |
343 26, /* EGSM_MAX IL=-65 */ | |
344 26, /* EGSM_MAX IL=-66 */ | |
345 28, /* EGSM_MAX IL=-67 */ | |
346 28, /* EGSM_MAX IL=-68 */ | |
347 30, /* EGSM_MAX IL=-69 */ | |
348 30, /* EGSM_MAX IL=-70 */ | |
349 32, /* EGSM_MAX IL=-71 */ | |
350 32, /* EGSM_MAX IL=-72 */ | |
351 34, /* EGSM_MAX IL=-73 */ | |
352 34, /* EGSM_MAX IL=-74 */ | |
353 36, /* EGSM_MAX IL=-75 */ | |
354 36, /* EGSM_MAX IL=-76 */ | |
355 38, /* EGSM_MAX IL=-77 */ | |
356 38, /* EGSM_MAX IL=-78 */ | |
357 40, /* EGSM_MAX IL=-79 */ | |
358 40, /* EGSM_MAX IL=-80 */ | |
359 40, /* EGSM_MAX IL=-81 */ | |
360 40, /* EGSM_MAX IL=-82 */ | |
361 40, /* EGSM_MAX IL=-83 */ | |
362 40, /* EGSM_MAX IL=-84 */ | |
363 40, /* EGSM_MAX IL=-85 */ | |
364 40, /* EGSM_MAX IL=-86 */ | |
365 40, /* EGSM_MAX IL=-87 */ | |
366 40, /* EGSM_MAX IL=-88 */ | |
367 40, /* EGSM_MAX IL=-89 */ | |
368 40, /* EGSM_MAX IL=-90 */ | |
369 40, /* EGSM_MAX IL=-91 */ | |
370 40, /* EGSM_MAX IL=-92 */ | |
371 40, /* EGSM_MAX IL=-93 */ | |
372 40, /* EGSM_MAX IL=-94 */ | |
373 40, /* EGSM_MAX IL=-95 */ | |
374 40, /* EGSM_MAX IL=-96 */ | |
375 40, /* EGSM_MAX IL=-97 */ | |
376 40, /* EGSM_MAX IL=-98 */ | |
377 40, /* EGSM_MAX IL=-99 */ | |
378 40, /* EGSM_MAX IL=-100 */ | |
379 40, /* EGSM_MAX IL=-101 */ | |
380 40, /* EGSM_MAX IL=-102 */ | |
381 40, /* EGSM_MAX IL=-103 */ | |
382 40, /* EGSM_MAX IL=-104 */ | |
383 40, /* EGSM_MAX IL=-105 */ | |
384 40, /* EGSM_MAX IL=-106 */ | |
385 40, /* EGSM_MAX IL=-107 */ | |
386 40, /* EGSM_MAX IL=-108 */ | |
387 40, /* EGSM_MAX IL=-109 */ | |
388 40, /* EGSM_MAX IL=-110 */ | |
389 40, /* EGSM_MAX IL=-111 */ | |
390 40, /* EGSM_MAX IL=-112 */ | |
391 40, /* EGSM_MAX IL=-113 */ | |
392 40, /* EGSM_MAX IL=-114 */ | |
393 40, /* EGSM_MAX IL=-115 */ | |
394 40, /* EGSM_MAX IL=-116 */ | |
395 40, /* EGSM_MAX IL=-117 */ | |
396 40, /* EGSM_MAX IL=-118 */ | |
397 40, /* EGSM_MAX IL=-119 */ | |
398 40 /* EGSM_MAX IL=-120 */ | |
399 } | |
400 }, | |
401 }, | |
402 { | |
403 {0, 0}, // ramp up and down delays | |
404 GUARD_BITS, // number of guard bits needed for ramp up | |
405 PRG_TX // propagation delay PRG_TX | |
406 }, | |
407 { //AFC parameters | |
408 EEPROM_AFC, | |
409 C_Psi_sta_inv, // (1/C_Psi_sta) | |
410 C_Psi_st, // C_Psi_sta * 0.8 F0.16 | |
411 C_Psi_st_32, // F0.32 | |
412 C_Psi_st_inv // (1/C_Psi_st) | |
413 | |
414 #if (VCXO_ALGO==1) | |
415 ,C_AFC_DAC_CENTER, // VCXO startup parameter - best guess | |
416 C_AFC_DAC_MIN, // VCXO startup parameter - 15ppm | |
417 C_AFC_DAC_MAX, // VCXO startup parameter + 15ppm | |
418 C_AFC_SNR_THR // snr - Default threshold value | |
419 #endif | |
420 } | |
421 }; | |
422 | |
423 T_RF_BAND rf_band[GSM_BANDS]; //uninitialised rf struct for bands | |
424 | |
425 const T_RF_BAND rf_900 = | |
426 { | |
427 { //RX structure | |
428 //T_RX_CAL_PARAMS rx_cal_params | |
429 { | |
430 193, //g_magic | |
431 40, //lna_gain_max * 2 | |
432 40, //lna_th_high | |
433 44 //lna_th_low | |
434 }, | |
435 { //T_RF_AGC_BAND agc_bands[RF_RX_CAL_CHAN_SIZE]; | |
436 // Remark: ARFCN=0 (GSM-E) is maintained by 1st GSM subbband. | |
437 // upper_bound, agc_calib | |
438 { 10, 0}, // sub-band1 up to arfcn = 10, Agc calibration = 0db | |
439 { 30, 0}, // sub-band2 up to arfcn = 30, Agc calibration = 0db | |
440 { 51, 0}, // sub-band3 up to arfcn = 51, Agc calibration = 0db | |
441 { 71, 0}, // etc. | |
442 { 90, 0}, // | |
443 { 112, 0}, // | |
444 { 124, 0}, // | |
445 { 991, 0}, // | |
446 { 992, 0}, // | |
447 {1023, 0}, // | |
448 }, | |
449 { //RX temperature compensation | |
450 { -15 , 0 }, | |
451 { -5 , 0 }, | |
452 { 6 , 0 }, | |
453 { 16 , 0 }, | |
454 { 25 , 0 }, | |
455 { 35 , 0 }, | |
456 { 45 , 0 }, | |
457 { 56 , 0 }, | |
458 { 66 , 0 }, | |
459 { 75 , 0 }, | |
460 { 100 , 0 } | |
461 } | |
462 }, | |
463 { //TX structure | |
464 {// gsm900 T_LEVEL_TX | |
465 #if (PA == 3) // Hitachi | |
466 {550, 0, 0}, // 0 | |
467 {550, 0, 0}, // 1 | |
468 {550, 0, 0}, // 2 | |
469 {550, 0, 0}, // 3 | |
470 {550, 0, 0}, // 4 | |
471 {560, 0, 0}, // 5 Highest power | |
472 {510, 1, 0}, // 6 | |
473 {460, 2, 0}, // 7 | |
474 {400, 3, 1}, // 8 | |
475 {325, 4, 1}, // 9 | |
476 {280, 5, 1}, // 10 | |
477 {230, 6, 1}, // 11 | |
478 {195, 7, 1}, // 12 | |
479 {175, 8, 2}, // 13 | |
480 {158, 9, 2}, // 14 | |
481 {140, 10, 2}, // 15 | |
482 {130, 11, 2}, // 16 | |
483 {120, 12, 3}, // 17 | |
484 {115, 13, 3}, // 18 | |
485 {110, 14, 3}, // 19 Lowest power | |
486 { 43, 14, 0}, // 20 | |
487 { 43, 14, 0}, // 21 | |
488 { 43, 14, 0}, // 22 | |
489 { 43, 14, 0}, // 23 | |
490 { 43, 14, 0}, // 24 | |
491 { 43, 14, 0}, // 25 | |
492 { 43, 14, 0}, // 26 | |
493 { 43, 14, 0}, // 27 | |
494 { 43, 14, 0}, // 28 | |
495 { 43, 14, 0}, // 29 | |
496 { 43, 14, 0}, // 30 | |
497 { 43, 14, 0}, // 31 | |
498 #else | |
499 { 673, 0, 0 }, // 0 | |
500 { 673, 0, 0 }, // 1 | |
501 { 673, 0, 0 }, // 2 | |
502 { 673, 0, 0 }, // 3 | |
503 { 673, 0, 0 }, // 4 | |
504 { 673, 0, 0 }, // 5 Highest power | |
505 { 478, 1, 0 }, // 6 | |
506 { 389, 2, 0 }, // 7 | |
507 { 318, 3, 0 }, // 8 | |
508 { 260, 4, 0 }, // 9 | |
509 { 217, 5, 0 }, // 10 | |
510 { 180, 6, 0 }, // 11 | |
511 { 151, 7, 0 }, // 12 | |
512 { 128, 8, 0 }, // 13 | |
513 { 109, 9, 0 }, // 14 | |
514 { 94, 10, 0 }, // 15 | |
515 { 86, 11, 0 }, // 16 | |
516 { 78, 12, 0 }, // 17 | |
517 { 72, 13, 0 }, // 18 | |
518 { 67, 14, 0 }, // 19 Lowest power | |
519 { 67, 14, 0 }, // 20 | |
520 { 67, 14, 0 }, // 21 | |
521 { 67, 14, 0 }, // 22 | |
522 { 67, 14, 0 }, // 23 | |
523 { 67, 14, 0 }, // 24 | |
524 { 67, 14, 0 }, // 25 | |
525 { 67, 14, 0 }, // 26 | |
526 { 67, 14, 0 }, // 27 | |
527 { 67, 14, 0 }, // 28 | |
528 { 67, 14, 0 }, // 29 | |
529 { 67, 14, 0 }, // 30 | |
530 { 67, 14, 0 }, // 31 | |
531 #endif | |
532 }, | |
533 {// Channel Calibration Tables | |
534 {// arfcn, tx_chan_cal | |
535 #if (PA == 3) // Hitachi | |
536 { 21, 128 }, // Calibration Table 0 | |
537 { 41, 128 }, | |
538 { 62, 128 }, | |
539 { 82, 128 }, | |
540 { 103, 128 }, | |
541 { 124, 129 }, | |
542 { 885, 128 }, | |
543 { 1023, 128 } | |
544 }, | |
545 #else | |
546 { 40, 128 }, // Calibration Table 0 | |
547 { 80, 128 }, | |
548 { 124, 128 }, | |
549 { 586, 128 }, | |
550 { 661, 128 }, | |
551 { 736, 128 }, | |
552 { 885, 128 }, | |
553 { 1023, 128 } | |
554 }, | |
555 #endif | |
556 {// arfcn, tx_chan_cal | |
557 { 21, 128 }, // Calibration Table 1 | |
558 { 41, 128 }, | |
559 { 62, 128 }, | |
560 { 82, 128 }, | |
561 { 103, 128 }, | |
562 { 124, 128 }, | |
563 { 885, 128 }, | |
564 { 1023, 128 } | |
565 }, | |
566 {// arfcn, tx_chan_cal | |
567 { 21, 128 }, // Calibration Table 2 | |
568 { 41, 128 }, | |
569 { 62, 128 }, | |
570 { 82, 128 }, | |
571 { 103, 128 }, | |
572 { 124, 128 }, | |
573 { 885, 128 }, | |
574 { 1023, 128 } | |
575 }, | |
576 {// arfcn, tx_chan_cal | |
577 { 21, 128 }, // Calibration Table 3 | |
578 { 41, 128 }, | |
579 { 62, 128 }, | |
580 { 82, 128 }, | |
581 { 103, 128 }, | |
582 { 124, 128 }, | |
583 { 885, 128 }, | |
584 { 1023, 128 } | |
585 } | |
586 }, | |
587 { // GSM Power Ramp Values | |
588 #if (PA == 3) // Hitachi | |
589 { | |
590 {// Ramp-Up #0 profile - Power Level 5 | |
591 0,0,6,0,11,7,1,0,0,11,0,26,23,22,16,5 | |
592 }, | |
593 {// Ramp-Down #0 profile | |
594 0,5,7,16,26,24,30,6,0,14,0,0,0,0,0,0 | |
595 }, | |
596 }, | |
597 { | |
598 {// Ramp-Up #1 profile - Power Level 6 | |
599 0,4,8,0,0,0,25,0,0,0,0,17,30,19,25,0 | |
600 }, | |
601 {// Ramp-Down #1 profile | |
602 0,7,19,24,28,25,23,2,0,0,0,0,0,0,0,0 | |
603 }, | |
604 }, | |
605 { | |
606 {// Ramp-Up #2 profile - Power Level 7 | |
607 0,4,8,0,0,0,25,0,0,0,0,17,30,19,25,0 | |
608 }, | |
609 {// Ramp-Down #2 profile | |
610 0,7,19,24,28,25,23,2,0,0,0,0,0,0,0,0 | |
611 }, | |
612 }, | |
613 { | |
614 {// Ramp-Up #3 profile - Power Level 8 | |
615 5,9,11,3,0,4,16,0,1,0,0,7,18,24,12,18 | |
616 }, | |
617 {// Ramp-Down #3 profile | |
618 0,9,16,23,23,21,18,9,3,2,0,0,0,2,1,1 | |
619 }, | |
620 }, | |
621 { | |
622 {// Ramp-Up #4 profile - Power Level 9 | |
623 5,0,18,17,0,8,0,0,0,3,0,14,21,21,15,6 | |
624 }, | |
625 {// Ramp-Down #4 profile | |
626 0,8,12,31,24,20,19,7,4,2,1,0,0,0,0,0 | |
627 }, | |
628 }, | |
629 { | |
630 {// Ramp-Up #5 profile - Power Level 10 | |
631 5,10,11,20,0,7,0,0,14,0,0,0,15,17,22,7 | |
632 }, | |
633 {// Ramp-Down #5 profile | |
634 0,7,17,24,27,20,18,11,4,0,0,0,0,0,0,0 | |
635 }, | |
636 }, | |
637 { | |
638 {// Ramp-Up #6 profile - Power Level 11 | |
639 0,11,1,8,30,0,0,0,0,28,0,1,14,14,12,9 | |
640 }, | |
641 {// Ramp-Down #6 profile | |
642 0,7,16,19,27,26,19,7,4,2,1,0,0,0,0,0 | |
643 }, | |
644 }, | |
645 { | |
646 {// Ramp-Up #7 profile - Power Level 12 | |
647 0,0,12,0,2,0,21,26,0,0,0,24,9,3,20,11 | |
648 }, | |
649 {// Ramp-Down #7 profile | |
650 0,6,17,21,28,23,19,7,4,2,1,0,0,0,0,0 | |
651 }, | |
652 }, | |
653 { | |
654 {// Ramp-Up #8 profile - Power Level 13 | |
655 5,0,0,26,31,16,0,0,0,0,0,0,0,31,13,6 | |
656 }, | |
657 {// Ramp-Down #8 profile | |
658 0,15,14,20,22,24,19,9,2,2,1,0,0,0,0,0 | |
659 }, | |
660 }, | |
661 { | |
662 {// Ramp-Up #9 profile - Power Level 14 | |
663 5,10,9,0,4,3,10,10,23,2,7,13,4,12,11,5 | |
664 }, | |
665 {// Ramp-Down #9 profile | |
666 0,4,19,28,24,20,19,7,4,2,1,0,0,0,0,0 | |
667 }, | |
668 }, | |
669 { | |
670 {// Ramp-Up #10 profile - Power Level 15 | |
671 5,0,10,9,4,4,12,13,14,15,19,13,7,2,1,0 | |
672 }, | |
673 {// Ramp-Down #10 profile | |
674 0,3,18,29,25,20,19,7,4,2,1,0,0,0,0,0 | |
675 }, | |
676 }, | |
677 { | |
678 {// Ramp-Up #11 profile - Power Level 16 | |
679 5,10,9,6,14,7,13,11,13,10,15,5,4,2,4,0 | |
680 }, | |
681 {// Ramp-Down #11 profile | |
682 0,0,13,24,31,27,19,7,4,2,1,0,0,0,0,0 | |
683 }, | |
684 }, | |
685 { | |
686 {// Ramp-Up #12 profile - Power Level 17 | |
687 5,10,9,11,15,6,13,9,19,31,0,0,0,0,0,0 | |
688 }, | |
689 {// Ramp-Down #12 profile | |
690 0,0,4,31,31,29,19,7,4,2,1,0,0,0,0,0 | |
691 }, | |
692 }, | |
693 { | |
694 {// Ramp-Up #13 profile - Power Level 18 | |
695 5,10,9,9,6,27,31,31,0,0,0,0,0,0,0,0 | |
696 }, | |
697 {// Ramp-Down #13 profile | |
698 0,0,4,31,29,25,25,7,4,2,1,0,0,0,0,0 | |
699 }, | |
700 }, | |
701 { | |
702 {// Ramp-Up #14 profile - Power Level 19 | |
703 5,10,20,31,31,31,0,0,0,0,0,0,0,0,0,0 | |
704 }, | |
705 {// Ramp-Down #14 profile | |
706 0,0,2,27,31,30,24,7,4,2,1,0,0,0,0,0 | |
707 }, | |
708 }, | |
709 { | |
710 {// Ramp-Up #15 profile - Power Level 19 | |
711 5,10,20,31,31,31,0,0,0,0,0,0,0,0,0,0 | |
712 }, | |
713 {// Ramp-Down #15 profile | |
714 0,0,2,27,31,30,24,7,4,2,1,0,0,0,0,0 | |
715 }, | |
716 }, | |
717 }, | |
718 #else | |
719 { { 0,0,0,17,0,0,0,0,0,11,31,31,31,7,0,0 }, // Ramp-Up #0 profile - Power Level 5 | |
720 { 0,18,31,31,31,17,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
721 { { 0,0,0,0,6,17,0,0,0,0,30,31,25,9,10,0 }, // Ramp-Up #0 profile - Power Level 6 | |
722 { 0,19,23,26,31,15,0,14,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
723 { { 0,0,0,0,25,0,0,0,0,10,31,31,31,0,0,0 }, // Ramp-Up #0 profile - Power Level 7 | |
724 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down # profile | |
725 { { 0,0,0,0,10,17,0,0,0,7,31,31,31,1,0,0 }, // Ramp-Up #0 profile - Power Level 8 | |
726 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
727 { { 0,0,0,0,28,0,0,0,0,7,31,31,31,0,0,0 }, // Ramp-Up #0 profile - Power Level 9 | |
728 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
729 { { 0,0,0,0,11,0,31,0,0,0,12,31,31,12,0,0 }, // Ramp-Up #0 profile - Power Level 10 | |
730 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
731 { { 0,0,0,31,0,0,18,0,0,9,23,30,17,0,0,0 }, // Ramp-Up #0 profile - Power Level 11 | |
732 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
733 { { 0,0,31,0,0,0,19,0,0,0,19,31,23,5,0,0 }, // Ramp-Up #0 profile - Power Level 12 | |
734 { 0,31,31,31,21,14,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
735 { { 0,0,0,0,0,0,31,25,0,0,14,9,31,18,0,0 }, // Ramp-Up #0 profile - Power Level 13 | |
736 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
737 { { 0,0,4,31,0,0,0,0,31,31,0,22,9,0,0,0 }, // Ramp-Up #0 profile - Power Level 14 | |
738 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
739 { { 0,0,0,0,31,5,0,11,31,31,0,19,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 15 | |
740 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
741 { { 0,0,0,0,0,0,0,31,31,31,31,4,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 16 | |
742 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
743 { { 0,0,0,0,0,4,31,31,31,31,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 17 | |
744 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
745 { { 0,0,0,0,0,31,31,31,31,4,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 18 | |
746 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
747 { { 0,0,0,0,4,31,31,31,31,0,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 19 | |
748 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 } } }, // Ramp-Down #0 profile | |
749 #endif | |
750 { //TX temperature compensation | |
751 #if (ORDER2_TX_TEMP_CAL==1) | |
752 { -11, 0, 0, 0 }, | |
753 { +9, 0, 0, 0 }, | |
754 { +39, 0, 0, 0 }, | |
755 { +59, 0, 0, 0 }, | |
756 { 127, 0, 0, 0 } | |
757 #else | |
758 { -11, 0 }, | |
759 { +9, 0 }, | |
760 { +39, 0 }, | |
761 { +59, 0 }, | |
762 { 127, 0 } | |
763 #endif | |
764 }, | |
765 }, | |
766 //IQ swap | |
767 SWAP_IQ_GSM, | |
768 }; | |
769 | |
770 const T_RF_BAND rf_1800 = | |
771 { | |
772 { //RX structure | |
773 { //T_RX_CAL_PARAMS rx_cal_params | |
774 188, //g_magic | |
775 40, //lna gain * 2 | |
776 40, //lna_th_high | |
777 44 //lna_th_low | |
778 }, | |
779 { //T_RF_AGC_BAND agc_bands[RF_RX_CAL_CHAN_SIZE]; | |
780 /*--------------*/ | |
781 /*-- DCS band --*/ | |
782 /*--------------*/ | |
783 { 548, 0}, // | |
784 { 622, 0}, // | |
785 { 680, 0}, // | |
786 { 745, 0}, // | |
787 { 812, 0}, // | |
788 { 860, 0}, // | |
789 { 885, 0}, // | |
790 { 991, 0}, // | |
791 { 992, 0}, // | |
792 {1023, 0}, // | |
793 }, | |
794 { //RX temperature compensation | |
795 { -15 , 0 }, | |
796 { -5 , 0 }, | |
797 { 6 , 0 }, | |
798 { 16 , 0 }, | |
799 { 25 , 0 }, | |
800 { 35 , 0 }, | |
801 { 45 , 0 }, | |
802 { 56 , 0 }, | |
803 { 66 , 0 }, | |
804 { 75 , 0 }, | |
805 { 100 , 0 } | |
806 } | |
807 }, | |
808 { //TX structure | |
809 {// dcs1800 T_LEVEL_TX | |
810 #if (PA == 3) // Hitachi | |
811 {720, 0, 0}, // 0 Highest power | |
812 {637, 1, 0}, // 1 | |
813 {570, 2, 0}, // 2 | |
814 {470, 3, 1}, // 3 | |
815 {390, 4, 1}, // 4 | |
816 {328, 5, 1}, // 5 | |
817 {277, 6, 1}, // 6 | |
818 {238, 7, 1}, // 7 | |
819 {205, 8, 2}, // 8 | |
820 {178, 9, 2}, // 9 | |
821 {158, 10, 2}, // 10 | |
822 {140, 11, 2}, // 11 | |
823 {133, 12, 2}, // 12 | |
824 {125, 13, 3}, // 13 | |
825 {118, 14, 3}, // 14 | |
826 {114, 15, 3}, // 15 Lowest power | |
827 {61, 15, 0}, // 16 | |
828 {61, 15, 0}, // 17 | |
829 {61, 15, 0}, // 18 | |
830 {61, 15, 0}, // 19 | |
831 {61, 15, 0}, // 20 | |
832 {61, 15, 0}, // 21 | |
833 {61, 15, 0}, // 22 | |
834 {61, 15, 0}, // 23 {61, 15, 0}, // 24 | |
835 {61, 15, 0}, // 25 | |
836 {61, 15, 0}, // 26 | |
837 {61, 15, 0}, // 27 | |
838 {61, 15, 0}, // 28 | |
839 {750, 0, 0}, // 29 Highest power | |
840 {750, 0, 0}, // 30 Highest power | |
841 {750, 0, 0}, // 31 Highest power | |
842 #else | |
843 { 918, 0, 0 }, // 0 Highest power | |
844 { 616, 1, 0 }, // 1 | |
845 { 500, 2, 0 }, // 2 | |
846 { 411, 3, 0 }, // 3 | |
847 { 339, 4, 0 }, // 4 | |
848 { 280, 5, 0 }, // 5 | |
849 { 231, 6, 0 }, // 6 | |
850 { 194, 7, 0 }, // 7 | |
851 { 165, 8, 0 }, // 8 | |
852 { 143, 9, 0 }, // 9 | |
853 { 122, 10, 0 }, // 10 | |
854 { 109, 11, 0 }, // 11 | |
855 { 96, 12, 0 }, // 12 | |
856 { 85, 13, 0 }, // 13 | |
857 { 80, 14, 0 }, // 14 | |
858 { 75, 15, 0 }, // 15 Lowest power | |
859 { 75, 15, 0 }, // 16 | |
860 { 75, 15, 0 }, // 17 | |
861 { 75, 15, 0 }, // 18 | |
862 { 75, 15, 0 }, // 19 | |
863 { 75, 15, 0 }, // 20 | |
864 { 75, 15, 0 }, // 21 | |
865 { 75, 15, 0 }, // 22 | |
866 { 75, 15, 0 }, // 23 | |
867 { 75, 15, 0 }, // 24 | |
868 { 75, 15, 0 }, // 25 | |
869 { 75, 15, 0 }, // 26 | |
870 { 75, 15, 0 }, // 27 | |
871 { 75, 15, 0 }, // 28 | |
872 { 754, 0, 0 }, // 29 | |
873 { 754, 0, 0 }, // 30 | |
874 { 754, 0, 0 }, // 31 | |
875 #endif | |
876 }, | |
877 {// Channel Calibration Tables | |
878 {// arfcn, tx_chan_cal | |
879 { 554, 126 }, // Calibration Table 0 | |
880 { 722, 128 }, | |
881 { 746, 128 }, | |
882 { 774, 128 }, | |
883 { 808, 128 }, | |
884 { 851, 134 }, | |
885 { 870, 134 }, | |
886 { 885, 136 } | |
887 }, | |
888 { | |
889 { 554, 128 }, // Calibration Table 1 | |
890 { 722, 128 }, | |
891 { 746, 128 }, | |
892 { 774, 128 }, | |
893 { 808, 128 }, | |
894 { 851, 128 }, | |
895 { 870, 128 }, | |
896 { 885, 128 } | |
897 }, | |
898 {// arfcn, tx_chan_cal | |
899 { 554, 128 }, // Calibration Table 2 | |
900 { 722, 128 }, | |
901 { 746, 128 }, | |
902 { 774, 128 }, | |
903 { 808, 128 }, | |
904 { 851, 128 }, | |
905 { 870, 128 }, | |
906 { 885, 128 } | |
907 }, | |
908 {// arfcn, tx_chan_cal | |
909 { 554, 128 }, // Calibration Table 3 | |
910 { 722, 128 }, | |
911 { 746, 128 }, | |
912 { 774, 128 }, | |
913 { 808, 128 }, | |
914 { 851, 128 }, | |
915 { 870, 128 }, | |
916 { 885, 128 } | |
917 } | |
918 }, | |
919 { // DCS Power Ramp Values | |
920 #if (PA == 3) // Hitachi | |
921 { | |
922 {// Ramp-Up #0 profile - Power Level 0 | |
923 0,0,0,10,16,0,0,0,6,0,0,0,19,31,31,15 | |
924 }, | |
925 {// Ramp-Down #0 profile | |
926 6,13,28,26,22,19,6,2,6,0,0,0,0,0,0,0 | |
927 }, | |
928 }, | |
929 { | |
930 {// Ramp-Up #1 profile - Power Level 1 | |
931 0,0,0,0,12,2,0,12,0,0,0,11,24,24,31,12 | |
932 }, | |
933 {// Ramp-Down #1 profile | |
934 6,16,23,28,22,19,6,2,6,0,0,0,0,0,0,0 | |
935 }, | |
936 }, | |
937 { | |
938 {// Ramp-Up #2 profile - Power Level 2 | |
939 0,0,0,6,0,8,0,15,0,2,0,10,22,27,16,22 | |
940 }, | |
941 {// Ramp-Down #2 profile | |
942 4,7,26,29,31,23,2,0,6,0,0,0,0,0,0,0 | |
943 }, | |
944 }, | |
945 { | |
946 {// Ramp-Up #3 profile - Power Level 3 | |
947 0,0,0,18,0,0,0,16,0,0,0,10,29,31,22,2 | |
948 }, | |
949 {// Ramp-Down #3 profile | |
950 8,12,19,20,23,20,14,6,4,2,0,0,0,0,0,0 | |
951 }, | |
952 }, | |
953 { | |
954 {// Ramp-Up #4 profile - Power Level 4 | |
955 0,0,0,16,0,3,2,1,23,0,0,8,23,31,19,2 | |
956 }, | |
957 {// Ramp-Down #4 profile | |
958 0,3,19,24,31,12,20,15,4,0,0,0,0,0,0,0 | |
959 }, | |
960 }, | |
961 { | |
962 {// Ramp-Up #5 profile - Power Level 5 | |
963 0,0,0,21,0,0,0,1,31,0,0,0,17,30,20,8 | |
964 }, | |
965 {// Ramp-Down #5 profile | |
966 3,14,26,31,20,17,6,11,0,0,0,0,0,0,0,0, | |
967 }, | |
968 }, | |
969 { | |
970 {// Ramp-Up #6 profile - Power Level 6 | |
971 0,0,0,15,0,0,11,2,24,6,9,0,19,31,10,1 | |
972 }, | |
973 {// Ramp-Down #6 profile | |
974 5,20,31,23,6,17,26,0,0,0,0,0,0,0,0,0 | |
975 }, | |
976 }, | |
977 { | |
978 {// Ramp-Up #7 profile - Power Level 7 | |
979 0,0,0,15,0,0,11,2,18,0,22,0,7,0,31,22 | |
980 }, | |
981 {// Ramp-Down #7 profile | |
982 0,5,20,31,23,6,17,26,0,0,0,0,0,0,0,0 | |
983 }, | |
984 }, | |
985 { | |
986 {// Ramp-Up #8 profile - Power Level 8 | |
987 1,0,0,14,0,11,0,29,0,0,9,14,13,6,27,4 | |
988 }, | |
989 {// Ramp-Down #8 profile | |
990 2,19,27,25,31,16,8,0,0,0,0,0,0,0,0,0 | |
991 }, | |
992 }, | |
993 { | |
994 {// Ramp-Up #9 profile - Power Level 9 | |
995 0,0,0,22,0,0,20,20,7,11,0,15,5,0,28,0 | |
996 }, | |
997 {// Ramp-Down #9 profile | |
998 0,2,23,31,31,31,0,0,10,0,0,0,0,0,0,0 | |
999 }, | |
1000 }, | |
1001 { | |
1002 {// Ramp-Up #10 profile - Power Level 10 | |
1003 0,0,0,22,0,0,20,20,7,11,0,15,5,0,28,0 | |
1004 }, | |
1005 {// Ramp-Down #10 profile | |
1006 0,0,25,31,31,31,0,0,10,0,0,0,0,0,0,0 | |
1007 }, | |
1008 }, | |
1009 { | |
1010 {// Ramp-Up #11 profile - Power Level 11 | |
1011 0,0,22,0,0,20,20,7,11,0,15,5,0,28,0,0 | |
1012 }, | |
1013 {// Ramp-Down #11 profile | |
1014 0,0,20,31,31,31,5,0,10,0,0,0,0,0,0,0 | |
1015 }, | |
1016 }, | |
1017 { | |
1018 {// Ramp-Up #12 profile - Power Level 12 | |
1019 0,0,0,4,31,31,4,11,0,11,2,17,6,11,0,0 | |
1020 }, | |
1021 {// Ramp-Down #12 profile | |
1022 0,0,27,30,31,31,9,0,0,0,0,0,0,0,0,0 | |
1023 }, | |
1024 }, | |
1025 { | |
1026 {// Ramp-Up #13 profile - Power Level 13 | |
1027 0,4,31,31,4,11,0,11,2,17,6,11,0,0,0,0 | |
1028 }, | |
1029 {// Ramp-Down #13 profile | |
1030 0,0,0,27,30,31,31,9,0,0,0,0,0,0,0,0 | |
1031 }, | |
1032 }, | |
1033 { | |
1034 {// Ramp-Up #14 profile - Power Level 14 | |
1035 0,0,0,0,31,31,31,19,16,0,0,0,0,0,0,0 | |
1036 | |
1037 }, | |
1038 {// Ramp-Down #14 profile | |
1039 0,0,2,31,31,31,31,2,0,0,0,0,0,0,0,0 | |
1040 | |
1041 }, | |
1042 }, | |
1043 { | |
1044 {// Ramp-Up #15 profile - Power Level 15 | |
1045 0,0,0,0,31,31,31,19,16,0,0,0,0,0,0,0 | |
1046 }, | |
1047 {// Ramp-Down #15 profile | |
1048 0,0,2,31,31,31,31,2,0,0,0,0,0,0,0,0 | |
1049 }, | |
1050 }, | |
1051 }, | |
1052 #else | |
1053 { { 0,0,0,19,0,0,0,0,0,8,31,31,31,8,0,0 }, // Ramp-Up #0 profile - Power Level 0 | |
1054 { 12,19,23,24,28,15,0,0,7,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1055 { { 0,0,19,0,0,0,4,0,0,8,31,31,31,4,0,0 }, // Ramp-Up #0 profile - Power Level 1 | |
1056 { 0,11,27,30,29,31,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1057 { { 0,0,0,26,0,0,0,0,0,22,23,26,21,10,0,0 }, // Ramp-Up #0 profile - Power Level 2 | |
1058 { 0,31,27,28,24,18,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1059 { { 0,0,0,0,27,0,0,0,0,0,19,30,31,21,0,0 }, // Ramp-Up #0 profile - Power Level 3 | |
1060 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1061 { { 0,0,0,30,0,0,0,0,0,13,31,30,24,0,0,0 }, // Ramp-Up #0 profile - Power Level 4 | |
1062 { 0,18,30,31,31,18,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1063 { { 0,0,0,6,31,0,0,0,0,6,31,30,24,0,0,0 }, // Ramp-Up #0 profile - Power Level 5 | |
1064 { 0,13,30,31,31,23,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1065 { { 31,0,0,0,7,0,0,11,0,0,26,30,23,0,0,0 }, // Ramp-Up #0 profile - Power Level 6 | |
1066 { 0,13,30,31,31,23,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1067 { { 0,31,0,0,0,0,22,0,0,0,21,30,24,0,0,0 }, // Ramp-Up #0 profile - Power Level 7 | |
1068 { 0,13,30,31,31,23,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1069 { { 0,0,0,0,0,9,31,31,0,0,0,26,31,0,0,0 }, // Ramp-Up #0 profile - Power Level 8 | |
1070 { 0,14,31,31,31,21,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1071 { { 0,0,0,0,8,31,31,0,0,0,0,27,31,0,0,0 }, // Ramp-Up #0 profile - Power Level 9 | |
1072 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1073 { { 0,5,31,0,0,0,28,14,0,0,0,28,22,0,0,0 }, // Ramp-Up #0 profile - Power Level 10 | |
1074 { 0,15,31,31,29,22,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1075 { { 0,0,0,0,0,0,16,27,31,31,23,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 11 | |
1076 { 0,0,15,31,31,27,24,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1077 { { 0,0,0,0,0,16,27,31,31,23,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 12 | |
1078 { 0,0,14,31,31,27,25,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1079 { { 0,0,0,0,16,31,25,31,25,0,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 13 | |
1080 { 0,0,17,30,31,25,25,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1081 { { 0,0,0,0,0,31,31,31,31,4,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 14 | |
1082 { 0,0,18,31,22,30,27,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1083 { { 0,0,0,31,31,31,31,4,0,0,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 15 | |
1084 { 0,0,23,31,31,31,12,0,0,0,0,0,0,0,0,0 }, }, }, // Ramp-Down #0 profile | |
1085 #endif | |
1086 { //TX temperature compensation | |
1087 #if (ORDER2_TX_TEMP_CAL==1) | |
1088 { -11, 0, 0, 0 }, | |
1089 { +9, 0, 0, 0 }, | |
1090 { +39, 0, 0, 0 }, | |
1091 { +59, 0, 0, 0 }, | |
1092 { 127, 0, 0, 0 } | |
1093 #else | |
1094 { -11, 0 }, | |
1095 { +9, 0 }, | |
1096 { +39, 0 }, | |
1097 { +59, 0 }, | |
1098 { 127, 0 } | |
1099 #endif | |
1100 }, | |
1101 }, | |
1102 //IQ swap | |
1103 SWAP_IQ_DCS | |
1104 }; | |
1105 | |
1106 //copy from gsm900 | |
1107 const T_RF_BAND rf_850 = | |
1108 { | |
1109 { //RX structure | |
1110 //T_RX_CAL_PARAMS rx_cal_params | |
1111 { | |
1112 #if ((BOARD == 40) || (BOARD == 41) || (BOARD == 45)) // EvaRita + D-sample or EvaConso | |
1113 193, //g_magic | |
1114 #else | |
1115 181, //g_magic | |
1116 #endif | |
1117 40, //lna_gain_max * 2 | |
1118 40, //lna_th_high | |
1119 44 //lna_th_low | |
1120 }, | |
1121 { //T_RF_AGC_BAND agc_bands[RF_RX_CAL_CHAN_SIZE]; | |
1122 // Remark: ARFCN=0 (GSM-E) is maintained by 1st GSM subbband. | |
1123 // upper_bound, agc_calib | |
1124 { 10, 0}, // sub-band1 up to arfcn = 10, Agc calibration = 0db | |
1125 { 30, 0}, // sub-band2 up to arfcn = 30, Agc calibration = 0db | |
1126 { 51, 0}, // sub-band3 up to arfcn = 51, Agc calibration = 0db | |
1127 { 71, 0}, // etc. | |
1128 { 90, 0}, // | |
1129 { 112, 0}, // | |
1130 { 124, 0}, // | |
1131 { 991, 0}, // | |
1132 { 992, 0}, // | |
1133 {1023, 0}, // | |
1134 }, | |
1135 { //RX temperature compensation | |
1136 { -15 , 0 }, | |
1137 { -5 , 0 }, | |
1138 { 6 , 0 }, | |
1139 { 16 , 0 }, | |
1140 { 25 , 0 }, | |
1141 { 35 , 0 }, | |
1142 { 45 , 0 }, | |
1143 { 56 , 0 }, | |
1144 { 66 , 0 }, | |
1145 { 75 , 0 }, | |
1146 { 100 , 0 } | |
1147 } | |
1148 }, | |
1149 { //TX structure | |
1150 {// gsm850 T_LEVEL_TX | |
1151 #if (PA == 3) // Hitachi | |
1152 {560, 0, 0}, // 0 | |
1153 {560, 0, 0}, // 1 | |
1154 {560, 0, 0}, // 2 | |
1155 {560, 0, 0}, // 3 | |
1156 {560, 0, 0}, // 4 | |
1157 {560, 0, 0}, // 5 Highest power | |
1158 {437, 1, 0}, // 6 | |
1159 {355, 2, 0}, // 7 | |
1160 {291, 3, 0}, // 8 | |
1161 {237, 4, 0}, // 9 | |
1162 {194, 5, 0}, // 10 | |
1163 {160, 6, 0}, // 11 | |
1164 {132, 7, 0}, // 12 | |
1165 {110, 8, 0}, // 13 | |
1166 {92, 9, 0}, // 14 | |
1167 {77, 10, 0}, // 15 | |
1168 {67, 11, 0}, // 16 | |
1169 {59, 12, 0}, // 17 | |
1170 {52, 13, 0}, // 18 | |
1171 {46, 14, 0}, // 19 Lowest power | |
1172 {46, 14, 0}, // 20 | |
1173 {46, 14, 0}, // 21 | |
1174 {46, 14, 0}, // 22 | |
1175 {46, 14, 0}, // 23 | |
1176 {46, 14, 0}, // 24 | |
1177 {46, 14, 0}, // 25 | |
1178 {46, 14, 0}, // 26 | |
1179 {46, 14, 0}, // 27 | |
1180 {46, 14, 0}, // 28 | |
1181 {46, 14, 0}, // 29 | |
1182 {46, 14, 0}, // 30 | |
1183 {46, 14, 0}, // 31 | |
1184 #else | |
1185 { 616, 0, 0 }, // 0 | |
1186 { 616, 0, 0 }, // 1 | |
1187 { 616, 0, 0 }, // 2 | |
1188 { 616, 0, 0 }, // 3 | |
1189 { 616, 0, 0 }, // 4 | |
1190 { 616, 0, 0 }, // 5 Highest pwr | |
1191 { 453, 1, 0 }, // 6 | |
1192 { 371, 2, 0 }, // 7 | |
1193 { 309, 3, 0 }, // 8 | |
1194 { 256, 3, 0 }, // 9 | |
1195 { 216, 5, 0 }, // 10 | |
1196 { 182, 6, 0 }, // 11 | |
1197 { 155, 7, 0 }, // 12 | |
1198 { 134, 8, 0 }, // 13 | |
1199 { 116, 9, 0 }, // 14 | |
1200 { 103, 10, 0 }, // 15 | |
1201 { 89, 11, 0 }, // 16 | |
1202 { 87, 12, 0 }, // 17 | |
1203 { 80, 13, 0 }, // 18 | |
1204 { 75, 14, 0 }, // 19 lowest pwr | |
1205 { 75, 14, 0 }, // 20 | |
1206 { 75, 14, 0 }, // 21 | |
1207 { 75, 14, 0 }, // 22 | |
1208 { 75, 14, 0 }, // 23 | |
1209 { 75, 14, 0 }, // 24 | |
1210 { 75, 14, 0 }, // 25 | |
1211 { 75, 14, 0 }, // 26 | |
1212 { 75, 14, 0 }, // 27 | |
1213 { 75, 14, 0 }, // 28 | |
1214 { 75, 14, 0 }, // 29 | |
1215 { 75, 14, 0 }, // 30 | |
1216 { 75, 14, 0 } // 31 | |
1217 #endif | |
1218 }, | |
1219 {// Channel Calibration Tables | |
1220 {// arfcn, tx_chan_cal | |
1221 { 40, 128 }, // Calibration Table 0 | |
1222 { 80, 128 }, | |
1223 { 124, 128 }, | |
1224 { 586, 128 }, | |
1225 { 661, 128 }, | |
1226 { 736, 128 }, | |
1227 { 885, 128 }, | |
1228 { 1023, 128 } | |
1229 }, | |
1230 {// arfcn, tx_chan_cal | |
1231 { 554, 130 }, // Calibration Table 1 | |
1232 { 722, 128 }, | |
1233 { 746, 129 }, | |
1234 { 774, 131 }, | |
1235 { 808, 132 }, | |
1236 { 851, 134 }, | |
1237 { 870, 138 }, | |
1238 { 885, 140 } | |
1239 }, | |
1240 {// arfcn, tx_chan_cal | |
1241 { 40, 128 }, // Calibration Table 2 | |
1242 { 80, 128 }, | |
1243 { 124, 128 }, | |
1244 { 586, 128 }, | |
1245 { 661, 128 }, | |
1246 { 736, 128 }, | |
1247 { 885, 128 }, | |
1248 { 1023, 128 } | |
1249 }, | |
1250 {// arfcn, tx_chan_cal | |
1251 { 40, 128 }, // Calibration Table 3 | |
1252 { 80, 128 }, | |
1253 { 124, 128 }, | |
1254 { 586, 128 }, | |
1255 { 661, 128 }, | |
1256 { 736, 128 }, | |
1257 { 885, 128 }, | |
1258 { 1023, 128 } | |
1259 } | |
1260 }, | |
1261 { // gsm850 Power Ramp Values | |
1262 #if (PA == 3) // Hitachi | |
1263 { | |
1264 {// Ramp-Up #0 profile - Power Level 5 | |
1265 8,0,0,0,0,0,6,0, | |
1266 0,6,18,29,23,21,17,0 | |
1267 }, | |
1268 {// Ramp-Down #0 profile | |
1269 0,12,19,31,31,18,17,0, | |
1270 0,0,0,0,0,0,0,0 | |
1271 }, | |
1272 }, | |
1273 { | |
1274 {// Ramp-Up #1 profile - Power Level 6 | |
1275 0,0,3,3,1,4,0,3, | |
1276 6,5,15,31,31,9,12,5 | |
1277 }, | |
1278 {// Ramp-Down #1 profile | |
1279 9,23,25,31,25,15,0,0, | |
1280 0,0,0,0,0,0,0,0 | |
1281 }, | |
1282 }, | |
1283 { | |
1284 {// Ramp-Up #2 profile - Power Level 7 | |
1285 1,1,4,0,4,2,5,2, | |
1286 4,2,12,19,31,18,15,8 | |
1287 }, | |
1288 {// Ramp-Down #2 profile | |
1289 9,30,31,31,16,11,0,0, | |
1290 0,0,0,0,0,0,0,0 | |
1291 }, | |
1292 }, | |
1293 { | |
1294 {// Ramp-Up #3 profile - Power Level 8 | |
1295 2,1,3,2,4,5,4,4, | |
1296 5,10,11,5,15,20,22,15 | |
1297 }, | |
1298 {// Ramp-Down #3 profile | |
1299 8,12,16,31,31,9,7,6, | |
1300 3,3,2,0,0,0,0,0 | |
1301 }, | |
1302 }, | |
1303 { | |
1304 {// Ramp-Up #4 profile - Power Level 9 | |
1305 0,4,3,1,0,4,0,2, | |
1306 10,13,0,0,31,31,26,3 | |
1307 }, | |
1308 {// Ramp-Down #4 profile | |
1309 8,9,28,31,31,7,5,2, | |
1310 7,0,0,0,0,0,0,0 | |
1311 }, | |
1312 }, | |
1313 { | |
1314 {// Ramp-Up #5 profile - Power Level 10 | |
1315 0,0,0,5,0,3,4,6, | |
1316 18,11,1,0,31,31,15,3 | |
1317 }, | |
1318 {// Ramp-Down #5 profile | |
1319 7,11,31,31,31,17,0,0, | |
1320 0,0,0,0,0,0,0,0 | |
1321 }, | |
1322 }, | |
1323 { | |
1324 {// Ramp-Up #6 profile - Power Level 11 | |
1325 0,0,7,4,3,5,1,6, | |
1326 2,17,5,1,15,27,25,10 | |
1327 }, | |
1328 {// Ramp-Down #6 profile | |
1329 6,14,27,31,29,7,4,3, | |
1330 7,0,0,0,0,0,0,0 | |
1331 }, | |
1332 }, | |
1333 { | |
1334 {// Ramp-Up #7 profile - Power Level 12 | |
1335 0,2,5,9,1,4,5,6, | |
1336 9,14,8,1,31,19,10,4 | |
1337 }, | |
1338 {// Ramp-Down #7 profile | |
1339 9,5,31,31,31,5,5,6, | |
1340 0,3,2,0,0,0,0,0 | |
1341 }, | |
1342 }, | |
1343 { | |
1344 {// Ramp-Up #8 profile - Power Level 13 | |
1345 0,0,0,12,4,9,9,13, | |
1346 11,10,9,3,18,12,11,7 | |
1347 }, | |
1348 {// Ramp-Down #8 profile | |
1349 8,9,28,31,27,8,5,4, | |
1350 8,0,0,0,0,0,0,0 | |
1351 }, | |
1352 }, | |
1353 { | |
1354 {// Ramp-Up #9 profile - Power Level 14 | |
1355 0,0,0,6,11,11,10,8, | |
1356 7,5,5,5,19,29,12,0 | |
1357 }, | |
1358 {// Ramp-Down #9 profile | |
1359 8,18,31,31,31,9,0,0, | |
1360 0,0,0,0,0,0,0,0 | |
1361 }, | |
1362 }, | |
1363 { | |
1364 {// Ramp-Up #10 profile - Power Level 15 | |
1365 0,0,0,0,0,0,9,31, | |
1366 31,31,12,5,2,0,3,4 | |
1367 }, | |
1368 {// Ramp-Down #10 profile | |
1369 4,18,31,31,31,13,0,0, | |
1370 0,0,0,0,0,0,0,0 | |
1371 }, | |
1372 }, | |
1373 { | |
1374 {// Ramp-Up #11 profile - Power Level 16 | |
1375 0,0,0,0,0,0,27,31, | |
1376 31,31,3,0,1,2,0,2 | |
1377 }, | |
1378 {// Ramp-Down #11 profile | |
1379 3,9,30,31,31,24,0,0, | |
1380 0,0,0,0,0,0,0,0 | |
1381 }, | |
1382 }, | |
1383 { | |
1384 {// Ramp-Up #12 profile - Power Level 17 | |
1385 0,0,0,0,0,5,31,31, | |
1386 30,31,0,0,0,0,0,0 | |
1387 }, | |
1388 {// Ramp-Down #12 profile | |
1389 6,8,31,31,19,20,12,1, | |
1390 0,0,0,0,0,0,0,0 | |
1391 }, | |
1392 }, | |
1393 { | |
1394 {// Ramp-Up #13 profile - Power Level 18 | |
1395 0,0,0,0,18,17,31,31, | |
1396 17,14,0,0,0,0,0,0 | |
1397 }, | |
1398 {// Ramp-Down #13 profile | |
1399 3,7,29,31,31,27,0,0, | |
1400 0,0,0,0,0,0,0,0 | |
1401 }, | |
1402 }, | |
1403 { | |
1404 {// Ramp-Up #14 profile - Power Level 19 | |
1405 0,0,0,9,12,15,30,31, 17,14,0,0,0,0,0,0 | |
1406 }, | |
1407 {// Ramp-Down #14 profile | |
1408 0,0,7,20,26,31,31,13, | |
1409 0,0,0,0,0,0,0,0 | |
1410 }, | |
1411 }, | |
1412 { | |
1413 {// Ramp-Up #15 profile - Power Level 19 | |
1414 0,0,0,9,12,15,30,31, | |
1415 17,14,0,0,0,0,0,0 | |
1416 }, | |
1417 {// Ramp-Down #15 profile | |
1418 0,0,7,20,26,31,31,13, | |
1419 0,0,0,0,0,0,0,0 | |
1420 }, | |
1421 }, | |
1422 }, | |
1423 #else | |
1424 { { 0,0,0,25,0,0,7,0,0,18,31,31,16,0,0,0 }, // Ramp-Up #0 profile - Power Level 5 | |
1425 { 10,14,21,22,31,20,0,0,0,10,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1426 { { 0,0,0,0,29,0,0,2,0,0,31,31,31,4,0,0 }, // Ramp-Up #0 profile - Power Level 6 | |
1427 { 0,9,31,31,31,26,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1428 { { 0,0,0,0,0,0,31,6,0,0,29,31,31,0,0,0 }, // Ramp-Up #0 profile - Power Level 7 | |
1429 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down # profile | |
1430 { { 0,0,0,10,0,25,0,0,0,11,31,31,20,0,0,0 }, // Ramp-Up #0 profile - Power Level 8 | |
1431 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1432 { { 0,0,0,0,0,0,0,0,0,22,0,0,13,31,31,31 }, // Ramp-Up #0 profile - Power Level 9 | |
1433 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1434 { { 0,31,0,0,0,0,0,0,25,0,23,25,24,0,0,0 }, // Ramp-Up #0 profile - Power Level 10 | |
1435 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1436 { { 0,0,30,0,0,0,0,0,0,31,0,16,31,20,0,0 }, // Ramp-Up #0 profile - Power Level 11 | |
1437 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1438 { { 0,0,0,31,0,0,30,0,0,0,15,31,10,11,0,0 }, // Ramp-Up #0 profile - Power Level 12 | |
1439 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1440 { { 0,0,31,0,0,13,0,31,0,0,13,18,22,0,0,0 }, // Ramp-Up #0 profile - Power Level 13 | |
1441 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1442 { { 0,0,0,31,0,0,0,0,11,31,31,0,24,0,0,0 }, // Ramp-Up #0 profile - Power Level 14 | |
1443 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1444 { { 15,0,0,0,0,0,0,20,31,31,31,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 15 | |
1445 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1446 { { 0,0,0,0,0,4,31,31,31,31,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 16 | |
1447 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1448 { { 0,0,0,0,4,31,31,31,31,0,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 17 | |
1449 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1450 { { 0,0,0,0,17,31,31,31,18,0,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 18 | |
1451 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1452 { { 0,0,0,0,31,31,31,31,4,0,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 19 | |
1453 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 } } }, // Ramp-Down #0 profile | |
1454 #endif | |
1455 { //TX temperature compensation | |
1456 #if (ORDER2_TX_TEMP_CAL==1) | |
1457 { -11, 0, 0, 0 }, | |
1458 { +9, 0, 0, 0 }, | |
1459 { +39, 0, 0, 0 }, | |
1460 { +59, 0, 0, 0 }, | |
1461 { 127, 0, 0, 0 } | |
1462 #else | |
1463 { -11, 0 }, | |
1464 { +9, 0 }, | |
1465 { +39, 0 }, | |
1466 { +59, 0 }, | |
1467 { 127, 0 } | |
1468 #endif | |
1469 }, | |
1470 }, | |
1471 //IQ swap | |
1472 SWAP_IQ_GSM850, | |
1473 }; | |
1474 | |
1475 //copy from dcs1800 | |
1476 const T_RF_BAND rf_1900 = | |
1477 { | |
1478 { //RX structure | |
1479 { //T_RX_CAL_PARAMS rx_cal_params | |
1480 188, //g_magic | |
1481 40, //lna gain * 2 | |
1482 40, //lna_th_high | |
1483 44 //lna_th_low | |
1484 }, | |
1485 { //T_RF_AGC_BAND agc_bands[RF_RX_CAL_CHAN_SIZE]; | |
1486 /*--------------*/ | |
1487 /*-- PCS band --*/ | |
1488 /*--------------*/ | |
1489 { 548, 0}, // | |
1490 { 622, 0}, // | |
1491 { 680, 0}, // | |
1492 { 745, 0}, // | |
1493 { 812, 0}, // | |
1494 { 860, 0}, // | |
1495 { 885, 0}, // | |
1496 { 991, 0}, // | |
1497 { 992, 0}, // | |
1498 {1023, 0}, // | |
1499 }, | |
1500 { //RX temperature compensation | |
1501 { -15 , 0 }, | |
1502 { -5 , 0 }, | |
1503 { 6 , 0 }, | |
1504 { 16 , 0 }, | |
1505 { 25 , 0 }, | |
1506 { 35 , 0 }, | |
1507 { 45 , 0 }, | |
1508 { 56 , 0 }, | |
1509 { 66 , 0 }, | |
1510 { 75 , 0 }, | |
1511 { 100 , 0 } | |
1512 } | |
1513 }, | |
1514 { //TX structure | |
1515 {// pcs1900 T_LEVEL_TX | |
1516 #if (PA == 3) // Hitachi | |
1517 {915, 0, 0}, // 0 Highest power | |
1518 {715, 1, 0}, // 1 | |
1519 {570, 2, 0}, // 2 | |
1520 {465, 3, 0}, // 3 | |
1521 {390, 4, 0}, // 4 | |
1522 {320, 5, 0}, // 5 | |
1523 {265, 6, 0}, // 6 | |
1524 {220, 7, 0}, // 7 | |
1525 {183, 8, 0}, // 8 | |
1526 {155, 9, 0}, // 9 | |
1527 {129, 10, 0}, // 10 | |
1528 {111, 11, 0}, // 11 | |
1529 {93, 12, 0}, // 12 | |
1530 {80, 13, 0}, // 13 | |
1531 {72, 14, 0}, // 14 | |
1532 {62, 15, 0}, // 15 Lowest power | |
1533 {62, 15, 0}, // 16 | |
1534 {62, 15, 0}, // 17 | |
1535 {62, 15, 0}, // 18 | |
1536 {62, 15, 0}, // 19 | |
1537 {62, 15, 0}, // 20 | |
1538 {62, 15, 0}, // 21 | |
1539 {62, 15, 0}, // 22 | |
1540 {62, 15, 0}, // 23 | |
1541 {62, 15, 0}, // 24 | |
1542 {62, 15, 0}, // 25 | |
1543 {62, 15, 0}, // 26 | |
1544 {62, 15, 0}, // 27 | |
1545 {62, 15, 0}, // 28 | |
1546 {915, 0, 0}, // 29 Highest power | |
1547 {915, 0, 0}, // 30 Highest power | |
1548 {915, 0, 0}, // 31 Highest power | |
1549 #else | |
1550 { 949, 0, 0 }, // 0 Highest power | |
1551 { 615, 1, 0 }, // 1 | |
1552 { 499, 2, 0 }, // 2 | |
1553 { 404, 3, 0 }, // 3 | |
1554 { 328, 4, 0 }, // 4 | |
1555 { 270, 5, 0 }, // 5 | |
1556 { 224, 6, 0 }, // 6 | |
1557 { 187, 7, 0 }, // 7 | |
1558 { 158, 8, 0 }, // 8 | |
1559 { 137, 9, 0 }, // 9 | |
1560 { 119, 10, 0 }, // 10 | |
1561 { 105, 11, 0 }, // 11 | |
1562 { 92, 12, 0 }, // 12 | |
1563 { 81, 13, 0 }, // 13 | |
1564 { 75, 14, 0 }, // 14 | |
1565 { 70, 15, 0 }, // 15 Lowest power | |
1566 { 70, 15, 0 }, // 16 | |
1567 { 70, 15, 0 }, // 17 | |
1568 { 70, 15, 0 }, // 18 | |
1569 { 70, 15, 0 }, // 19 | |
1570 { 70, 15, 0 }, // 20 | |
1571 { 70, 15, 0 }, // 21 | |
1572 { 70, 15, 0 }, // 22 | |
1573 { 70, 15, 0 }, // 23 | |
1574 { 70, 15, 0 }, // 24 | |
1575 { 70, 15, 0 }, // 25 | |
1576 { 70, 15, 0 }, // 26 | |
1577 { 70, 15, 0 }, // 27 | |
1578 { 70, 15, 0 }, // 28 | |
1579 { 754, 0, 0 }, // 29 Highest power | |
1580 { 754, 0, 0 }, // 30 Highest power | |
1581 { 754, 0, 0 }, // 31 Highest power | |
1582 #endif | |
1583 }, | |
1584 {// Channel Calibration Tables | |
1585 {// arfcn, tx_chan_cal | |
1586 { 554, 128 }, // Calibration Table 0 | |
1587 { 722, 128 }, | |
1588 { 746, 128 }, | |
1589 { 774, 128 }, | |
1590 { 808, 128 }, | |
1591 { 810, 128 }, | |
1592 { 810, 128 }, | |
1593 { 810, 128 } | |
1594 }, | |
1595 { | |
1596 { 554, 128 }, // Calibration Table 1 | |
1597 { 722, 128 }, | |
1598 { 746, 128 }, | |
1599 { 774, 128 }, | |
1600 { 808, 128 }, | |
1601 { 810, 128 }, | |
1602 { 810, 128 }, | |
1603 { 810, 128 } | |
1604 }, | |
1605 {// arfcn, tx_chan_cal | |
1606 { 554, 128 }, // Calibration Table 2 | |
1607 { 722, 128 }, | |
1608 { 746, 128 }, | |
1609 { 774, 128 }, | |
1610 { 808, 128 }, | |
1611 { 810, 128 }, | |
1612 { 810, 128 }, | |
1613 { 810, 128 } | |
1614 }, | |
1615 {// arfcn, tx_chan_cal | |
1616 { 554, 128 }, // Calibration Table 3 | |
1617 { 722, 128 }, | |
1618 { 746, 128 }, | |
1619 { 774, 128 }, | |
1620 { 808, 128 }, | |
1621 { 810, 128 }, | |
1622 { 810, 128 }, | |
1623 { 810, 128 } | |
1624 } | |
1625 }, | |
1626 { // PCS Power Ramp Values | |
1627 #if (PA == 3) // Hitachi | |
1628 { | |
1629 {// Ramp-Up #0 profile - Power Level 0 | |
1630 0,0,0,0,6,2,0,1, | |
1631 5,4,12,31,31,25,10,1 | |
1632 }, | |
1633 {// Ramp-Down #0 profile | |
1634 8,11,18,31,31,17,12,0, | |
1635 0,0,0,0,0,0,0,0 | |
1636 }, | |
1637 }, | |
1638 { | |
1639 {// Ramp-Up #1 profile - Power Level 1 | |
1640 0,0,0,0,7,6,1,3, | |
1641 4,0,2,15,31,31,24,4 | |
1642 }, | |
1643 {// Ramp-Down #1 profile | |
1644 8,25,31,19,19,20,6,0, | |
1645 0,0,0,0,0,0,0,0 | |
1646 }, | |
1647 }, | |
1648 { | |
1649 {// Ramp-Up #2 profile - Power Level 2 | |
1650 0,0,0,0,8,6,0,2, | |
1651 4,6,3,17,31,31,18,2 | |
1652 }, | |
1653 {// Ramp-Down #2 profile | |
1654 4,10,31,29,31,23,0,0, | |
1655 0,0,0,0,0,0,0,0 | |
1656 }, | |
1657 }, | |
1658 { | |
1659 {// Ramp-Up #3 profile - Power Level 3 | |
1660 0,0,0,0,3,4,10,4, | |
1661 2,0,2,13,31,31,26,2 | |
1662 }, | |
1663 {// Ramp-Down #3 profile | |
1664 6,24,22,20,27,20,9,0, | |
1665 0,0,0,0,0,0,0,0 | |
1666 }, | |
1667 }, | |
1668 { | |
1669 {// Ramp-Up #4 profile - Power Level 4 | |
1670 0,0,0,8,0,6,7,9, | |
1671 2,0,7,7,31,31,19,1 | |
1672 }, | |
1673 {// Ramp-Down #4 profile | |
1674 3,14,28,31,31,12,9,0, | |
1675 0,0,0,0,0,0,0,0 | |
1676 }, | |
1677 }, | |
1678 { | |
1679 {// Ramp-Up #5 profile - Power Level 5 | |
1680 0,0,0,1,12,0,4,4, | |
1681 4,9,6,12,31,27,17,1 | |
1682 }, | |
1683 {// Ramp-Down #5 profile | |
1684 3,18,31,31,11,26,4,4, | |
1685 0,0,0,0,0,0,0,0 | |
1686 }, | |
1687 }, | |
1688 { | |
1689 {// Ramp-Up #6 profile - Power Level 6 | |
1690 0,0,0,3,8,7,2,7, | |
1691 1,4,22,5,29,26,12,2 | |
1692 }, | |
1693 {// Ramp-Down #6 profile | |
1694 4,20,21,31,31,21,0,0, | |
1695 0,0,0,0,0,0,0,0 | |
1696 }, | |
1697 }, | |
1698 { | |
1699 {// Ramp-Up #7 profile - Power Level 7 | |
1700 0,0,0,4,8,2,7,7, | |
1701 5,7,6,6,31,31,14,0 | |
1702 }, | |
1703 {// Ramp-Down #7 profile | |
1704 3,13,31,31,31,19,0,0, | |
1705 0,0,0,0,0,0,0,0 | |
1706 }, | |
1707 }, | |
1708 { | |
1709 {// Ramp-Up #8 profile - Power Level 8 | |
1710 0,0,0,6,2,8,3,5, | |
1711 16,3,9,25,6,31,14,0 | |
1712 }, | |
1713 {// Ramp-Down #8 profile | |
1714 5,13,29,31,31,19,0,0, | |
1715 0,0,0,0,0,0,0,0 | |
1716 }, | |
1717 }, | |
1718 { | |
1719 {// Ramp-Up #9 profile - Power Level 9 | |
1720 0,0,0,7,2,0,8,12, | |
1721 17,3,31,9,3,27,8,1 | |
1722 }, | |
1723 {// Ramp-Down #9 profile | |
1724 1,17,22,31,31,26,0,0, | |
1725 0,0,0,0,0,0,0,0 | |
1726 }, | |
1727 }, | |
1728 { | |
1729 {// Ramp-Up #10 profile - Power Level 10 | |
1730 0,0,0,6,2,3,6,8, | |
1731 12,31,14,18,15,11,2,0 | |
1732 }, | |
1733 {// Ramp-Down #10 profile | |
1734 3,8,27,21,31,31,7,0, | |
1735 0,0,0,0,0,0,0,0 | |
1736 }, | |
1737 }, | |
1738 { | |
1739 {// Ramp-Up #11 profile - Power Level 11 | |
1740 0,0,0,3,3,4,2,28, | |
1741 12,31,31,7,3,3,1,0 | |
1742 }, | |
1743 {// Ramp-Down #11 profile | |
1744 3,12,26,20,31,31,5,0, | |
1745 0,0,0,0,0,0,0,0 | |
1746 }, | |
1747 }, | |
1748 { | |
1749 {// Ramp-Up #12 profile - Power Level 12 | |
1750 0,0,0,1,4,9,31,30, | |
1751 26,20,7,0,0,0,0,0 | |
1752 }, | |
1753 {// Ramp-Down #12 profile | |
1754 2,4,29,31,31,31,0,0, | |
1755 0,0,0,0,0,0,0,0 | |
1756 }, | |
1757 }, | |
1758 { | |
1759 {// Ramp-Up #13 profile - Power Level 13 | |
1760 0,0,0,0,8,30,28,31, | |
1761 16,11,4,0,0,0,0,0 | |
1762 }, | |
1763 {// Ramp-Down #13 profile | |
1764 2,4,31,31,31,29,0,0, | |
1765 0,0,0,0,0,0,0,0 | |
1766 }, | |
1767 }, | |
1768 { | |
1769 {// Ramp-Up #14 profile - Power Level 14 | |
1770 0,0,0,6,26,28,30,25, | |
1771 13,0,0,0,0,0,0,0 | |
1772 }, | |
1773 {// Ramp-Down #14 profile | |
1774 0,6,18,31,31,31,11,0, | |
1775 0,0,0,0,0,0,0,0 | |
1776 }, | |
1777 }, | |
1778 { | |
1779 {// Ramp-Up #15 profile - Power Level 15 | |
1780 0,0,24,22,21,20,21,14, | |
1781 6,0,0,0,0,0,0,0 | |
1782 }, | |
1783 {// Ramp-Down #15 profile | |
1784 0,0,22,31,24,30,21,0, | |
1785 0,0,0,0,0,0,0,0 | |
1786 }, | |
1787 }, | |
1788 }, | |
1789 #else | |
1790 { { 0,0,13,0,0,0,5,0,0,13,24,31,31,11,0,0 }, // Ramp-Up #0 profile - Power Level 0 | |
1791 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1792 { { 0,0,0,21,0,0,0,0,0,11,30,31,25,10,0,0 }, // Ramp-Up #0 profile - Power Level 1 | |
1793 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1794 { { 0,0,0,0,6,20,0,0,0,0,31,31,30,10,0,0 }, // Ramp-Up #0 profile - Power Level 2 | |
1795 { 0,31,27,28,24,18,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1796 { { 0,0,0,30,0,0,0,0,0,0,16,30,31,21,0,0 }, // Ramp-Up #0 profile - Power Level 3 | |
1797 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1798 { { 0,0,0,0,31,0,0,0,0,12,31,30,24,0,0,0 }, // Ramp-Up #0 profile - Power Level 4 | |
1799 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1800 { { 0,0,0,31,0,0,0,0,0,0,31,31,31,4,0,0 }, // Ramp-Up #0 profile - Power Level 5 | |
1801 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1802 { { 0,0,0,6,31,0,0,0,0,0,25,31,31,4,0,0 }, // Ramp-Up #0 profile - Power Level 6 | |
1803 { 0,31,31,31,31,4,0,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1804 { { 0,0,0,0,19,31,0,0,0,0,12,31,31,4,0,0 }, // Ramp-Up #0 profile - Power Level 7 | |
1805 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1806 { { 0,0,0,20,31,0,0,0,0,0,11,31,31,4,0,0 }, // Ramp-Up #0 profile - Power Level 8 | |
1807 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1808 { { 0,0,0,21,31,0,0,0,0,0,14,31,31,0,0,0 }, // Ramp-Up #0 profile - Power Level 9 | |
1809 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1810 { { 0,0,0,0,27,31,0,0,0,16,18,0,31,5,0,0 }, // Ramp-Up #0 profile - Power Level 10 | |
1811 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1812 { { 0,0,0,31,0,0,0,31,31,0,31,4,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 11 | |
1813 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1814 { { 0,0,0,0,0,16,27,31,31,23,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 12 | |
1815 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1816 { { 0,0,0,0,16,31,25,31,25,0,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 13 | |
1817 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1818 { { 0,0,0,0,31,31,31,31,4,0,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 14 | |
1819 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, // Ramp-Down #0 profile | |
1820 { { 0,0,0,0,31,31,31,31,4,0,0,0,0,0,0,0 }, // Ramp-Up #0 profile - Power Level 15 | |
1821 { 0,0,31,31,31,31,4,0,0,0,0,0,0,0,0,0 }, }, }, // Ramp-Down #0 profile | |
1822 #endif | |
1823 { //TX temperature compensation | |
1824 #if (ORDER2_TX_TEMP_CAL==1) | |
1825 { -11, 0, 0, 0 }, | |
1826 { +9, 0, 0, 0 }, | |
1827 { +39, 0, 0, 0 }, | |
1828 { +59, 0, 0, 0 }, | |
1829 { 127, 0, 0, 0 } | |
1830 #else | |
1831 { -11, 0 }, | |
1832 { +9, 0 }, | |
1833 { +39, 0 }, | |
1834 { +59, 0 }, | |
1835 { 127, 0 } | |
1836 #endif | |
1837 }, | |
1838 }, | |
1839 //IQ swap | |
1840 SWAP_IQ_PCS | |
1841 }; | |
1842 | |
1843 /*------------------------------------------*/ | |
1844 /* ABB Initialization words | |
1845 /*------------------------------------------*/ | |
1846 #if (ANALOG == 1) | |
1847 UWORD16 abb[ABB_TABLE_SIZE] = | |
1848 { | |
1849 C_AFCCTLADD, // Value at reset | |
1850 C_VBUR, // Uplink gain amp 0dB, Sidetone gain to mute | |
1851 C_VBDR, // Downlink gain amp 0dB, Volume control 0 dB | |
1852 C_BBCTL, // value at reset | |
1853 C_APCOFF, // value at reset | |
1854 C_BULIOFF, // value at reset | |
1855 C_BULQOFF, // value at reset | |
1856 C_DAI_ON_OFF, // value at reset | |
1857 C_AUXDAC, // value at reset | |
1858 C_VBCR, // VULSWITCH=0, VDLAUX=1, VDLEAR=1 | |
1859 C_APCDEL // value at reset | |
1860 }; | |
1861 #elif (ANALOG == 2) | |
1862 UWORD16 abb[ABB_TABLE_SIZE] = | |
1863 { | |
1864 C_AFCCTLADD, | |
1865 C_VBUR, | |
1866 C_VBDR, | |
1867 C_BBCTL, | |
1868 C_BULGCAL, | |
1869 C_APCOFF, | |
1870 C_BULIOFF, | |
1871 C_BULQOFF, | |
1872 C_DAI_ON_OFF, | |
1873 C_AUXDAC, | |
1874 C_VBCR, | |
1875 C_VBCR2, | |
1876 C_APCDEL, | |
1877 C_APCDEL2 | |
1878 }; | |
1879 | |
1880 #elif (ANALOG == 3) | |
1881 UWORD16 abb[ABB_TABLE_SIZE] = | |
1882 { | |
1883 C_AFCCTLADD, | |
1884 C_VBUR, | |
1885 C_VBDR, | |
1886 C_BBCTL, | |
1887 C_BULGCAL, | |
1888 C_APCOFF, | |
1889 C_BULIOFF, | |
1890 C_BULQOFF, | |
1891 C_DAI_ON_OFF, | |
1892 C_AUXDAC, | |
1893 C_VBCR, | |
1894 C_VBCR2, | |
1895 C_APCDEL, | |
1896 C_APCDEL2, | |
1897 C_VBPOP, | |
1898 C_VAUDINITD, | |
1899 C_VAUDCR, | |
1900 C_VAUOCR, | |
1901 C_VAUSCR, | |
1902 C_VAUDPLL | |
1903 }; | |
1904 | |
1905 #endif | |
1906 | |
1907 /*------------------------------------------*/ | |
1908 /* Gain table */ | |
1909 /* specified in the TRF6053 spec */ | |
1910 /* 2 dB steps - LNA always ON */ | |
1911 /*------------------------------------------*/ | |
1912 UWORD16 AGC_TABLE[AGC_TABLE_SIZE] = | |
1913 { | |
1914 0x00, //reserved | |
1915 0x01, //reserved | |
1916 0x02, //reserved | |
1917 0x03, //reserved | |
1918 0x04, //reserved | |
1919 0x05, //reserved | |
1920 0x06, //14 dB | |
1921 0x07, //16 | |
1922 0x08, //18 | |
1923 0x09, //20 | |
1924 0x0a, //22 | |
1925 0x0b, //24 | |
1926 0x0c, //26 | |
1927 0x0d, //28 | |
1928 0x0e, //30 | |
1929 0x0f, //32 | |
1930 0x10, //34 | |
1931 0x11, //36 | |
1932 0x12, //38 | |
1933 0x13, //40 | |
1934 /* | |
1935 0x14, //reserved | |
1936 0x15, //reserved | |
1937 0x16, //reserved | |
1938 0x17, //reserved | |
1939 0x18, //reserved | |
1940 0x19, //reserved | |
1941 0x1a, //reserved | |
1942 0x1b, //reserved | |
1943 0x1c, //reserved | |
1944 0x1d, //reserved | |
1945 0x1e, //reserved | |
1946 0x1f, //reserved | |
1947 */ | |
1948 }; | |
1949 | |
1950 // structure for ADC conversion (4 Internal channel + 5 Ext channels max.) | |
1951 T_ADC adc; | |
1952 | |
1953 // MADC calibration structure | |
1954 T_ADCCAL adc_cal= | |
1955 { // a: 0,..,8 | |
1956 // b, 0,..,8 | |
1957 // cal_a = 4*1750 is the Typical value 1.75 V ref voltage , divide by 4 | |
1958 7000, 8750, 7000, 7000, 7000, 7000, 7000, 256, 7000, | |
1959 0, 0, 0, 0, 0, 0, 0, 0, 0 | |
1960 }; | |
1961 | |
1962 #if (BOARD == 41) | |
1963 // table which converts ADC value into RF temperature | |
1964 T_TEMP temperature[TEMP_TABLE_SIZE] = | |
1965 { | |
1966 // Temperature compensation for EVARITA - S.Glock, J.Demay 04/23/2003 | |
1967 582, -40, | |
1968 640, -10, | |
1969 698, 25, | |
1970 756, 60, | |
1971 815, 90 | |
1972 }; | |
1973 #else | |
1974 // table which converts ADC value into RF temperature | |
1975 T_TEMP temperature[TEMP_TABLE_SIZE] = | |
1976 { | |
1977 7, -35, | |
1978 7, -34, | |
1979 8, -33, | |
1980 8, -32, | |
1981 9, -31, | |
1982 9, -30, | |
1983 10, -29, | |
1984 11, -28, | |
1985 11, -27, | |
1986 12, -26, | |
1987 13, -25, | |
1988 14, -24, | |
1989 14, -23, | |
1990 15, -22, | |
1991 16, -21, | |
1992 17, -20, | |
1993 18, -19, | |
1994 19, -18, | |
1995 21, -17, | |
1996 22, -16, | |
1997 23, -15, | |
1998 24, -14, | |
1999 26, -13, | |
2000 27, -12, | |
2001 29, -11, | |
2002 30, -10, | |
2003 32, -9, | |
2004 34, -8, | |
2005 36, -7, | |
2006 37, -6, | |
2007 39, -5, | |
2008 41, -4, | |
2009 44, -3, | |
2010 46, -2, | |
2011 48, -1, | |
2012 51, 0, | |
2013 53, 1, | |
2014 56, 2, | |
2015 59, 3, | |
2016 61, 4, | |
2017 64, 5, | |
2018 68, 6, | |
2019 71, 7, | |
2020 74, 8, | |
2021 78, 9, | |
2022 81, 10, | |
2023 85, 11, | |
2024 89, 12, | |
2025 93, 13, | |
2026 97, 14, | |
2027 101, 15, | |
2028 105, 16, | |
2029 110, 17, | |
2030 115, 18, | |
2031 119, 19, | |
2032 124, 20, | |
2033 130, 21, | |
2034 135, 22, | |
2035 140, 23, | |
2036 146, 24, | |
2037 152, 25, | |
2038 158, 26, | |
2039 164, 27, | |
2040 170, 28, | |
2041 176, 29, | |
2042 183, 30, | |
2043 190, 31, | |
2044 197, 32, | |
2045 204, 33, | |
2046 211, 34, | |
2047 219, 35, | |
2048 226, 36, | |
2049 234, 37, | |
2050 242, 38, | |
2051 250, 39, | |
2052 259, 40, | |
2053 267, 41, | |
2054 276, 42, | |
2055 285, 43, | |
2056 294, 44, | |
2057 303, 45, | |
2058 312, 46, | |
2059 322, 47, | |
2060 331, 48, | |
2061 341, 49, | |
2062 351, 50, | |
2063 361, 51, | |
2064 371, 52, | |
2065 382, 53, | |
2066 392, 54, | |
2067 403, 55, | |
2068 413, 56, | |
2069 424, 57, | |
2070 435, 58, | |
2071 446, 59, | |
2072 458, 60, | |
2073 469, 61, | |
2074 480, 62, | |
2075 492, 63, | |
2076 503, 64, | |
2077 515, 65, | |
2078 527, 66, | |
2079 539, 67, | |
2080 550, 68, | |
2081 562, 69, | |
2082 574, 70, | |
2083 586, 71, | |
2084 598, 72, | |
2085 611, 73, | |
2086 623, 74, | |
2087 635, 75, | |
2088 647, 76, | |
2089 659, 77, | |
2090 671, 78, | |
2091 683, 79, | |
2092 696, 80, | |
2093 708, 81, | |
2094 720, 82, | |
2095 732, 83, | |
2096 744, 84, | |
2097 756, 85, | |
2098 768, 86, | |
2099 780, 87, | |
2100 792, 88, | |
2101 804, 89, | |
2102 816, 90, | |
2103 827, 91, | |
2104 839, 92, | |
2105 851, 93, | |
2106 862, 94, | |
2107 873, 95 | |
2108 }; | |
2109 #endif |