FreeCalypso > hg > fc-magnetite
comparison src/g23m-gsm/rr/cus_rr.h @ 104:27a4235405c6
src/g23m-gsm: import from LoCosto source
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Tue, 04 Oct 2016 18:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
103:76d139c7a25e | 104:27a4235405c6 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : | |
4 | Modul : | |
5 +----------------------------------------------------------------------------- | |
6 | Copyright 2002 Texas Instruments Berlin, AG | |
7 | All rights reserved. | |
8 | | |
9 | This file is confidential and a trade secret of Texas | |
10 | Instruments Berlin, AG | |
11 | The receipt of or possession of this file does not convey | |
12 | any rights to reproduce or disclose its contents or to | |
13 | manufacture, use, or sell anything it may describe, in | |
14 | whole, or in part, without the specific written consent of | |
15 | Texas Instruments Berlin, AG. | |
16 +----------------------------------------------------------------------------- | |
17 | Purpose : Custom dependent definitions for RR of the | |
18 | mobile station | |
19 +----------------------------------------------------------------------------- | |
20 */ | |
21 | |
22 #ifndef CUS_RR_H | |
23 #define CUS_RR_H | |
24 | |
25 /*==== CONSTANTS ==================================================*/ | |
26 /* | |
27 * TIMER_VALUES | |
28 * | |
29 * Description : The constants define the timer values | |
30 * for the RR timer TXXX depending on the various | |
31 * channel types and service access point identifiers. | |
32 * If your target system uses other units please | |
33 * change the values. | |
34 */ | |
35 | |
36 /* | |
37 * all values in milliseconds independent from the target | |
38 */ | |
39 #define TRESELECT_VALUE 10000 | |
40 #define TABORT_VALUE 10000 | |
41 #define T3110_VALUE 500 | |
42 #define T3110_SDCCH_VALUE 900 | |
43 #define T3126_VALUE 2500 | |
44 #define T3122_VALUE(a) (1000*(a)) | |
45 #define T_PLMN_SEARCH_VALUE 60000 | |
46 | |
47 /* CSI-LLD section:4.1.3.2 | |
48 * Search mode timer values in seconds | |
49 */ | |
50 #define TFAST_CS_VALUE 240000 | |
51 #define TNORMAL_CS_VALUE 240000 | |
52 | |
53 | |
54 #define ONE_SEC 1000 | |
55 #define TEN_SEC 10000 | |
56 #define TWENTY_SEC 20000 | |
57 #define THIRTY_SEC 30000 | |
58 #define SIXTY_SEC 60000 | |
59 #define TWO_MIN 120000 | |
60 #define SIX_MIN 360000 | |
61 | |
62 #ifdef TI_PS_FF_AT_P_CMD_CTREG | |
63 #define T_TEN_SEC 1 | |
64 #define T_TWENTY_SEC 2 | |
65 #define T_THIRTY_SEC 3 | |
66 #define T_SIXTY_SEC 6 | |
67 #define T_TWO_MIN 12 | |
68 #define T_SIX_MIN 36 | |
69 #endif /* TI_PS_FF_AT_P_CMD_CTREG */ | |
70 /* | |
71 * TIMER IDENTIFIER | |
72 * | |
73 * Description : The constants define the identifier of the | |
74 * timer resources of RR. | |
75 */ | |
76 | |
77 #define FOUR_FRAMES 4 | |
78 | |
79 #define T3110_NAME "T3110" | |
80 #define T3122_NAME "T3122" | |
81 #define T3126_NAME "T3126" | |
82 #define TRESELECT_NAME "TRESELECT" | |
83 #define TREG_NAME "TREG" | |
84 #define TABORT_NAME "TABORT" | |
85 | |
86 /* | |
87 * MAX_RR_TIMER | |
88 * | |
89 * Description : The constant define the number of timer | |
90 * available in the timer pool. | |
91 */ | |
92 | |
93 #define MAX_RR_TIMER 6 | |
94 | |
95 /* | |
96 * PERIODS OF MEASUREMENT REPORTS | |
97 * | |
98 * Description : The constants defines the time between | |
99 * measurement reports in idle or dedicated | |
100 * mode as a multiple of 480 ms. | |
101 */ | |
102 #define PERIODS_OF_480MS_DEDICATED 1 | |
103 #define PERIODS_OF_480MS_IDLE 2 | |
104 | |
105 /* | |
106 * MEDIUM_RXLEV_THRESHOLD | |
107 * | |
108 * Description : The constant defines the RxLev threshold for reasonably | |
109 * strong carriers | |
110 */ | |
111 | |
112 #define MEDIUM_RXLEV_THRESHOLD 10 | |
113 | |
114 /* | |
115 * UPPER_RXLEV_THRESHOLD | |
116 * | |
117 * Description : The constant defines the Upper RxLev threshold for | |
118 * strong carriers | |
119 */ | |
120 | |
121 #define UPPER_RXLEV_THRESHOLD 20 | |
122 | |
123 /* | |
124 * MAX_LAI | |
125 * | |
126 * Description : The constant defines the length of the forbidden | |
127 * LAI list. | |
128 */ | |
129 | |
130 #define MAX_LAI 10 | |
131 | |
132 /* | |
133 * MAX_RR_STORED_PRIM | |
134 * | |
135 * Description : The constant defines the number of primitives stored | |
136 * in radio resource in parallel. | |
137 */ | |
138 | |
139 | |
140 /* | |
141 * DG 1.8.2000 | |
142 * #define MAX_RR_STORED_PRIM 5 | |
143 * Forum G23M-0087, more than 5 prims to store | |
144 */ | |
145 | |
146 #define MAX_RR_STORED_PRIM 10 | |
147 | |
148 | |
149 /* | |
150 * FRAME_OFFSET_ZERO | |
151 * | |
152 * Description : If the system ensures that the frame offset | |
153 * for RR message is 24 bits, that means DL | |
154 * start at offset zero, this option can be used | |
155 * for an optimized access to the SDU. | |
156 */ | |
157 | |
158 #undef FRAME_OFFSET_ZERO | |
159 | |
160 /* | |
161 * C1 OFFSET | |
162 * | |
163 * Description : If no test sim card is inserted, this offset | |
164 * is added to the calculated c1 value. This | |
165 * ensures coverage for mobiles with a RF | |
166 * at the lower border of sensitivity. | |
167 */ | |
168 | |
169 #define C1_OFFSET 4 | |
170 | |
171 /* | |
172 * DELAY BEFORE RESET IN CASE NO CONFIGURATION DATA AVAILABLE | |
173 * | |
174 * Description : At system start the software tries to read configuration | |
175 * data from the flash [file system (FFS)] to allow behaviour | |
176 * fitting to a customer's configuration, e.g. in terms of | |
177 * HW suport (supported frequency bands, power class etc...) | |
178 * If no such data can be found the system will reset after | |
179 * the dalay specified below (unit is milliseconds). A customer | |
180 * might use this time to download the configuration to the | |
181 * flash. | |
182 * Introduced with ConQuest Issue 7510, project G23M. | |
183 */ | |
184 | |
185 #define DELAY_RESET_NO_CONFIG_DATA 30000 | |
186 | |
187 /* | |
188 * DELAY BETWEEN NON PARALLEL SEARCH IN LIMITED SERVICE IN ALL FREQ AREA | |
189 * | |
190 * Description : When MS enters Limited Service in all freqqurncy are, | |
191 * Non Parallel search must be used to get back to Full Service. | |
192 * The following constant identifies the time gap between Non | |
193 * Parallel search attempts in such a situation following TREG | |
194 * timer expiry. This time gap is used to allow time for emegency | |
195 * calls to the user. | |
196 */ | |
197 | |
198 #define DELAY_NON_PAR_SEARCH_LIM_SER TWO_MIN | |
199 | |
200 /* | |
201 * VSI_CALLER | |
202 * | |
203 * Description : For multithread applications the constant VSI_CALLER | |
204 * must be defined to identify the calling thread of the | |
205 * VSI-Interface. This must be done correponding to the | |
206 * type of T_VSI_CALLER in VSI.H. The comma symbol is | |
207 * neccessary because the vsi-functions are called | |
208 * like this vsi_xxx (VSI_CALLER par2, par3 ...) | |
209 */ | |
210 | |
211 #ifdef OPTION_MULTITHREAD | |
212 #define VSI_CALLER rr_handle, | |
213 #define VSI_CALLER_SINGLE rr_handle | |
214 #else | |
215 #define VSI_CALLER | |
216 #define VSI_CALLER_SINGLE | |
217 #endif | |
218 | |
219 #endif |