FreeCalypso > hg > fc-tourmaline
annotate src/g23m-gsm/alr2/alr.h @ 277:0196b6bf633c
R2D: LCD hardware suspend implemented for Luna
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 07 Sep 2021 22:18:20 +0000 |
parents | 3a14ee9a9843 |
children |
rev | line source |
---|---|
2
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 +----------------------------------------------------------------------------- |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 | Project : GSM-PS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 | Modul : ALR |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
5 +----------------------------------------------------------------------------- |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
6 | Copyright 2002 Texas Instruments Berlin, AG |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 | All rights reserved. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 | |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 | This file is confidential and a trade secret of Texas |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 | Instruments Berlin, AG |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 | The receipt of or possession of this file does not convey |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 | any rights to reproduce or disclose its contents or to |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 | manufacture, use, or sell anything it may describe, in |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 | whole, or in part, without the specific written consent of |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
15 | Texas Instruments Berlin, AG. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
16 +----------------------------------------------------------------------------- |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
17 | Purpose : Definitions for the Protocol Stack Entity ALR |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
18 +----------------------------------------------------------------------------- |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
19 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
20 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
21 #ifndef ALR_H |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
22 #define ALR_H |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
23 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
24 #define STOP_SYNC_TASK /* stop always any sync tasks before start a new one */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
25 #if 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
26 #define DL_TRACE_ENABLED /* use DL offline trace */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
27 #define TRACE_STATE_TRANSITION /* trace some state transitions */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
28 #endif /* 0 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
29 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
30 #if !defined(_SIMULATION_) && defined(WIN32) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
31 #define _SIMULATION_ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
32 #endif /* !_SIMULATION_ && WIN32 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
33 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
34 #if defined(_SIMULATION_) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
35 #undef DL_TRACE_ENABLED /* no _SYST trace during simulation */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
36 #endif /* WIN32 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
37 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
38 #define SYST_TRACE(a) vsi_o_ttrace(0, 0xFFFF,a) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
39 #define SYST 0, 0xffff |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
40 #define SYST_TRACE_P(a) vsi_o_ttrace a |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
41 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
42 * use it as showed next line... |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
43 * SYST_TRACE_P((SYST, "e.g. two parameter: %d %d", p1, p2)); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
44 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
45 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
46 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
47 #if !defined(ELEMENTS) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
48 #define ELEMENTS(array) (sizeof(array)/sizeof(array[0])) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
49 #endif /* !ELEMENTS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
50 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
51 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
52 * for voice memo |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
53 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
54 #include "p_cst.h" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
55 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
56 /* Bitoffset for Message Buffer allocation */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
57 #define ENCODE_OFFSET 24 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
58 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
59 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
60 * Bitmasks |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
61 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
62 #define BIT_0 0x01 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
63 #define BIT_1 0x02 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
64 #define BIT_2 0x04 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
65 #define BIT_3 0x08 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
66 #define BIT_4 0x10 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
67 #define BIT_5 0x20 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
68 #define BIT_6 0x40 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
69 #define BIT_7 0x80 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
70 #define BIT_012 0x07 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
71 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
72 #include "p_ph.h" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
73 #include "p_mph.h" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
74 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
75 /* First 40 carriers per band will be added at top of the MPH_POWER_CNF |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
76 * and the next 20 Carriers (40 to 60) will be added at the bottom. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
77 * Remaining carriers needs to be ignored. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
78 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
79 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
80 #define ADD_AT_THE_TOP 0x01 /* first 40 carrier */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
81 #define ADD_AT_THE_BOTTOM 0x02 /* already 40 carriers were added */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
82 #define REACHED_THE_MAXIMUM 0x04 /* already 60 carriers were added */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
83 #define DO_NOT_ADD 0x08 /* wrong carrier */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
84 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
85 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
86 /* Private modes */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
87 #define MODE_CHAN_ASS_FAIL 16 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
88 #define MODE_HANDOVER_FAIL 17 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
89 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
90 /* Results of configuration dedicated mode */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
91 #define DEDICATED_SUCCESS 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
92 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
93 #define ALR_ALLOCATE_NEW_BA(v) ((((v)+1) % (ALR_BA_HIGH-ALR_BA_LOW+1)) + ALR_BA_LOW) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
94 #define IS_EXT_MEAS_RUNNING (alr_data->cs_data.mph_ext_meas_req NEQ NULL) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
95 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
96 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
97 * Dynamic Configurations |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
98 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
99 #define ID_STD 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
100 #define ID_CONFIG 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
101 #define ID_MON_COUNTER_IDLE 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
102 #define ID_MON_COUNTER_DEDI 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
103 #define ID_TRC_DATA_IND 5 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
104 #define ID_RACH_FAILURE 6 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
105 #define ID_EOTD 7 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
106 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
107 #define ID_TRC_DATA_IND_ALL 0xff |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
108 #define ID_TRC_DATA_IND_VALID 0x7f |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
109 #define ID_TRC_DATA_IND_INVALID 0x80 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
110 #define ID_TRC_DATA_IND_BCCH 0x01 /* normal and extended BCCH */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
111 #define ID_TRC_DATA_IND_PCH 0x02 /* normal and extended PCH */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
112 #define ID_TRC_DATA_IND_CCCH 0x04 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
113 #define ID_TRC_DATA_IND_CBCH 0x08 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
114 #define ID_TRC_DATA_IND_SCCH 0x10 /* SACCH and SDCCH */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
115 #define ID_TRC_DATA_IND_FCCH 0x20 /* full and half rate FACCH */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
116 #define ID_TRC_DATA_IND_STATE 0x40 /* MA status */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
117 #define ID_TRC_DATA_IND_INIT 0x3f /* all valid frames without stati */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
118 #define ID_TRC_DATA_IND_INIT2 0x1f /* ... without FACCH */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
119 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
120 EXTERN UBYTE v_mon_trc_data_ind; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
121 EXTERN UBYTE v_cfg_rach_failure; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
122 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
123 /* In addition to normal page modes defined in SAP */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
124 #define PGM_REORG_CS 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
125 #define NO_PGM_CHANGE 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
126 #define SAVED_PGM 0xff |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
127 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
128 /*If page mode is set to REORG and a HPLMN search is performed, L1 cannot |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
129 synchronize to NC's. Therefore NORMAL page mode is started. This state |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
130 defines that the mobile should be in REORG, but actual is in NORMAL.*/ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
131 #define PGM_REORG_NC_SYNC 5 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
132 EXTERN UBYTE page_mode_before_hplmn_search;/*to distinguish PGM_REORG and PGM_REORG_CS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
133 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
134 /* Page Mode Changes */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
135 #define NONE 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
136 #define SWAP_TO_EXTEND 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
137 #define SWAP_TO_REORG 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
138 #define SWAP_TO_NORMAL 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
139 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
140 #define MAX_GSM_CHANNEL_ATTEMPTS 40 /* GSM says 30, but this is done in the field */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
141 #define MAX_DPCS_CHANNEL_ATTEMPTS 40 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
142 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
143 /* Band Limitations for multiband reporting */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
144 #define NO_BAND_LIMITATION 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
145 #define EXCLUDE_SC_BAND 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
146 #define ONLY_SC_BAND 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
147 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
148 #define IMSI_LEN 9 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
149 #define SI_CONTENTS_MSG_T 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
150 #define SI_CONTENTS_CS2 9 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
151 #define ONLY_ACS 0x80 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
152 #define STOP_PCH_READING 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
153 #define DONT_STOP_PCH_READING 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
154 #define STOP_MEASUREMENTS 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
155 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
156 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
157 * Neighbour cell status |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
158 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
159 /* #define DEFINE_OLD_NC_STATUS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
160 #if !defined(DEFINE_OLD_NC_STATUS) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
161 /* neighbour cell base stati */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
162 #define NCS_INACTIVE 0x00 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
163 #define NCS_IDLE 0x01 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
164 #define NCS_FB_SB 0x02 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
165 #define NCS_SB 0x03 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
166 /* neighbour cell bit masks */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
167 #define NCB_BCCH 0x04 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
168 #define NCB_READ 0x08 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
169 #define NCB_PENDING 0x10 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
170 #define NCB_SYNC 0x20 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
171 #define NCB_RR_NOT_INFORMED 0x40 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
172 #define NCB_FAILED 0x80 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
173 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
174 /* neighbour cell stati */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
175 /* 1of<n> n = 6,12 means that the cell belongs to the n strongest */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
176 /* RLA_C means Received Level Averages according GSM 05.08 seciton 6.1 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
177 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
178 /* (1) no PERIODIC measurement received; cell is excluded from all activities except rxlev measurement */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
179 #define INACTIVE (NCS_INACTIVE) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
180 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
181 /* (2) PERIODIC measurement received; not synchronized; BCCH data unknown */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
182 #define IDLE (NCS_IDLE) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
183 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
184 /* (11a) not a 1of12 cell any more; synchronized */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
185 #define IDLE_SYNC (NCS_IDLE|NCB_SYNC) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
186 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
187 /* (3) strong cell(1of12); not synchronized yet; need first FB and SB synchronization */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
188 #define READ_FB_SB (NCS_FB_SB|NCB_READ) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
189 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
190 /* (4) first FB and SB synchronization ongoing */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
191 #define READ_FB_SB_PENDING (NCS_FB_SB|NCB_READ|NCB_PENDING) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
192 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
193 /* (9) synchronized; need re-synchronization of SB (10/30 sec); no need to read BCCH */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
194 #define READ_SB (NCS_SB|NCB_READ) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
195 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
196 /* (10) re-synchronization of SB ongoing (10/30 sec); no reading of BCCH */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
197 #define READ_SB_PENDING (NCS_SB|NCB_READ|NCB_PENDING) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
198 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
199 /* (9a) synchronized; need re-synchronization of SB and re-reading of BCCH (5 min) */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
200 #define READ_SB_BCCH (NCS_SB|NCB_READ|NCB_BCCH) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
201 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
202 /* (10a) re-synchronization of SB ongoing (5 min) */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
203 #define READ_SB_BCCH_PENDING (NCS_SB|NCB_READ|NCB_BCCH|NCB_PENDING) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
204 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
205 /* (11a) re-synchronization of SB finished; need re-reading of BCCH (5 min) */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
206 #define READ_BCCH (NCS_SB|NCB_READ|NCB_BCCH|NCB_SYNC) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
207 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
208 /* (12a) re-reading of BCCH ongoing (5 min) */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
209 #define READ_BCCH_PENDING (NCS_SB|NCB_READ|NCB_BCCH|NCB_SYNC|NCB_PENDING) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
210 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
211 /* (5) 1of6 cell; synchronized; BCCH data unknown; need to read BCCH, but to notify RR after a measurement ind only */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
212 #define READ_BCCH_RR_NOT_INFORMED (NCS_SB|NCB_READ|NCB_BCCH|NCB_SYNC|NCB_RR_NOT_INFORMED) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
213 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
214 /* (6) 1of6 cell; reading of BCCH ongoing */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
215 #define READ_BCCH_PENDING_RR_NOT_INFORMED (NCS_SB|NCB_READ|NCB_BCCH|NCB_SYNC|NCB_RR_NOT_INFORMED|NCB_PENDING) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
216 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
217 /* (8) 1of12 cell; synchronized; in case 1of6: BCCH data known; RR is notified; subsequent RLA_Cs being computed */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
218 #define FB_SB_SYNC (NCS_FB_SB|NCB_SYNC) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
219 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
220 /* (7) 1of6 cell; synchronized; BCCH data known; RR not yet notified; first RLA_C being computed */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
221 #define FB_SB_SYNC_RR_NOT_INFORMED (NCS_FB_SB|NCB_SYNC|NCB_RR_NOT_INFORMED) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
222 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
223 /* (13) 1of<n> cell state questionable; FB/SB sync or BCCH reading failed 1 thru 8 times */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
224 #define FB_SB_FAILED (NCS_FB_SB|NCB_FAILED) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
225 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
226 /* (14) 1of<n> cell; synchronization of FB/SB or reading of BCCH failed > 8 times; NCC check failed; */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
227 #define EXCLUDED (NCB_FAILED) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
228 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
229 #else /* !DEFINE_OLD_NC_STATUS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
230 #define INACTIVE 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
231 #define IDLE 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
232 #define READ_BCCH 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
233 #define FB_SB_SYNC 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
234 #define FB_SB_FAILED 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
235 #define READ_FB_SB 5 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
236 #define READ_SB 6 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
237 #define IDLE_SYNC 7 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
238 #define EXCLUDED 8 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
239 #define FB_SB_SYNC_RR_NOT_INFORMED 9 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
240 #define READ_SB_BCCH 10 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
241 #define READ_BCCH_PENDING 11 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
242 #define READ_FB_SB_PENDING 12 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
243 #define READ_SB_PENDING 13 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
244 #define READ_SB_BCCH_PENDING 14 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
245 #define READ_BCCH_RR_NOT_INFORMED 15 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
246 #define READ_BCCH_PENDING_RR_NOT_INFORMED 16 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
247 #endif /* !DEFINE_OLD_NC_STATUS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
248 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
249 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
250 * states of a neighbour cell with respect to the BA list |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
251 * in the last MPH_NEIGHBOURCELL_REQ. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
252 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
253 #define IN_BA 0 /* NCell was in last MPH_NEIGHBOURCELL_REQ */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
254 #define NOT_IN_BA_SHORT 1 /* NCell wasn't in last MPH_NEIGHBOURCELL_REQ but at last confirmation it had state IN_BA (not in BA for a short time) */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
255 #define NOT_IN_BA_LONG 2 /* NCell wasn't in last MPH_NEIGHBOURCELL_REQ and at last confirmation it hadn't state IN_BA (not in BA for a long time) */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
256 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
257 * Definitions for AMR |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
258 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
259 #define CM_AMR 0x41 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
260 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
261 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
262 * The times are given in number of multiframes. Each multiframe is |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
263 * equal to circa 217 milliseconds. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
264 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
265 #define THIRTY_SECONDS_SCELL_BCCH 128 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
266 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
267 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
268 * States Main Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
269 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
270 #define MA_NULL 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
271 #define MA_CELL_SELECTION 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
272 #define MA_IDLE 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
273 #define MA_CON_EST 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
274 #define MA_DEDICATED 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
275 #define MA_CELL_RESELECTION 5 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
276 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
277 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
278 #define MA_PTM 6 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
279 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
280 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
281 EXTERN const char * const |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
282 STATE_MA_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
283 #ifndef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
284 #define STATE_MA_NAME_INIT \ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
285 "MA_NULL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
286 "MA_CELL_SELECTION" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
287 "MA_IDLE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
288 "MA_CON_EST" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
289 "MA_DEDICATED" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
290 "MA_CELL_RESELECTION" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
291 #else /* !GPRS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
292 #define STATE_MA_NAME_INIT \ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
293 "MA_NULL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
294 "MA_CELL_SELECTION" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
295 "MA_IDLE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
296 "MA_CON_EST" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
297 "MA_DEDICATED" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
298 "MA_CELL_RESELECTION",\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
299 "MA_PTM" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
300 #endif /* !GPRS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
301 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
302 * States Idle Neighbour Cell |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
303 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
304 #define NC_NULL 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
305 #define NC_IDLE 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
306 #define NC_DEDICATED 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
307 #define NC_CON_EST 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
308 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
309 #define NC_PIM_PBCCH 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
310 #define NC_PTM_PBCCH 5 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
311 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
312 EXTERN const char * const |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
313 STATE_NC_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
314 #define STATE_NC_NAME_INIT \ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
315 "NC_NULL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
316 "NC_IDLE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
317 "NC_DEDICATED" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
318 "NC_CON_EST" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
319 "NC_PIM_PBCCH" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
320 "NC_PTM_PBCCH" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
321 #else |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
322 EXTERN const char * const |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
323 STATE_NC_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
324 #define STATE_NC_NAME_INIT \ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
325 "NC_NULL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
326 "NC_IDLE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
327 "NC_DEDICATED" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
328 "NC_CON_EST" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
329 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
330 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
331 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
332 * States Dedicated Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
333 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
334 #define DEDI_INACTIVE 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
335 #define DEDI_IMM_ASS 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
336 #define DEDI_IMM_ASS_RECONN 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
337 #define DEDI_ACTIVE 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
338 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
339 EXTERN const char * const |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
340 STATE_DEDI_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
341 #define STATE_DEDI_NAME_INIT \ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
342 "DEDI_INACTIVE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
343 "DEDI_IMM_ASS" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
344 "DEDI_IMM_ASS_RECONN",\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
345 "DEDI_ACTIVE" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
346 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
347 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
348 * States Cell Selection |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
349 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
350 #define CS_NULL 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
351 #define CS_INIT_L1 1 /* start with configuration of the radio band */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
352 #define CS_INIT_ACTIVE 2 /* configuration of the radio band is active */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
353 #define CS_INIT_DONE 3 /* configuration has done */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
354 #define CS_START_MEASURE 4 /* start measurement with preceding configuration */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
355 #define CS_ACTIVE_MEASURE 5 /* power measurement step is active */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
356 #define CS_MEASURED 6 /* power measurement step has finished */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
357 #define CS_INIT_SYNC 7 /* configuration of the radio band before SYNC */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
358 #define CS_STOP_SYNC 8 /* stop any sync task */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
359 #define CS_STOP_SYNC_DONE 9 /* no sync task active */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
360 #define CS_ACTIVE_SYNC 10 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
361 #define CS_ACTIVE_BCCH 11 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
362 #define CS_NW_SYNC_TIMEOUT 12 /* ALR has timed out whilst attempting to sync to a nw */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
363 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
364 EXTERN const char * const |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
365 STATE_CS_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
366 #define STATE_CS_NAME_INIT\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
367 "CS_NULL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
368 "CS_INIT_L1" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
369 "CS_INIT_ACTIVE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
370 "CS_INIT_DONE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
371 "CS_START_MEASURE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
372 "CS_ACTIVE_MEASURE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
373 "CS_MEASURED" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
374 "CS_INIT_SYNC" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
375 "CS_STOP_SYNC" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
376 "CS_STOP_SYNC_DONE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
377 "CS_ACTIVE_SYNC" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
378 "CS_ACTIVE_BCCH" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
379 "CS_NW_SYNC_TIMEOUT" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
380 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
381 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
382 * States PCH Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
383 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
384 #define PCH_NULL 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
385 #define PCH_ACTIVE 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
386 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
387 EXTERN const char * const |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
388 STATE_PCH_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
389 #define STATE_PCH_NAME_INIT\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
390 "PCH_NULL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
391 "PCH_ACTIVE" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
392 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
393 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
394 * States RACH Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
395 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
396 #define RA_NULL 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
397 #define RA_ACTIVE 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
398 #define RA_LISTEN_TO_CCCH 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
399 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
400 EXTERN const char * const |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
401 STATE_RA_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
402 #define STATE_RA_NAME_INIT \ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
403 "RA_NULL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
404 "RA_ACTIVE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
405 "RA_LISTEN_TO_CCCH" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
406 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
407 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
408 * States CBCH Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
409 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
410 #define CBCH_NULL 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
411 #define CBCH_IDLE 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
412 #define CBCH_NO_DRX 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
413 #define CBCH_DRX 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
414 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
415 #define CBCH_HZ_OFF 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
416 #define CBCH_HZ_IDLE 5 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
417 #define CBCH_HZ_PENDING 6 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
418 #define CBCH_HZ_RECEIVED 7 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
419 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
420 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
421 EXTERN const char * const STATE_NORMAL_CBCH_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
422 EXTERN const char * const STATE_EXT_CBCH_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
423 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
424 #define STATE_CBCH_NAME_INIT\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
425 "CBCH_NULL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
426 "CBCH_IDLE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
427 "CBCH_NO_DRX" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
428 "CBCH_DRX" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
429 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
430 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
431 * States Idle Mode Serving Cell |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
432 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
433 #define SC_NULL 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
434 #define SC_IDLE_INITIAL 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
435 #define SC_IDLE 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
436 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
437 EXTERN const char * const |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
438 STATE_SC_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
439 #define STATE_SC_NAME_INIT \ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
440 "SC_NULL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
441 "SC_IDLE_INITIAL" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
442 "SC_IDLE" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
443 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
444 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
445 * States Idle Mode Serving Cell |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
446 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
447 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
448 typedef enum { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
449 NC_ACQUIRE=0, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
450 NC_CONFIRM |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
451 } T_NCELL_PROC; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
452 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
453 EXTERN const char * const |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
454 STATE_NC_PROC_NAME[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
455 #define STATE_NC_PROC_NAME_INIT \ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
456 "NC_ACQUIRE" ,\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
457 "NC_CONFIRM" |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
458 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
459 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
460 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
461 * ALR manages 9 (MAX_STATE) states: CBCH,CS,MA,NC,PCH,RA,SC,DEDI,NC_PROC |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
462 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
463 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
464 #define STATE_CS 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
465 #define STATE_MA 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
466 #define STATE_NC 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
467 #define STATE_PCH 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
468 #define STATE_RA 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
469 #define STATE_SC 5 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
470 #define STATE_DEDI 6 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
471 #define STATE_NC_PROC 7 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
472 #define STATE_NORMAL_CBCH 8 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
473 #define STATE_EXT_CBCH 9 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
474 #define MAX_STATE 10 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
475 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
476 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
477 * A definition is provided in ALR_PEI.C |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
478 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
479 #ifdef ALR_PEI_C |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
480 GLOBAL const char * const STATE_NORMAL_CBCH_NAME[] = { STATE_CBCH_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
481 GLOBAL const char * const STATE_EXT_CBCH_NAME[] = { STATE_CBCH_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
482 GLOBAL const char * const STATE_CS_NAME [] = { STATE_CS_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
483 GLOBAL const char * const STATE_MA_NAME [] = { STATE_MA_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
484 GLOBAL const char * const STATE_NC_NAME [] = { STATE_NC_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
485 GLOBAL const char * const STATE_PCH_NAME [] = { STATE_PCH_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
486 GLOBAL const char * const STATE_RA_NAME [] = { STATE_RA_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
487 GLOBAL const char * const STATE_SC_NAME [] = { STATE_SC_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
488 GLOBAL const char * const STATE_DEDI_NAME[] = { STATE_DEDI_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
489 GLOBAL const char * const STATE_NC_PROC_NAME[]={ STATE_NC_PROC_NAME_INIT }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
490 #endif /* ALR_PIC_C */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
491 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
492 /*==== MACROS =====================================================*/ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
493 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
494 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
495 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
496 This macros convert channel numbers from and to the layer 1 specific |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
497 representation for the target version. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
498 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
499 For the single bands GSM900, DCS1800 and PCS1900 the macro is removed |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
500 at compile time. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
501 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
502 For dualband (STD==5,STD==6) a DCS1800 channel number is converted |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
503 using the convert function located at the end of alr_main.c |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
504 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
505 In the windows variant no change occurs. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
506 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
507 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
508 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
509 EXTERN USHORT convert_arfcn_to_l1 (USHORT arfcn, UBYTE local_std); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
510 EXTERN USHORT convert_arfcn_to_g23 (USHORT arfcn, UBYTE local_std); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
511 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
512 /* range check with the fastest way for ARM */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
513 /* corresponds with ((min <= x) AND (x <= max)) */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
514 #define INRANGE(min, x, max) ((unsigned)(x-min) <= (max-min)) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
515 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
516 #if defined (WIN32) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
517 #define ARFCN_TO_L1(a) ((USHORT)((a)&ARFCN_MASK)) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
518 #define ARFCN_TO_G23(a) ((USHORT)((a)&ARFCN_MASK)) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
519 #define ARFCN_STD_TO_L1(a,std) ((USHORT)((a)&ARFCN_MASK)) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
520 #define ARFCN_STD_TO_G23(a,std) ((USHORT)((a)&ARFCN_MASK)) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
521 #else |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
522 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
523 * target version |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
524 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
525 #define ARFCN_TO_L1(a) convert_arfcn_to_l1((USHORT)(a),std) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
526 #define ARFCN_TO_G23(a) convert_arfcn_to_g23((USHORT)(a),std) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
527 #define ARFCN_STD_TO_L1(a,std) convert_arfcn_to_l1((USHORT)(a),std) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
528 #define ARFCN_STD_TO_G23(a,std) convert_arfcn_to_g23((USHORT)(a),std) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
529 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
530 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
531 /* add resp. get the std value to resp. from arfcn */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
532 #define STD_ADD_TO_ARFCN(a,std) (((a)&~STD_BIT_MASK) | ((std)<<STD_BIT_SHIFT)) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
533 #define STD_GET_FROM_ARFCN(a) ((((a)&STD_BIT_MASK)>>STD_BIT_SHIFT)) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
534 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
535 /* find the frequency band index to which the given arfcn belongs. */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
536 EXTERN const int array_band_index[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
537 #define get_band_index_from_arfcn(arfcn, idx, std)\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
538 {\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
539 UBYTE local_std = STD_GET_FROM_ARFCN(arfcn);\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
540 if( !local_std )\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
541 local_std = std;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
542 idx = local_std;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
543 if( local_std == STD_DUAL ) {\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
544 if (arfcn >= LOW_CHANNEL_1800)\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
545 idx = STD_1800;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
546 else\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
547 idx = STD_900;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
548 }\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
549 else if ( local_std EQ STD_DUAL_EGSM ) {\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
550 if (arfcn >= LOW_CHANNEL_EGSM)\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
551 idx = BAND_E_GSM;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
552 else if (arfcn >= LOW_CHANNEL_1800)\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
553 idx = STD_1800;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
554 else if (arfcn EQ CHANNEL_0)\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
555 idx = STD_EGSM;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
556 else\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
557 idx = STD_900;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
558 }\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
559 else if( local_std EQ STD_DUAL_US ) {\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
560 if (arfcn >= LOW_CHANNEL_1900)\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
561 idx = STD_1900;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
562 else\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
563 idx = STD_850;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
564 }\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
565 (local_std<=STD_DUAL_US)?(idx=array_band_index[idx-1]):(idx=MAX_NUM_BANDS) ;\ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
566 } |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
567 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
568 /*==== TYPES ======================================================*/ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
569 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
570 EXTERN UBYTE std; /*lint -esym(526,std) : not defined | defined in other entity */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
571 EXTERN UBYTE test_house; /*lint -esym(526,test_house) : not defined | defined in other entity */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
572 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
573 typedef struct { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
574 USHORT radio_freq; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
575 SHORT accum_power_result; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
576 } T_POWER_ARRAY; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
577 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
578 typedef struct { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
579 USHORT power_array_size; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
580 T_POWER_ARRAY power_array[MAX_CARRIERS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
581 } T_POWER_MEAS; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
582 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
583 typedef struct { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
584 USHORT power_array_size; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
585 T_POWER_ARRAY power_array[MAX_CARRIERS_DUAL_EGSM]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
586 } T_POWER_MEAS1; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
587 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
588 typedef struct { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
589 USHORT power_array_size; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
590 T_POWER_ARRAY power_array[MAX_CARRIERS_DUAL_US]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
591 } T_POWER_MEAS2; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
592 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
593 EXTERN T_POWER_MEAS1 alr_power_meas_result1; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
594 EXTERN T_POWER_MEAS2 alr_power_meas_result2; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
595 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
596 #define CS_SYNC_FAIL_COUNT_MAX 5 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
597 #define CS_BCCH_FAIL_COUNT_MAX 10 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
598 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
599 typedef struct { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
600 T_POWER_MEAS *p_results1; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
601 T_POWER_MEAS *p_results2; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
602 T_MPH_POWER_CNF *p_power_cnf; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
603 T_MPH_POWER_REQ *p_power_req; /* CSI-LLD section: 4.1.3.1.2 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
604 T_MPH_EXT_MEAS_REQ *mph_ext_meas_req; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
605 USHORT arfcn; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
606 UBYTE ext_meas_state_pend; /* wait for pending MPHC_RXLEV_IND or MPHC_NCELL_SYNC_IND */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
607 UBYTE sync_active; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
608 UBYTE freq_bands; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
609 UBYTE std; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
610 UBYTE std12; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
611 UBYTE freq_area; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
612 UBYTE search_mode; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
613 UBYTE sync_fail_count; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
614 UBYTE bcch_fail_count; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
615 UBYTE c_meas; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
616 UBYTE c_max_meas; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
617 T_TIME c_tim_meas; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
618 } T_CS_DATA; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
619 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
620 #define MAX_OLD_CB 10 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
621 #define CBCH_BLOCK_SIZE 22 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
622 #define CBCH_BLOCKS 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
623 #define CBCH_MSG_SIZE (CBCH_BLOCKS*CBCH_BLOCK_SIZE) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
624 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
625 /* no alignment or gaps between members ! */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
626 typedef struct cbmsg_header_t |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
627 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
628 UBYTE serial_no1; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
629 UBYTE serial_no2; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
630 UBYTE msg_id3; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
631 UBYTE msg_id4; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
632 UBYTE dcs; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
633 UBYTE page; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
634 } T_CBMSG_HEADER; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
635 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
636 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
637 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
638 UBYTE cnt; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
639 T_CBMSG_HEADER header [MAX_OLD_CB]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
640 } T_CB_MSG; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
641 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
642 #define CBCH_CHANNELS 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
643 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
644 * index defines are in alr_cbch.c : |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
645 * CBCH_NORM 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
646 * CBCH_EXT 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
647 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
648 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
649 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
650 /* message which currently read */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
651 UBYTE msg_is_extended; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
652 UBYTE msg [CBCH_MSG_SIZE]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
653 USHORT msg_id_sat [MAX_IDENTS_SAT]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
654 UBYTE msg_type; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
655 UBYTE sat_enabled; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
656 UBYTE expected_seq_number[CBCH_CHANNELS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
657 /* schedule support for normal and extended CBCH */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
658 UBYTE begin_schedule[CBCH_CHANNELS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
659 UBYTE end_schedule[CBCH_CHANNELS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
660 UBYTE scheduled_sched_msg[CBCH_CHANNELS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
661 UBYTE schedule_length[CBCH_CHANNELS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
662 UBYTE last_slot_read[CBCH_CHANNELS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
663 ULONG schedule_map[CBCH_CHANNELS][2]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
664 /* configured by MMI: specifies which messages are wanted */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
665 UBYTE modus; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
666 UBYTE old_cid_plmn_lac [7]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
667 UBYTE dcs_id [MAX_IDENTS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
668 USHORT msg_id [MAX_IDENTS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
669 T_CB_MSG old_cbch_msg; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
670 #if defined(FF_HOMEZONE) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
671 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
672 * special handling for homezone CBCH message after cell reselecting |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
673 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
674 UBYTE homezone; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
675 USHORT msg_hz_id; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
676 UBYTE dcs_hz_id; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
677 USHORT hz_timeout; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
678 #endif /* FF_HOMEZONE */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
679 #if !defined (L1_STORES_CBCH_CONFIG) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
680 T_MPHC_CONFIG_CBCH_REQ mphc_config_cbch; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
681 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
682 } T_CBCH_DATA; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
683 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
684 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
685 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
686 UBYTE sys_info_1[22]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
687 UBYTE sys_info_2[22]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
688 UBYTE sys_info_2bis[22]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
689 UBYTE sys_info_2ter[22]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
690 UBYTE sys_info_3[22]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
691 UBYTE sys_info_4[22]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
692 UBYTE sys_info_5[18]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
693 UBYTE sys_info_5bis[18]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
694 UBYTE sys_info_5ter[18]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
695 UBYTE sys_info_6[18]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
696 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
697 UBYTE sys_info_13[22]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
698 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
699 } T_MA_DATA; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
700 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
701 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
702 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
703 /* information for using the cell */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
704 USHORT ba_arfcn; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
705 UBYTE last_rxlev; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
706 UBYTE tim_valid; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
707 ULONG frame_offset; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
708 ULONG time_align; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
709 UBYTE bsic; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
710 /* power measurements of the cell */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
711 UBYTE rxlev[5]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
712 UBYTE rxlev_average; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
713 UBYTE c_rxlev; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
714 /* state of the cell */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
715 UBYTE one_of_six; /* this is a subset of one_of_twelve */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
716 UBYTE one_of_twelve; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
717 UBYTE status; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
718 UBYTE ba_status; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
719 UBYTE new_strong_cell; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
720 /* counters for status handling */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
721 UBYTE c_attempt; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
722 UBYTE c_error; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
723 UBYTE c_bcch; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
724 UBYTE c_sync; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
725 USHORT blocks_required; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
726 /* Meas results for averaging when NC=1 or NC=2 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
727 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
728 USHORT nc_rxlev; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
729 UBYTE c_nc_rxlev; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
730 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
731 /* temporary BCCH storage */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
732 T_MPH_UNITDATA_IND* mph_unitdata_ind; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
733 T_MPH_UNITDATA_IND* mph_unitdata_ind78; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
734 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
735 } T_NC; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
736 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
737 /* values for component tim_state */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
738 #define NC_TIM_STOPPED 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
739 #define NC_CONF_ENABLED 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
740 #define NC_CONF_DISABLED 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
741 #define NC_CONF_PENDING 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
742 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
743 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
744 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
745 /* +1 because we use this for idle mode cell selection */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
746 #define LAST_BSIC_REQ BA_LIST_SIZE |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
747 T_NC cell[BA_LIST_SIZE+1]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
748 T_NC cr_cell; /* */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
749 UBYTE c_ba_arfcn; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
750 UBYTE ba_id; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
751 USHORT channel; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
752 USHORT rxlev_full; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
753 USHORT rxlev_sub; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
754 UBYTE rxqual_full; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
755 UBYTE rxqual_sub; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
756 USHORT tav; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
757 UBYTE pwrc; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
758 UBYTE dtx; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
759 UBYTE act_dtx; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
760 UBYTE update; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
761 UBYTE sc_included; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
762 UBYTE multiband; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
763 UBYTE c_nc_timer; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
764 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
765 * Counter variable used to store 10sec timer interval |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
766 * in terms of the number of 51 frame control multi-frames. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
767 * This counter is decremented for every measurement indication |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
768 * received from L1. This is initialized with TEN_SECONDS_ NCSYNC. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
769 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
770 UBYTE c_ncsync_tim; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
771 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
772 *Variable to store the system time whenever |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
773 * the NCSYNC counter is re-assigned |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
774 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
775 T_TIME ncsync_start_tim; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
776 /* for MPH_MEASUREMENT_IND */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
777 USHORT fn_offset; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
778 UBYTE max_reports; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
779 UBYTE c_reports; /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
780 * counters to keep track of the send NCELL_SYNC_REQ's |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
781 * and NCELL_BCCH_REQ's valid ranges are 0..12 and 0..6 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
782 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
783 UBYTE c_sync_req; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
784 UBYTE c_bcch_req; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
785 /* EOTD related */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
786 UBYTE eotd_avail; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
787 UBYTE tim_state; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
788 UBYTE new_strong_cell_detect; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
789 UBYTE c_sync_intrupted; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
790 T_MPH_NCELL_POS_IND* ppos_ind; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
791 T_MPH_NCELL_POS_REQ* ppos_req; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
792 } T_NC_DATA; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
793 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
794 #define SYSTEM_INFO_1_READ 0x01 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
795 #define SYSTEM_INFO_2_READ 0x02 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
796 #define SYSTEM_INFO_3_READ 0x04 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
797 #define SYSTEM_INFO_4_READ 0x08 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
798 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
799 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
800 #define SYSTEM_INFO_13_READ 0x10 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
801 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
802 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
803 #define ALL_SI_READ_EXCEPT_SI13 0x0F |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
804 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
805 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
806 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
807 T_MPHC_START_CCCH_REQ pl_idle, last_start_ccch_req; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
808 SHORT imsi_mod_1000; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
809 UBYTE dlt; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
810 UBYTE act_dlt; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
811 UBYTE si3_read; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
812 UBYTE saved_page_mode; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
813 UBYTE imsi [IMSI_LEN]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
814 UBYTE v_tmsi; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
815 ULONG tmsi; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
816 BOOL reorg_bcch_reading; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
817 UBYTE si_bitmap; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
818 } T_PCH_DATA; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
819 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
820 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
821 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
822 UBYTE ms_class; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
823 UBYTE dcs_class; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
824 UBYTE max_tx_pwr_ccch; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
825 UBYTE delta [8]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
826 UBYTE channel_request [8]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
827 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
828 UBYTE t1 [8]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
829 UBYTE t2 [8]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
830 UBYTE t3 [8]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
831 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
832 UBYTE max_bursts; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
833 UBYTE c_burst; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
834 } T_RACH_DATA; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
835 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
836 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
837 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
838 UBYTE rlt; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
839 UBYTE act_rlt; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
840 USHORT act_bcch; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
841 UBYTE act_mode; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
842 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
843 * Description of the actual used |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
844 * channel, confirmed by layer 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
845 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
846 T_channel_desc act_channel_desc; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
847 T_frequency_list act_frequency_list; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
848 T_starting_time act_starting_time; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
849 T_frequency_list_bef_sti act_frequency_list_bef_sti; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
850 T_channel_desc act_channel_desc_bef_sti; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
851 UBYTE act_channel_mode; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
852 BOOL act_pwrc; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
853 UBYTE act_cipher_mode; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
854 UBYTE act_a5_algorithm; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
855 T_cipher_key act_cipher_key; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
856 T_amr_configuration act_amr_configuration; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
857 UBYTE act_power; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
858 UBYTE act_dtx_allowed; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
859 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
860 * Description of the old used |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
861 * channel. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
862 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
863 USHORT old_bcch; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
864 UBYTE old_bsic; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
865 UBYTE old_channel; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
866 UBYTE old_channel_mode; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
867 T_channel_desc old_channel_desc; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
868 T_frequency_list old_frequency_list; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
869 T_starting_time old_starting_time; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
870 T_frequency_list_bef_sti old_frequency_list_bef_sti; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
871 T_channel_desc old_channel_desc_bef_sti; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
872 BOOL old_pwrc; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
873 UBYTE old_cipher_mode; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
874 UBYTE old_a5_algorithm; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
875 T_cipher_key old_cipher_key; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
876 T_amr_configuration old_amr_configuration; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
877 UBYTE old_power; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
878 UBYTE old_dtx_allowed; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
879 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
880 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
881 * Description of the new configured |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
882 * channel, not yet confirmed by layer 1. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
883 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
884 USHORT temp_bcch; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
885 UBYTE temp_bsic; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
886 UBYTE temp_channel; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
887 UBYTE temp_channel_mode; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
888 T_channel_desc temp_channel_desc; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
889 T_frequency_list temp_frequency_list; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
890 T_starting_time temp_starting_time; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
891 T_frequency_list_bef_sti temp_frequency_list_bef_sti; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
892 T_channel_desc temp_channel_desc_bef_sti; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
893 BOOL temp_pwrc; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
894 UBYTE temp_cipher_mode; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
895 UBYTE temp_a5_algorithm; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
896 T_cipher_key temp_cipher_key; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
897 T_amr_configuration temp_amr_configuration; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
898 UBYTE temp_power; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
899 UBYTE temp_dtx_allowed; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
900 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
901 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
902 * Description of frequency redefinition |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
903 * parameter. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
904 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
905 T_channel_desc redef_channel_desc; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
906 T_frequency_list redef_frequency_list; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
907 T_starting_time redef_starting_time; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
908 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
909 * Extended Measurmeent Order parameter. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
910 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
911 UBYTE emo_ba_id; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
912 } T_DEDI_DATA; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
913 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
914 #define TIM_NCSYNC_VALUE 10000 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
915 #define TIM_NW_SYNC_GUARD_VALUE 2500 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
916 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
917 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
918 * timer |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
919 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
920 #define TIMER_TRACE |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
921 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
922 #if defined (TIMER_TRACE) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
923 #define TIMERSTART(i,v) tim_start_timer (i, v) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
924 #define TIMERSTOP(i) tim_stop_timer (i) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
925 #define IS_TIMER_ACTIVE(i) tim_check_timer (i) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
926 #else |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
927 #define TIMERSTART(i,v) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
928 #define TIMERSTOP(i) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
929 #define IS_TIMER_ACTIVE(i) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
930 #endif /* TIMER_TRACE */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
931 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
932 enum tim_index_e |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
933 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
934 TIM_POWERMEAS, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
935 TIM_NW_SYNC_GUARD, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
936 #if defined(FF_HOMEZONE) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
937 TIM_HOMEZONE, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
938 #endif /* FF_HOMEZONE */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
939 NUM_OF_ALR_TIMERS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
940 }; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
941 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
942 typedef void (*T_TIMER_EXPIRY)(void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
943 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
944 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
945 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
946 UBYTE running[NUM_OF_ALR_TIMERS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
947 T_TIMER_EXPIRY expire[NUM_OF_ALR_TIMERS]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
948 } T_TIM_DATA; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
949 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
950 #ifdef OPTION_MULTITHREAD |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
951 #define tim_init _ENTITY_PREFIXED(tim_init) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
952 #define tim_exec_timeout _ENTITY_PREFIXED(tim_exec_timeout) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
953 #define tim_stop_timer _ENTITY_PREFIXED(tim_stop_timer) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
954 #define tim_start_timer _ENTITY_PREFIXED(tim_start_timer) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
955 #define tim_check_timer _ENTITY_PREFIXED(tim_check_timer) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
956 #define trace_timer _ENTITY_PREFIXED(trace_timer) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
957 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
958 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
959 EXTERN void tim_init (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
960 EXTERN void tim_exec_timeout (USHORT index); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
961 EXTERN void tim_stop_timer (USHORT index); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
962 EXTERN void tim_start_timer (USHORT index, T_TIME value); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
963 EXTERN BOOL tim_check_timer(USHORT index); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
964 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
965 /* all data is stored so, that it doesn't need |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
966 to be converted if send to the upper layers. |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
967 Exceptions are alr_data.cs_data.results, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
968 alr_data.pch_data.pl_idle |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
969 alr_data.pch_data.imsi */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
970 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
971 typedef struct |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
972 { |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
973 UBYTE state[MAX_STATE]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
974 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
975 * each of these elements is only |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
976 * accessed by the appropiate |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
977 * process |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
978 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
979 T_CBCH_DATA cbch_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
980 T_CS_DATA cs_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
981 T_MA_DATA ma_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
982 T_NC_DATA nc_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
983 T_PCH_DATA pch_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
984 T_RACH_DATA rach_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
985 T_DEDI_DATA dedi_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
986 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
987 T_ALR_GPRS_DATA gprs_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
988 #endif /* GPRS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
989 T_TIM_DATA tim_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
990 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
991 UBYTE mmi; /* mmi variant */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
992 UBYTE keypad; /* keypad variant */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
993 UBYTE sc_band; /* frequency band of the serving cell */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
994 BOOL ext_display; /* ext display */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
995 EF_MSCAP mscap; /* MS capabilities (channel mode, data cap., features */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
996 /* is this component really needed ?? */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
997 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
998 * these parameters are used by more than one process |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
999 * this is to avoid data inconsistencies between |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1000 * the different processes |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1001 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1002 USHORT serving_cell; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1003 USHORT old_serving_cell; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1004 UBYTE bsic; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1005 UBYTE bs_pa_mfrms; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1006 UBYTE ncc_permitted; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1007 UBYTE plmn_search_running; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1008 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1009 UBYTE nc_sync_with_grr; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1010 UBYTE nwctrl_meas_active; /* indicates whether averaging when NC=1,2 is active */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1011 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1012 } T_ALR_DATA; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1013 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1014 /*==== EXPORT =====================================================*/ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1015 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1016 * Main Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1017 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1018 EXTERN void ma_init (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1019 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1020 * Primitive processing functions for upper layer (RR) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1021 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1022 EXTERN void ma_mph_idle_req (T_MPH_IDLE_REQ *mph_idle_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1023 EXTERN void ma_mph_neighbourcell_req (T_MPH_NEIGHBOURCELL_REQ *mph_neighbourcell_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1024 EXTERN void ma_mph_emo_req (T_MPH_EMO_REQ *mph_emo_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1025 EXTERN void ma_mph_dedicated_req (T_MPH_DEDICATED_REQ *mph_dedicated_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1026 EXTERN void ma_mph_dedicated_fail_req (T_MPH_DEDICATED_FAIL_REQ *mph_dedicated_fail_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1027 EXTERN void ma_mph_ciphering_req (T_MPH_CIPHERING_REQ *mph_ciphering_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1028 EXTERN void ma_mph_freq_redef_req (T_MPH_FREQ_REDEF_REQ *mph_freq_redef_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1029 EXTERN void ma_mph_channel_mode_req (T_MPH_CHANNEL_MODE_REQ *mph_channel_mode_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1030 EXTERN void ma_mph_deactivate_req (T_MPH_DEACTIVATE_REQ *mph_deactivate_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1031 EXTERN void ma_mph_classmark_req (T_MPH_CLASSMARK_REQ *mph_classmark_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1032 EXTERN void ma_mph_ext_meas_req (T_MPH_EXT_MEAS_REQ *mph_ext_meas_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1033 EXTERN void ma_mph_tch_loop_req (T_MPH_TCH_LOOP_REQ *mph_tch_loop_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1034 EXTERN void ma_mph_dai_req (T_MPH_DAI_REQ *mph_dai_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1035 EXTERN void ma_mph_cbch_req (T_MPH_CBCH_REQ *mph_cbch_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1036 EXTERN void ma_mph_identity_req (T_MPH_IDENTITY_REQ *mph_identity_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1037 EXTERN void ma_mph_power_req (T_MPH_POWER_REQ *mph_power_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1038 EXTERN void ma_mph_bsic_req (T_MPH_BSIC_REQ *mph_bsic_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1039 EXTERN void ma_mph_random_access_req (T_MPH_RANDOM_ACCESS_REQ *mph_random_access_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1040 EXTERN void ma_mph_sync_req (T_MPH_SYNC_REQ *mph_sync_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1041 EXTERN void ma_mph_ncell_pos_req (T_MPH_NCELL_POS_REQ *mph_ncell_pos_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1042 EXTERN void ma_mph_clean_buf_req (T_MPH_CLEAN_BUF_REQ *mph_clean_buf_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1043 EXTERN void ma_mph_stop_dedi_req (T_MPH_STOP_DEDICATED_REQ *mph_stop_dedi_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1044 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1045 EXTERN void ma_mph_meas_rep_req (T_MPH_MEAS_REP_REQ *mph_meas_rep_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1046 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1047 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1048 * Primitive processing functions for lower layer |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1049 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1050 EXTERN void ma_mphc_rxlev_ind (T_MPHC_RXLEV_IND *rxlev_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1051 EXTERN void ma_mphc_stop_rxlev_cnf (T_MPHC_STOP_RXLEV_CON *rxlev_con); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1052 EXTERN void ma_mphc_empty_cnf (void *); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1053 EXTERN void ma_mphc_network_sync_ind (T_MPHC_NETWORK_SYNC_IND *network_sync_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1054 EXTERN void ma_cs_stop_network_sync_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1055 EXTERN void ma_mphc_new_scell_cnf (T_MPHC_NEW_SCELL_CON *new_Scell_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1056 EXTERN void ma_mphc_ncell_bcch_ind (T_MPHC_NCELL_BCCH_IND *ncell_bcch_data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1057 EXTERN void ma_mphc_ncell_sync_ind (T_MPHC_NCELL_SYNC_IND *ncell_sync_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1058 GLOBAL void ma_mphc_stop_ncell_sync_cnf (T_MPHC_STOP_NCELL_SYNC_CON *ncell_sync_cnf ); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1059 EXTERN void ma_mphc_rxlev_periodic_ind (T_MPHC_RXLEV_PERIODIC_IND *rxlev_periodic_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1060 EXTERN void ma_mphc_ra_cnf (T_MPHC_RA_CON *ra_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1061 EXTERN void ma_mphc_data_ind (T_MPHC_DATA_IND *data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1062 EXTERN void ma_mphc_change_frequency_cnf (T_MPHC_CHANGE_FREQUENCY_CON *change_frequency_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1063 EXTERN void ma_mphc_async_ho_cnf (T_MPHC_ASYNC_HO_CON *async_ho_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1064 EXTERN void ma_mphc_channel_assign_cnf (T_MPHC_CHANNEL_ASSIGN_CON *channel_assign_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1065 EXTERN void ma_mphc_handover_fail_cnf (T_MPHC_HANDOVER_FAIL_CON *handover_fail_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1066 EXTERN void ma_mphc_immed_assign_cnf (T_MPHC_IMMED_ASSIGN_CON *immed_assign_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1067 EXTERN void ma_mphc_pre_sync_ho_cnf (T_MPHC_PRE_SYNC_HO_CON *pre_sync_ho_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1068 EXTERN void ma_mphc_sync_ho_cnf (T_MPHC_SYNC_HO_CON *sync_ho_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1069 EXTERN void ma_mphc_ta_fail_ind (T_MPHC_TA_FAIL_IND *ta_fail_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1070 EXTERN void ma_mphc_handover_finished_ind (T_MPHC_HANDOVER_FINISHED *handover_finished); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1071 EXTERN void ma_mphc_meas_report_ind (T_MPHC_MEAS_REPORT *meas_report); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1072 EXTERN void ma_mphc_adc_ind (T_MPHC_ADC_IND *adc_results); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1073 EXTERN void ma_mphc_init_l1_cnf (T_MPHC_INIT_L1_CON *init_l1_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1074 EXTERN void ma_mphc_stop_dedi_con (T_MPHC_STOP_DEDICATED_CON *stop_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1075 #if defined(STOP_SYNC_TASK) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1076 EXTERN void ma_mphc_stop_network_sync_cnf (T_MPHC_STOP_NETWORK_SYNC_CON *stop_network_sync_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1077 #endif /* STOP_SYNC_TASK */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1078 /* Signal processing functions for process Cell Selection */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1079 EXTERN void ma_cs_init_l1_req (UBYTE radio_band_config); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1080 EXTERN void ma_cs_stop_network_sync_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1081 EXTERN void ma_cs_network_sync_req (USHORT channel); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1082 EXTERN void ma_cs_rxlev_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1083 EXTERN void ma_cs_power_cnf (T_MPH_POWER_CNF *mph_power_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1084 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1085 /* Signal processing functions for process Neigbour Cell */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1086 EXTERN void ma_nc_rxlev_periodic_req (T_MPHC_RXLEV_PERIODIC_REQ *update); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1087 EXTERN void ma_nc_stop_ncell_bcch_req (USHORT arfcn); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1088 EXTERN void ma_nc_stop_ncell_sync_req (USHORT arfcn); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1089 EXTERN void ma_nc_sync_req (T_MPHC_NCELL_SYNC_REQ *sync_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1090 EXTERN void ma_nc_list_sync_req (T_MPHC_NCELL_LIST_SYNC_REQ *list_sync_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1091 EXTERN void ma_nc_bcch_req (T_MPHC_NCELL_BCCH_REQ *bcch_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1092 EXTERN void ma_nc_update_ba_list (T_MPHC_UPDATE_BA_LIST *update_ba_list); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1093 EXTERN void nc_new_serving_cell (USHORT serving_cell); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1094 EXTERN void ma_nc_report_res (T_MPH_MEASUREMENT_IND *mph_measurement_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1095 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1096 /* Signal processing functions for process RACH_Contol */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1097 EXTERN void ma_rach_stop_ra_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1098 EXTERN void ma_rach_ra_req (T_MPHC_RA_REQ *mph_ra_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1099 EXTERN void ma_rach_random_cnf (T_MPH_RANDOM_ACCESS_CNF *mph_random_access_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1100 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1101 /* Signal processing functions for process Dedi_Control */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1102 EXTERN void ma_dedi_stop_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1103 EXTERN void ma_dedi_cnf (UBYTE cause); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1104 EXTERN void ma_dedi_chan_ass_req (T_MPHC_CHANNEL_ASSIGN_REQ *mphc_channel_assign_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1105 EXTERN void ma_dedi_async_ho_req (T_MPHC_ASYNC_HO_REQ *async_ho_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1106 EXTERN void ma_dedi_sync_ho_req (T_MPHC_SYNC_HO_REQ *sync_ho_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1107 EXTERN void ma_dedi_pre_sync_ho_req (T_MPHC_PRE_SYNC_HO_REQ *pre_sync_ho_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1108 EXTERN void ma_dedi_fail_cnf (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1109 EXTERN void ma_dedi_ho_fail_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1110 EXTERN void ma_dedi_imm_ass_req (T_MPHC_IMMED_ASSIGN_REQ *immed_assign_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1111 EXTERN void ma_dedi_change_freq_req (T_MPHC_CHANGE_FREQUENCY *change_frequency); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1112 EXTERN void ma_dedi_chan_mode_req (T_MPHC_CHANNEL_MODE_MODIFY_REQ *channel_mode_modify_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1113 EXTERN void ma_dedi_ciph_req (T_MPHC_SET_CIPHERING_REQ *set_ciphering_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1114 EXTERN void ma_dedi_start_dai_req (T_OML1_START_DAI_TEST_REQ *oml1_start_dai_test_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1115 EXTERN void ma_dedi_close_tch_loop_req (T_OML1_CLOSE_TCH_LOOP_REQ *oml1_close_tch_loop_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1116 EXTERN void ma_dedi_stop_dai_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1117 EXTERN void ma_dedi_open_tch_loop_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1118 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1119 /* Signal processing functions for process PCH_control */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1120 EXTERN void ma_pch_start_ccch_req (T_MPHC_START_CCCH_REQ *pl_idle); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1121 EXTERN void ma_pch_paging_ind (UBYTE id_type, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1122 UBYTE channel_needed); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1123 EXTERN void ma_pch_stop (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1124 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1125 /* Signal processing functions for process MMI_control */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1126 EXTERN void ma_mmi_cbch_req (T_MMI_CBCH_REQ *cbch_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1127 EXTERN void ma_mmi_sat_cbch_dwnld_req (T_MMI_SAT_CBCH_DWNLD_REQ *cbch_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1128 /* Signal processing functions for process CBCH_control */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1129 EXTERN void ma_cb_stop_cbch_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1130 EXTERN void ma_cb_sched_req (T_MPHC_CBCH_SCHEDULE_REQ *sched_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1131 EXTERN void ma_cb_config_cbch (T_MPHC_CONFIG_CBCH_REQ *config_cbch); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1132 EXTERN void ma_cb_mmi_cbch_ind (T_MMI_CBCH_IND *mmi_cbch_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1133 EXTERN void ma_cb_info_req (UBYTE bitmap); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1134 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1135 /* Signal processing functions used by more then one process */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1136 EXTERN void ma_scell_nbcch_req (T_MPHC_SCELL_NBCCH_REQ *nbcch_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1137 EXTERN void ma_scell_ebcch_req (T_MPHC_SCELL_EBCCH_REQ *ebcch_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1138 EXTERN void ma_stop_scell_bcch_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1139 EXTERN void ma_stop_active_procs (UBYTE flags); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1140 EXTERN void ma_bsic_cnf (T_MPH_BSIC_CNF *mph_bsic_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1141 EXTERN void ma_send_unitdata (T_MPHC_DATA_IND *data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1142 EXTERN void ma_error_ind (UBYTE cause, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1143 USHORT arfcn); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1144 EXTERN void ma_clean_dedi_sys_buffer (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1145 EXTERN void ma_new_scell_req (T_MPHC_NEW_SCELL_REQ *new_scell); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1146 EXTERN void ma_scell_full_nbcch (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1147 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1148 EXTERN BOOL ma_is_ptm (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1149 EXTERN void ma_nc_rxlev_sc_req (T_TB_RXLEV_SC_REQ *rxlev_sc_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1150 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1151 EXTERN void ma_clean_sys_buffer (USHORT si_mask); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1152 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1153 /* defined in dl_pei.c */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1154 EXTERN void dl1_downlink_indication (UBYTE chan, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1155 UBYTE *frame); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1156 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1157 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1158 * CBCH Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1159 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1160 EXTERN void cb_init (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1161 EXTERN void cb_stop (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1162 EXTERN void cb_start (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1163 EXTERN void cb_mmi_cbch_req (T_MMI_CBCH_REQ *cbch); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1164 EXTERN void cb_mph_cbch_req (T_cbch *cbch); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1165 EXTERN void cb_data_ind (T_MPHC_DATA_IND *cbch_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1166 EXTERN void cb_mmi_sat_cbch_req (T_MMI_SAT_CBCH_DWNLD_REQ *cbch_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1167 #if defined(FF_HOMEZONE) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1168 EXTERN void cb_tim_homezone (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1169 #endif /* FF_HOMEZONE */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1170 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1171 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1172 * Cell Selection |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1173 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1174 EXTERN void cs_init (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1175 EXTERN void cs_rxlev_ind (T_MPHC_RXLEV_IND *rxlev_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1176 EXTERN void cs_network_sync_ind (T_MPHC_NETWORK_SYNC_IND *network_sync_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1177 EXTERN void cs_stop (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1178 EXTERN T_POWER_MEAS* cs_prepare_power_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1179 EXTERN void cs_power_req (UBYTE pch_interrupt); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1180 EXTERN void cs_bsic_req (T_MPH_BSIC_REQ *mph_bsic_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1181 EXTERN void cs_read_scell_bcch (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1182 EXTERN UBYTE get_band (USHORT arfcn); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1183 EXTERN void cs_increment_bfc (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1184 EXTERN void cs_decrement_bfc (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1185 EXTERN void cs_set_wideband_sync (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1186 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1187 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1188 * Dedicated Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1189 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1190 EXTERN void dedi_init (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1191 EXTERN void dedi_req (T_MPH_DEDICATED_REQ *dedicated_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1192 EXTERN void dedi_fail_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1193 EXTERN void dedi_ta_fail_ind (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1194 EXTERN void dedi_ho_finished (UBYTE cause); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1195 EXTERN void dedi_freq_redef_req (T_MPH_FREQ_REDEF_REQ *freq); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1196 EXTERN void dedi_chan_mode_req (T_MPH_CHANNEL_MODE_REQ *ch_mode); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1197 EXTERN void dedi_ciph_req (T_MPH_CIPHERING_REQ *ciph_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1198 EXTERN void dedi_tch_loop_req (T_MPH_TCH_LOOP_REQ *tloop); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1199 EXTERN void dedi_dai_req (T_MPH_DAI_REQ *dai); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1200 EXTERN void dedi_change_freq_cnf (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1201 EXTERN void dedi_async_ho_cnf (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1202 EXTERN void dedi_chan_ass_cnf (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1203 EXTERN void dedi_ho_fail_cnf (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1204 EXTERN void dedi_imm_ass_cnf (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1205 EXTERN void dedi_pre_sync_ho_cnf (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1206 EXTERN void dedi_sync_ho_cnf (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1207 EXTERN void dedi_stop (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1208 EXTERN void dedi_increment_rlt (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1209 EXTERN void dedi_decrement_rlt (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1210 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1211 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1212 * MMI Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1213 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1214 EXTERN USHORT RX_GetValue (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1215 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1216 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1217 * Idle Mode Neighbour Cell |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1218 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1219 EXTERN void nc_init (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1220 EXTERN void nc_ncell_list (T_MPH_NEIGHBOURCELL_REQ *mph_neighbourcell_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1221 EXTERN void nc_stop (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1222 EXTERN void nc_bsic_req (T_MPH_BSIC_REQ *mph_bsic_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1223 EXTERN void nc_sync_ind (T_MPHC_NCELL_SYNC_IND *sync_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1224 EXTERN void nc_bcch_ind (T_MPHC_NCELL_BCCH_IND *data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1225 EXTERN void nc_start_dedicated (UBYTE pwrc, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1226 UBYTE dtx); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1227 EXTERN void nc_update_dedicated (UBYTE dtx, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1228 UBYTE pwrc); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1229 EXTERN void nc_update_list (USHORT channel); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1230 EXTERN BOOL nc_get_fn_time (USHORT channel, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1231 ULONG *fn, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1232 ULONG *time); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1233 EXTERN void nc_suspend (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1234 EXTERN void nc_add_offset (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1235 EXTERN void nc_report (T_MPHC_RXLEV_PERIODIC_IND *rxlev_periodic_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1236 EXTERN void nc_start_reselect (USHORT arfcn); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1237 EXTERN void nc_start_monitoring (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1238 EXTERN void nc_report_dedicated (T_MPHC_MEAS_REPORT *meas_report); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1239 EXTERN void nc_fill_report_sc_dedi (T_MPH_MEASUREMENT_IND *rr_report, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1240 UBYTE ncells); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1241 EXTERN void nc_store_tav (USHORT tav); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1242 EXTERN void nc_check_new_ncc_permitted (UBYTE new_ncc_permitted); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1243 EXTERN void nc_stop_rr_activity (UBYTE stop); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1244 EXTERN void nc_stop_ext_meas_ind (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1245 EXTERN void nc_resume (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1246 EXTERN void nc_check_activity (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1247 EXTERN void nc_set_status (USHORT index, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1248 UBYTE new_status); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1249 EXTERN USHORT nc_get_index (USHORT arfcn); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1250 EXTERN void nc_ncsync_tim_expiry (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1251 EXTERN void nc_ncell_pos_req (T_MPH_NCELL_POS_REQ* pos_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1252 GLOBAL void nc_resume_dedicated(void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1253 GLOBAL void nc_suspend_handover (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1254 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1255 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1256 EXTERN void nc_start_pbcch(void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1257 EXTERN void nc_build_nwctrl_rr_report (T_MPH_MEAS_REP_CNF *rr_report); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1258 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1259 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1260 * PCH Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1261 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1262 EXTERN void pch_init (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1263 EXTERN void pch_configure (T_MPH_IDLE_REQ *idle, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1264 UBYTE page_mode); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1265 EXTERN void pch_start_ccch_req (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1266 EXTERN void pch_save_pgm (UBYTE mode); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1267 EXTERN void pch_identity_req (T_MPH_IDENTITY_REQ *mph_identity_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1268 EXTERN void pch_check_pag_3 (T_MPHC_DATA_IND *data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1269 EXTERN void pch_check_pag_2 (T_MPHC_DATA_IND *data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1270 EXTERN void pch_check_pag_1 (T_MPHC_DATA_IND *data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1271 EXTERN void pch_check_page_mode (T_MPHC_DATA_IND *data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1272 EXTERN void pch_check_page_mode_cr (T_MPHC_DATA_IND *data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1273 EXTERN void pch_decrement_dlt (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1274 EXTERN void pch_increment_dlt (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1275 EXTERN void pch_stop (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1276 EXTERN UBYTE pch_mode_reorg (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1277 EXTERN void pch_config_resel (T_MPHC_DATA_IND *data_ind); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1278 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1279 * RACH Control |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1280 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1281 EXTERN void rach_init (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1282 EXTERN void rach_configure_power (UBYTE power); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1283 EXTERN void rach_configure_class (UBYTE class, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1284 UBYTE dcs_class); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1285 EXTERN void rach_stop (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1286 EXTERN UBYTE cut_power_value (UBYTE power, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1287 T_MPH_DEDICATED_REQ *mph_dedicated_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1288 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1289 EXTERN void rach_random_req (T_MPH_RANDOM_ACCESS_REQ *random_req); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1290 EXTERN void rach_ra_cnf (T_MPHC_RA_CON* ra_cnf); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1291 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1292 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1293 * Idle Mode Serving Cell |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1294 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1295 EXTERN void sc_start_periodic (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1296 EXTERN const void csf_show_version (T_TST_TEST_HW_CON *ver); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1297 EXTERN void tim_stop_sync_to_nw (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1298 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1299 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1300 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1301 EXTERN UBYTE grlc_test_mode_active(void); /*lint -esym(526,grlc_test_mode_active) : not defined | defined in other entity */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1302 EXTERN void cst_pei_config (char *, char *); /*lint -esym(526,cst_pei_config) : not defined | defined in other entity */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1303 #if defined (_SIMULATION_) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1304 EXTERN void rr_csf_check_rfcap (UBYTE init); /*lint -esym(526,rr_csf_check_rfcap) : not defined | defined in other entity */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1305 #endif /* _SIMULATION_ */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1306 EXTERN CHAR* alr_version(void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1307 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1308 #if defined(ALR_CSF_C) && defined(_TMS470) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1309 EXTERN void Cust_Init_Layer1(void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1310 EXTERN void SIM_PowerOff (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1311 EXTERN void TM_EnableWatchdog (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1312 EXTERN void TM_ResetWatchdog(SYS_UWORD16 count); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1313 #endif /* ALR_CSF_C && _TMS470 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1314 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1315 #if defined(WIN32) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1316 #include <stdio.h> /* prototype of sprintf() */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1317 #endif /* WIN32 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1318 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1319 #if !defined NTRACE |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1320 EXTERN void trc_mon_counter_idle (UBYTE act_dlt, UBYTE max_dlt); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1321 EXTERN void trc_mon_counter_dedi (UBYTE act_rlt, UBYTE max_rlt); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1322 #endif /* (!defined NTRACE ) */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1323 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1324 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1325 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1326 EXTERN T_ALR_DATA * alr_data; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1327 #ifdef WIN32 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1328 EXTERN T_POWER_MEAS tap_rxlev_response_european[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1329 EXTERN T_POWER_MEAS tap_rxlev_response_american[]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1330 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1331 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1332 #define ENTITY_DATA alr_data |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1333 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1334 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1335 * If all entities are linked into one module this definitions |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1336 * prefixes the global data with the enity name |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1337 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1338 #ifdef OPTION_MULTITHREAD |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1339 #define hCommL1 _ENTITY_PREFIXED(hCommL1) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1340 #define hCommPL _ENTITY_PREFIXED(hCommPL) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1341 #define hCommDL _ENTITY_PREFIXED(hCommDL) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1342 #define hCommRR _ENTITY_PREFIXED(hCommRR) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1343 #define hCommMMI _ENTITY_PREFIXED(hCommMMI) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1344 #define hCommCST _ENTITY_PREFIXED(hCommCST) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1345 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1346 #define hCommGPL _ENTITY_PREFIXED(hCommGPL) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1347 #endif /* #ifdef GPRS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1348 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1349 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1350 EXTERN T_HANDLE hCommPL; /* PL own handle */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1351 EXTERN T_HANDLE hCommL1; /* L1 Communication */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1352 EXTERN T_HANDLE hCommDL; /* DL Communication */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1353 EXTERN T_HANDLE hCommRR; /* RR Communication */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1354 EXTERN T_HANDLE hCommMMI; /* MMI Communication */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1355 EXTERN T_HANDLE hCommCST; /* CST Communication */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1356 #ifdef GPRS |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1357 EXTERN T_HANDLE hCommGPL; /* GPL Communication */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1358 #endif /* GPRS */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1359 EXTERN T_HANDLE pl_handle; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1360 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1361 EXTERN UBYTE v_mon_counter_idle; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1362 EXTERN UBYTE v_mon_counter_dedi; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1363 EXTERN UBYTE v_eotd; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1364 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1365 #if defined(DL_TRACE_ENABLED) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1366 EXTERN void dl_trace (UCHAR trace_type, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1367 UCHAR channel, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1368 UCHAR ch_type, |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1369 UCHAR * data); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1370 #ifdef OPTION_MULTITHREAD |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1371 #define dl_trace_buf _ENTITY_PREFIXED(dl_trace_buf) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1372 #endif |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1373 #if defined(ALR_MAIN_C) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1374 GLOBAL char dl_trace_buf[100]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1375 #else /* ALR_MAIN_C */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1376 EXTERN char dl_trace_buf[100]; |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1377 #endif /* ALR_MAIN_C */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1378 #define TRACE_PL_EVENT 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1379 #define DOES_NOT_MATTER 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1380 #define DL_OFFLINE_TRACE(s) \ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1381 dl_trace (TRACE_PL_EVENT, DOES_NOT_MATTER, DOES_NOT_MATTER, (UCHAR*)s) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1382 #else /* DL_TRACE_ENABLED */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1383 #define DL_OFFLINE_TRACE(s) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1384 #endif /* DL_TRACE_ENABLED */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1385 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1386 #if !defined(NCONFIG) && !defined(NTRACE) && defined(TRACE_STATE_TRANSITION) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1387 void trc_state_transition(int line, UBYTE newstate); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1388 #else |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1389 #define trc_state_transition(line,newstate) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1390 #endif /* !NCONFIG && !NTRACE && TRACE_STATE_TRANSITION */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1391 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1392 #if defined(_SIMULATION_) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1393 #define TRACING |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1394 #define TRACE_EVENT_WIN(s) TRACE_EVENT(s) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1395 #define TRACE_EVENT_WIN_P1(s,a1) TRACE_EVENT_P1(s,a1) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1396 #define TRACE_EVENT_WIN_P2(s,a1,a2) TRACE_EVENT_P2(s,a1,a2) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1397 #define TRACE_EVENT_WIN_P3(s,a1,a2,a3) TRACE_EVENT_P3(s,a1,a2,a3) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1398 #define TRACE_EVENT_WIN_P4(s,a1,a2,a3,a4) TRACE_EVENT_P4(s,a1,a2,a3,a4) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1399 #define TRACE_EVENT_WIN_P5(s,a1,a2,a3,a4,a5) TRACE_EVENT_P5(s,a1,a2,a3,a4,a5) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1400 #define TRACE_EVENT_WIN_P6(s,a1,a2,a3,a4,a5,a6) TRACE_EVENT_P6(s,a1,a2,a3,a4,a5,a6) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1401 #define TRACE_EVENT_WIN_P7(s,a1,a2,a3,a4,a5,a6,a7) TRACE_EVENT_P7(s,a1,a2,a3,a4,a5,a6,a7) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1402 #define TRACE_EVENT_WIN_P8(s,a1,a2,a3,a4,a5,a6,a7,a8) TRACE_EVENT_P8(s,a1,a2,a3,a4,a5,a6,a7,a8) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1403 #define TRACE_EVENT_WIN_P9(s,a1,a2,a3,a4,a5,a6,a7,a8,a9) TRACE_EVENT_P9(s,a1,a2,a3,a4,a5,a6,a7,a8,a9) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1404 #else /* _SIMULATION_ */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1405 #define TRACE_EVENT_WIN(s) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1406 #define TRACE_EVENT_WIN_P1(s,a1) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1407 #define TRACE_EVENT_WIN_P2(s,a1,a2) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1408 #define TRACE_EVENT_WIN_P3(s,a1,a2,a3) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1409 #define TRACE_EVENT_WIN_P4(s,a1,a2,a3,a4) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1410 #define TRACE_EVENT_WIN_P5(s,a1,a2,a3,a4,a5) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1411 #define TRACE_EVENT_WIN_P6(s,a1,a2,a3,a4,a5,a6) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1412 #define TRACE_EVENT_WIN_P7(s,a1,a2,a3,a4,a5,a6,a7) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1413 #define TRACE_EVENT_WIN_P8(s,a1,a2,a3,a4,a5,a6,a7,a8) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1414 #define TRACE_EVENT_WIN_P9(s,a1,a2,a3,a4,a5,a6,a7,a8,a9) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1415 #endif /* _SIMULATION_ */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1416 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1417 #if defined TRACING |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1418 #define ALR_TRACE(a) vsi_o_ttrace(VSI_CALLER TC_EVENT,a); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1419 #else |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1420 #define ALR_TRACE(a) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1421 #endif /* TRACING */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1422 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1423 #define TNNN_WITH_TIMER |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1424 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1425 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1426 #define ALR_TRACE_ENABLED |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1427 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1428 #if defined(ALR_TRACE_ENABLED) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1429 void alr_trc_init (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1430 void alr_trc_exit (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1431 void alr_trc_store (UCHAR event, UCHAR channel, UCHAR state, void* l2_data); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1432 void alr_trc_read_all (void); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1433 void alr_trc_read (int count); |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1434 #else /* ALR_TRACE_ENABLED */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1435 #define alr_trc_init() |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1436 #define alr_trc_exit() |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1437 #define alr_trc_store(e,c,s,p) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1438 #define alr_trc_read(c) |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1439 #define alr_trc_read_all() |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1440 #endif /* ALR_TRACE_ENABLED */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1441 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1442 /* |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1443 * ALR TRACE defines |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1444 */ |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1445 #define ALR_TRC_UPLINK 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1446 #define ALR_TRC_DOWNLINK 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1447 #define ALR_TRC_EVENT 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1448 #define ALR_TRC_STRING 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1449 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1450 #define ALR_TRC_CH_UNDEF 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1451 #define ALR_TRC_CH_FACCH_FR 1 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1452 #define ALR_TRC_CH_FACCH_HR 2 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1453 #define ALR_TRC_CH_SDCCH4 3 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1454 #define ALR_TRC_CH_SDCCH8 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1455 #define ALR_TRC_CH_SACCH 5 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1456 #define ALR_TRC_CH_UNKNOWN 6 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1457 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1458 #define ALR_TRC_DATA_SIZE 40 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1459 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1460 #define ALR_RXLEV_AVERAGE_MIN 0 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1461 #define ALR_RXLEV_AVERAGE_LWR_THR 4 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1462 |
3a14ee9a9843
src/g23m-gsm: same alr2 & alr3 structure as in Selenite
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1463 #endif /* ALR_H */ |