FreeCalypso > hg > fc-magnetite
comparison src/aci2/aci/aci_cmh.h @ 3:93999a60b835
src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Sep 2016 00:29:36 +0000 |
parents | |
children | 67fe1b3f4bd7 |
comparison
equal
deleted
inserted
replaced
2:c41a534f33c6 | 3:93999a60b835 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-F&D (8411) | |
4 | Modul : ACI_CMH | |
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 : Command handler interface definitions | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 #ifndef ACI_CMH_H | |
22 #define ACI_CMH_H | |
23 | |
24 | |
25 /*#ifdef SIM_TOOLKIT */ | |
26 /*#if defined (FAX_AND_DATA) || defined (GPRS) || defined (_SIMULATION_) */ | |
27 /*#define FF_SAT_E */ /* enable SAT CLASS E */ | |
28 /*#endif *//* F&D or GPRS or Simulation */ | |
29 /*#endif *//* SIM_TOOLKIT */ | |
30 /*==== DATA TYPES FROM OLD SMS SAP (TEMPORARY) ====================*/ | |
31 | |
32 /* | |
33 * service center address | |
34 */ | |
35 typedef struct | |
36 { | |
37 UBYTE ntype; /*< 0: 1> numbering type */ | |
38 UBYTE nplan; /*< 1: 1> numbering plan */ | |
39 UBYTE no_bcd; /*< 2: 1> number of BCD digits */ | |
40 UBYTE bcd[MAX_SMS_ADDR_DIG]; /*< 3: 20> address */ | |
41 } T_sc_addr; | |
42 | |
43 | |
44 typedef struct | |
45 { | |
46 UBYTE year[2]; /*< 0: 2> year */ | |
47 UBYTE month[2]; /*< 2: 2> month */ | |
48 UBYTE day[2]; /*< 4: 2> day */ | |
49 UBYTE hour[2]; /*< 6: 2> hour */ | |
50 UBYTE minute[2]; /*< 8: 2> minute */ | |
51 UBYTE second[2]; /*< 10: 2> second */ | |
52 UBYTE timezone; /*< 12: 1> timezone */ | |
53 } T_vp_abs; | |
54 | |
55 typedef enum | |
56 { | |
57 SR_TYP_Name = 0, | |
58 SR_TYP_Number, | |
59 SR_TYP_Index, | |
60 SR_TYP_Physical | |
61 } | |
62 T_ACI_SR_TYP; | |
63 | |
64 #ifdef FF_EM_MODE | |
65 #include "aci_em.h" | |
66 #endif /* FF_EM_MODE */ | |
67 | |
68 /*==== MACROS =====================================================*/ | |
69 #define ACI_ERR_DESC_CLASS( errDesc ) ((errDesc&0xFFFF0000)>>16) | |
70 #define ACI_ERR_DESC_NR( errDesc ) (errDesc&0xFFFF) | |
71 #define ACI_ERR_DESC_BLD( errCls, errNr ) ((errCls<<16)+errNr) | |
72 | |
73 /*==== DEFINES ====================================================*/ | |
74 | |
75 #define ACI_NumParmNotPresent (-1) | |
76 #define MAX_OPER 12 | |
77 #define MAX_FACILITY 17 | |
78 | |
79 #define MAX_B_SUBSCR_NUM_LEN (MAX_PARTY_NUM+1) /* + '\0' */ | |
80 #define MAX_CC_ORIG_NUM_LEN (MAX_CC_CALLED_NUMBER+1) /* + '\0' */ | |
81 | |
82 #ifdef TI_PS_FFS_PHB | |
83 /* | |
84 * A phase 2 and above mobile has to support extension records always, | |
85 * we support at least one extension record which | |
86 * gives us a total length of 40 number digits without trailing '\0'. | |
87 * The former preprocessor constant PHONEBOOK_EXTENSION has been | |
88 * eliminated. | |
89 */ | |
90 #define MAX_PHB_NUM_LEN (40+1) /* Phonebook number length + '\0' */ | |
91 | |
92 #else | |
93 | |
94 #ifdef PHONEBOOK_EXTENSION | |
95 #define MAX_PHB_NUM_LEN (44+1) /* Phonebook number length + '\0' */ | |
96 #else | |
97 #define MAX_PHB_NUM_LEN (20+1) /* Phonebook number length + '\0' */ | |
98 #endif /* else, #ifdef PHONEBOOK_EXTENSION */ | |
99 | |
100 #endif /* else, #ifdef TI_PS_FFS_PHB */ | |
101 | |
102 #define MAX_SUBADDR_LEN (20+1) /* + '\0' */ | |
103 #define MAX_ALPHA_LEN (20+1) /* + '\0' */ | |
104 #define MAX_ALPHA_OPER_LEN (25+1) /* + '\0' */ | |
105 #define MAX_NUM_OPER_LEN 7 | |
106 #define MAX_VP_ABS_DIGITS 2 | |
107 #define MAX_SM_LEN 176 | |
108 #define MAX_CBM_LEN 94 | |
109 #define MAX_SM_CMD_LEN 158 | |
110 #define MAX_CBM_TYPES (MAX_IDENTS) | |
111 #define MAX_PB_ENTR 5 /* Should be the same as file: phb.h, MAX_PHB_ENTRY */ | |
112 #define MAX_PB_INDEX 255 | |
113 #ifdef FAX_AND_DATA | |
114 #define MAX_CALL_NR 7 | |
115 #else | |
116 #define MAX_CALL_NR 6 | |
117 #endif | |
118 #define MAX_SM_ENTR 1 | |
119 #define MAX_USSD_LEN 183 /* max len in message is 160 can be 7bit compressed so 182*/ | |
120 #define MAX_DIAL_LEN 183 /* should be the same as for ussd len */ | |
121 #define MAX_IMSI_LEN 15 /* 3.03/2.3 */ | |
122 #define MAX_SAT_PRF_LEN (MAX_STK_PRF) /* from SAP definition SIM.DOC */ | |
123 #define MAX_SAT_CMD_LEN 255 | |
124 #define MAX_CUR_LEN 4 | |
125 #define MAX_MSISDN 2 | |
126 | |
127 #define CLAN_CODE_LEN 2 | |
128 #define CBCH_HEAD_LEN 6 | |
129 #define CMGW_IDX_FREE_ENTRY 0 | |
130 #define MAX_SMS_NUM_LEN (MAX_SMS_ADDR_DIG+1) | |
131 #define MAX_LAN 24 /* Maximal language supported */ | |
132 | |
133 #ifdef FF_HOMEZONE | |
134 #define CBHZ_MAX_TIMEOUT 120 | |
135 #define CBHZ_MIN_TIMEOUT 30 | |
136 #define CBHZ_DEF_TIMEOUT 60 | |
137 #endif /* FF_HOMEZONE */ | |
138 | |
139 #ifndef NO_ASCIIZ | |
140 #define NO_ASCIIZ | |
141 #endif | |
142 | |
143 /* A T T E N T I O N : this constants have to be verified */ | |
144 #define MAX_CBM_ENTR 1 | |
145 /* A T T E N T I O N : this constants have to be verified */ | |
146 | |
147 /* SMS: TP-Validity-Period-Format (TP-VPF) according to GSM 03.40 */ | |
148 #define TP_VPF_NOT_PRESENT 0x00 | |
149 #define TP_VPF_ENHANCED 0x08 | |
150 #define TP_VPF_RELATIVE 0x10 | |
151 #define TP_VPF_ABSOLUTE 0x18 | |
152 #define TP_VPF_MASK 0x18 | |
153 | |
154 /* SMS: TP-Validity-Period-Enhanced extension bit */ | |
155 #define TP_VPF_ENH_EXT_BIT_MASK 0x80 | |
156 | |
157 /* SMS: TP-Validity-Period-Enhanced single shot bit */ | |
158 #define TP_VPF_ENH_SINGLE_SHOT_MASK 0x40 | |
159 | |
160 /* SMS: TP-Validity-Period-Enhanced-Format */ | |
161 #define TP_VPF_ENH_NOT_PRESENT 0x00 | |
162 #define TP_VPF_ENH_REL 0x01 | |
163 #define TP_VPF_ENH_SEC 0x02 | |
164 #define TP_VPF_ENH_HRS 0x03 | |
165 #define TP_VPF_ENH_FORMAT_MASK 0x07 | |
166 | |
167 /* SMS: TP-Message-Type-Indicator (TP-MTI) according to GSM 03.40 */ | |
168 #define TP_MTI_SMS_DELIVER 0x00 | |
169 #define TP_MTI_SMS_DELIVER_REP 0x00 | |
170 #define TP_MTI_SMS_SUBMIT 0x01 | |
171 #define TP_MTI_SMS_SUBMIT_REP 0x01 | |
172 #define TP_MTI_SMS_COMMAND 0x02 | |
173 #define TP_MTI_SMS_STATUS_REP 0x02 | |
174 #define TP_MTI_SMS_RESERVED 0x03 | |
175 #define TP_MTI_MASK 0x03 | |
176 | |
177 /* SMS: TP-Status-Report-Request (TP-SRR) according to GSM 03.40 */ | |
178 #define TP_SRR_NOT_REQUEST 0x00 | |
179 #define TP_SRR_REQUEST 0x20 | |
180 #define TP_SRR_MASK 0x20 | |
181 | |
182 /* SMS: TP-User-Data-Header-Indicator (TP-UDHI) according to GSM 03.40 */ | |
183 #define TP_UDHI_WITHOUT_HEADER 0x00 | |
184 #define TP_UDHI_WITH_HEADER 0x40 | |
185 #define TP_UDHI_MASK 0x40 | |
186 | |
187 /* SMS: TP-Reply-Path (TP-RP) according to GSM 03.40 */ | |
188 #define TP_RP_NOT_REQUEST 0x00 | |
189 #define TP_RP_REQUEST 0x80 | |
190 #define TP_RP_MASK 0x80 | |
191 | |
192 /* SMS/CBM: control parameter access in PCM */ | |
193 #define ACI_PCM_ACCESS_SMSP 0x01 | |
194 #define ACI_PCM_ACCESS_CBMP 0x02 | |
195 | |
196 /* EONS definitions */ | |
197 #define OPL_MAX_RECORDS 50 | |
198 #define OPL_MAX_RECORD_SIZE 8 | |
199 | |
200 #define PNN_MAX_RECORDS 10 | |
201 | |
202 /* CSQ, signal quality definitions*/ | |
203 #define ACI_RSSI_FAULT 99 | |
204 #define ACI_BER_FAULT 99 | |
205 | |
206 /*CSP ALS service group code and bit value definitions*/ | |
207 #define ACI_CPHS_INFO_SIZE 3 | |
208 #define ACI_CPHS_CSP_SIZE 18 | |
209 #define ALS_SERVICE_GROUP_CODE 0x06 | |
210 #define ALS_BIT_ON 0x80 | |
211 /*CSP VAS service group code and bit value definitions*/ | |
212 #define VAS_SERVICE_GROUP_CODE 0xc0 | |
213 #define PLMN_MODE_BIT_ON 0x80 | |
214 | |
215 /*==== TYPES ======================================================*/ | |
216 | |
217 typedef enum /* AT command identifier */ | |
218 { | |
219 AT_CMD_NONE = 0, /* no ACI command identifier */ | |
220 AT_CMD_CACM = 1, | |
221 AT_CMD_CAMM = 2, | |
222 AT_CMD_CAOC = 3, | |
223 AT_CMD_CBC = 4, | |
224 AT_CMD_CBST = 5, | |
225 AT_CMD_CCFC = 6, | |
226 AT_CMD_CCUG = 7, | |
227 AT_CMD_CCWA = 8, | |
228 AT_CMD_CCWE = 9, | |
229 AT_CMD_CEER = 10, | |
230 AT_CMD_CFUN = 11, | |
231 AT_CMD_CGACT = 12, | |
232 AT_CMD_CGANS = 13, | |
233 AT_CMD_CGATT = 14, | |
234 AT_CMD_CGAUTO = 15, | |
235 AT_CMD_CGCLASS = 16, | |
236 AT_CMD_CGDATA = 17, | |
237 AT_CMD_CGDCONT = 18, | |
238 AT_CMD_CGEREP = 19, | |
239 AT_CMD_CGMI = 20, | |
240 AT_CMD_CGMM = 21, | |
241 AT_CMD_CGMR = 22, | |
242 AT_CMD_CGPADDR = 23, | |
243 AT_CMD_CGQMIN = 24, | |
244 AT_CMD_CGQREQ = 25, | |
245 AT_CMD_CGREG = 26, | |
246 AT_CMD_CGSMS = 27, | |
247 AT_CMD_CGSN = 28, | |
248 AT_CMD_CHLD = 29, | |
249 AT_CMD_CHUP = 30, | |
250 AT_CMD_CIMI = 31, | |
251 AT_CMD_CLAC = 32, | |
252 AT_CMD_CLAE = 33, | |
253 AT_CMD_CLAN = 34, | |
254 AT_CMD_CLCC = 35, | |
255 AT_CMD_CLCK = 36, | |
256 AT_CMD_CLIP = 37, | |
257 AT_CMD_CLIR = 38, | |
258 AT_CMD_CLVL = 39, | |
259 AT_CMD_CMEE = 40, | |
260 AT_CMD_CMGC = 41, | |
261 AT_CMD_CMGD = 42, | |
262 AT_CMD_CMGF = 43, | |
263 AT_CMD_CMGL = 44, | |
264 AT_CMD_CMGR = 45, | |
265 AT_CMD_CMGS = 46, | |
266 AT_CMD_CMGW = 47, | |
267 AT_CMD_CMOD = 48, | |
268 AT_CMD_CMSS = 49, | |
269 AT_CMD_CMUT = 50, | |
270 AT_CMD_CMUX = 51, | |
271 AT_CMD_CNMA = 52, | |
272 AT_CMD_CNMI = 53, | |
273 AT_CMD_CNUM = 54, | |
274 AT_CMD_COLP = 55, | |
275 AT_CMD_COPN = 56, | |
276 AT_CMD_COPS = 57, | |
277 AT_CMD_CPAS = 58, | |
278 AT_CMD_CPBF = 59, | |
279 AT_CMD_CPBR = 60, | |
280 AT_CMD_CPBS = 61, | |
281 AT_CMD_CPBW = 62, | |
282 AT_CMD_CPIN = 63, | |
283 AT_CMD_CPMS = 64, | |
284 AT_CMD_CPOL = 65, | |
285 AT_CMD_CPUC = 66, | |
286 AT_CMD_CPWD = 67, | |
287 AT_CMD_CR = 68, | |
288 AT_CMD_CRC = 69, | |
289 AT_CMD_CREG = 70, | |
290 AT_CMD_CRES = 71, | |
291 AT_CMD_CRLP = 72, | |
292 AT_CMD_CRSL = 73, | |
293 AT_CMD_CRSM = 74, | |
294 AT_CMD_CSAS = 75, | |
295 AT_CMD_CSCA = 76, | |
296 AT_CMD_CSCB = 77, | |
297 AT_CMD_CSCS = 78, | |
298 AT_CMD_CSDH = 79, | |
299 AT_CMD_CSMP = 80, | |
300 AT_CMD_CSMS = 81, | |
301 AT_CMD_CSNS = 82, | |
302 AT_CMD_CSQ = 83, | |
303 AT_CMD_CSSN = 84, | |
304 AT_CMD_CSTA = 85, | |
305 AT_CMD_CSVM = 86, | |
306 AT_CMD_CTFR = 87, | |
307 AT_CMD_CUSD = 88, | |
308 AT_CMD_DR = 89, | |
309 AT_CMD_DS = 90, | |
310 | |
311 #ifdef FF_FAX | |
312 AT_CMD_FAP = 92, | |
313 AT_CMD_FBO = 93, | |
314 AT_CMD_FBS = 94, | |
315 AT_CMD_FBU = 95, | |
316 AT_CMD_FCC = 96, | |
317 AT_CMD_FCLASS = 97, | |
318 AT_CMD_FCQ = 98, | |
319 AT_CMD_FCR = 99, | |
320 AT_CMD_FCS = 100, | |
321 AT_CMD_FCT = 101, | |
322 AT_CMD_FDR = 102, | |
323 AT_CMD_FDT = 103, | |
324 AT_CMD_FEA = 104, | |
325 AT_CMD_FFC = 105, | |
326 AT_CMD_FHS = 106, | |
327 AT_CMD_FIE = 107, | |
328 AT_CMD_FIP = 108, | |
329 AT_CMD_FIS = 109, | |
330 AT_CMD_FIT = 110, | |
331 AT_CMD_FKS = 111, | |
332 AT_CMD_FLI = 112, | |
333 AT_CMD_FLO = 113, | |
334 AT_CMD_FLP = 114, | |
335 AT_CMD_FMI = 115, | |
336 AT_CMD_FMM = 116, | |
337 AT_CMD_FMR = 117, | |
338 AT_CMD_FMS = 118, | |
339 AT_CMD_FND = 119, | |
340 AT_CMD_FNR = 120, | |
341 AT_CMD_FNS = 121, | |
342 AT_CMD_FPA = 122, | |
343 AT_CMD_FPI = 123, | |
344 AT_CMD_FPS = 125, | |
345 AT_CMD_FPW = 126, | |
346 AT_CMD_FRQ = 127, | |
347 AT_CMD_FSA = 129, | |
348 AT_CMD_FSP = 130, | |
349 #endif /* FF_FAX */ | |
350 | |
351 AT_CMD_GCAP = 131, | |
352 AT_CMD_GCI = 132, | |
353 AT_CMD_GMI = 133, | |
354 AT_CMD_GMM = 134, | |
355 AT_CMD_GMR = 135, | |
356 AT_CMD_GSN = 136, | |
357 AT_CMD_ICF = 137, | |
358 AT_CMD_IFC = 138, | |
359 AT_CMD_ILRR = 139, | |
360 AT_CMD_IPR = 140, | |
361 AT_CMD_TM = 141, | |
362 AT_CMD_VST = 142, | |
363 AT_CMD_WS46 = 143, | |
364 AT_CMD_ALS = 144, | |
365 AT_CMD_CLSA = 145, | |
366 AT_CMD_CLOM = 146, | |
367 AT_CMD_CLPS = 147, | |
368 AT_CMD_CLSR = 148, | |
369 AT_CMD_BAND = 149, | |
370 AT_CMD_P_CACM = 150, | |
371 AT_CMD_P_CAOC = 151, | |
372 AT_CMD_CCBS = 152, | |
373 AT_CMD_CGAATT = 153, | |
374 AT_CMD_P_CGMM = 154, | |
375 AT_CMD_P_CGREG = 155, | |
376 AT_CMD_CNAP = 156, | |
377 AT_CMD_CPI = 157, | |
378 AT_CMD_CTTY = 158, | |
379 AT_CMD_COLR = 159, | |
380 AT_CMD_CPRIM = 160, | |
381 AT_CMD_CTV = 161, | |
382 AT_CMD_CUNS = 162, | |
383 AT_CMD_NRG = 163, | |
384 AT_CMD_PPP = 164, | |
385 AT_CMD_SATC = 165, | |
386 AT_CMD_SATE = 166, | |
387 AT_CMD_SATR = 167, | |
388 AT_CMD_SATT = 168, | |
389 AT_CMD_MTST = 169, | |
390 AT_CMD_SNCNT = 170, | |
391 AT_CMD_VER = 171, | |
392 AT_CMD_P_CGCLASS = 172, | |
393 AT_CMD_CGPCO = 173, | |
394 AT_CMD_CGPPP = 174, | |
395 AT_CMD_EM = 175, | |
396 AT_CMD_EMET = 176, | |
397 AT_CMD_EMETS = 177, | |
398 AT_CMD_WAP = 178, | |
399 AT_CMD_CBHZ = 179, | |
400 AT_CMD_CPHS = 180, /* %CPHS command id */ | |
401 AT_CMD_CPNUMS = 181, /* %CPNUMS command id */ | |
402 AT_CMD_CPALS = 182, /* %CPALS command id */ | |
403 AT_CMD_CPVWI = 183, /* %CPVWI voice message waiting command id */ | |
404 AT_CMD_CPOPN = 184, /* %CPOPN operator name string command id */ | |
405 AT_CMD_CPCFU = 185, /* %CPCFU command id */ | |
406 AT_CMD_CPINF = 186, /* %CPHS information and customer service profile command id */ | |
407 AT_CMD_CPMB = 187, /* %CPHS mailbox numbers */ | |
408 AT_CMD_CPRI = 188, | |
409 AT_CMD_DATA = 189, | |
410 AT_CMD_DINF = 190, | |
411 AT_CMD_P_CLCC = 191, | |
412 AT_CMD_P_VST = 192, | |
413 AT_CMD_CHPL = 193, | |
414 AT_CMD_CTZR = 194, | |
415 AT_CMD_VTS = 195, | |
416 AT_CMD_PVRF = 196, | |
417 AT_CMD_CWUP = 197, | |
418 AT_CMD_ABRT = 198, | |
419 AT_CMD_EXT = 199, | |
420 AT_CMD_D = 200, /* D command id */ | |
421 AT_CMD_O = 201, /* O command id */ | |
422 AT_CMD_A = 202, /* A command id */ | |
423 AT_CMD_H = 203, /* H command id */ | |
424 AT_CMD_Z = 204, /* Z command id */ | |
425 AT_CMD_P_CREG = 205, | |
426 AT_CMD_P_CSQ = 206, /* %CSQ command id */ | |
427 AT_CMD_CSIM = 207, /* +CSIM command id */ | |
428 AT_CMD_ATR = 208, /* %ATR command id */ | |
429 AT_CMD_SMBS = 209, | |
430 AT_CMD_DAR = 210, /* %DAR command id */ | |
431 AT_CMD_RDL = 211, /* %RDL command id, process redial mode */ | |
432 AT_CMD_RDLB = 212, /* %RDLB command id, process black list */ | |
433 AT_CMD_CIND = 213, /* +CIND command id */ | |
434 AT_CMD_CMER = 214, /* +CMER command id */ | |
435 AT_CMD_CSCN = 215, /* %CSCN command id */ | |
436 AT_CMD_CSTAT = 216, | |
437 AT_CMD_CPRSM = 217, /* %CPRSM command id */ | |
438 AT_CMD_P_CHLD = 218, /* %CHLD command id */ | |
439 AT_CMD_CTZU = 219, | |
440 AT_CMD_P_CTZV = 220, | |
441 AT_CMD_P_CNIV = 221, | |
442 AT_CMD_P_SECP = 222, | |
443 AT_CMD_P_SECS = 223, | |
444 AT_CMD_P_CSSN = 224, /* %CSSN command id */ | |
445 AT_CMD_CCLK = 225, | |
446 AT_CMD_CSSD = 226, /* %CSSD command id */ | |
447 AT_CMD_P_COPS =227, | |
448 AT_CMD_CPMBW = 228, /* %CPMBW command id */ | |
449 AT_CMD_CUST = 229, /* %CUST command id */ | |
450 AT_CMD_SATCC = 230, /* %SATCC command id */ | |
451 AT_CMD_P_SIMIND = 231, /* %SIMIND command id */ | |
452 AT_CMD_SIMRST = 232, /* State during SIM reset, not related to any AT cmd */ | |
453 AT_CMD_P_COPN = 233, | |
454 AT_CMD_P_CGEREP = 234, /* %CGEREP - TI Proprietary CPHS Event Reporting */ | |
455 #ifdef FF_DUAL_SIM | |
456 AT_CMD_SIM = 235, | |
457 #endif /*FF_DUAL_SIM*/ | |
458 AT_CMD_CUSCFG = 236, /* %CUSCFG comand id*/ | |
459 AT_CMD_CUSDR = 237, /* %CUSDR command id */ | |
460 AT_CMD_CMMS = 238, /* +CMMS command id */ | |
461 AT_CMD_STDR = 239, /* %CUSDR command id */ | |
462 AT_CMD_P_CPBS = 240, /* %CPBS comand id*/ | |
463 AT_CMD_P_DBGINFO = 241, /* %DBGINFO command id */ | |
464 AT_CMD_CDIP = 242, | |
465 AT_CMD_P_PBCF = 243, /* %PBCF comand id */ | |
466 AT_CMD_SIMEF = 244, /* %SIMEF command id */ | |
467 AT_CMD_EFRSLT = 245, /* %EFRSLT command id */ | |
468 #ifdef SIM_PERS | |
469 AT_CMD_MEPD = 246, /* For %MEPD -for querying ME Personalisation Data... Added on 11/03/2005 */ | |
470 #endif | |
471 AT_CMD_P_CMGMDU = 248, /* %CMGMDU command id */ | |
472 AT_CMD_P_CMGL = 249, | |
473 AT_CMD_P_CMGR = 250, | |
474 AT_CMD_P_ST = 251, /* sidetone level */ | |
475 AT_CMD_P_AUL = 252, /* Audio Table Load */ | |
476 AT_CMD_P_POFF = 253, /* Power Off GSM */ | |
477 AT_CMD_P_RST = 254, /* Reset GSM */ | |
478 AT_CMD_P_SC = 255, /* Set IMEI */ | |
479 AT_CMD_P_BAND = 256, /* Get RF band */ | |
480 AT_CMD_MAX /* maximum command id */ | |
481 } T_ACI_AT_CMD; | |
482 | |
483 typedef enum /* KSD command identifier */ | |
484 { | |
485 KSD_CMD_NONE = AT_CMD_MAX, /* no KSD command identifier */ | |
486 KSD_CMD_CB, /* call barring command id */ | |
487 KSD_CMD_CF, /* call forwarding command id */ | |
488 KSD_CMD_CL, /* calling line command id */ | |
489 KSD_CMD_CW, /* call waiting command id */ | |
490 KSD_CMD_PWD, /* password command id */ | |
491 KSD_CMD_UBLK, /* unblock PIN command id */ | |
492 KSD_CMD_USSD, /* unstructured SS command id */ | |
493 KSD_CMD_IMEI, /* get IMEI command id */ | |
494 KSD_CMD_CCBS, /* CCBS command id */ | |
495 | |
496 KSD_CMD_MAX /* maximum command id */ | |
497 } | |
498 T_ACI_KSD_CMD; | |
499 | |
500 #define CMD_SRC_ATI 1 | |
501 typedef enum /* AT command source identifier */ | |
502 { | |
503 CMD_SRC_NONE = -1, /* no ACI command source identifier */ | |
504 CMD_SRC_LCL, /* local command source id */ | |
505 #ifdef FF_ATI | |
506 CMD_SRC_ATI_1, /* remote command source id */ | |
507 CMD_SRC_ATI_2, /* remote command source id */ | |
508 #ifndef GOLITE | |
509 CMD_SRC_ATI_3, /* remote command source id */ | |
510 CMD_SRC_ATI_4, /* remote command source id */ | |
511 #ifdef SIM_TOOLKIT | |
512 CMD_SRC_ATI_5, /* added in case of SAT run at cmd | |
513 THIS DOES NOT MEAN THIS IS THE SAT SOURCE THOUGH !!! */ | |
514 #endif /* SIM_TOOLKIT */ | |
515 /* FreeCalypso debug hack: reusing CMD_SRC_ATI_6 for our AT-over-RVTMUX */ | |
516 #if 1 //defined FF_EOTD | |
517 CMD_SRC_ATI_6, /* added in case of Location Service (test purposes) */ | |
518 #endif /* FF_EOTD */ | |
519 #endif /* GOLITE */ | |
520 #endif /* FF_ATI */ | |
521 CMD_SRC_MAX /* maximum command source id */ | |
522 } T_ACI_CMD_SRC; | |
523 | |
524 | |
525 typedef enum /* Command mode */ | |
526 { | |
527 CMD_MODE_ACI=0, /* ACI */ | |
528 CMD_MODE_ATI, /* ATI */ | |
529 #ifdef FF_BAT | |
530 CMD_MODE_BAT, /* BAT */ | |
531 #endif | |
532 CMD_MODE_MAX, /* Number of possible command modes */ | |
533 CMD_MODE_NONE /* 'null' value */ | |
534 } | |
535 T_ACI_CMD_MODE; | |
536 | |
537 typedef enum /* ACI functional return codes */ | |
538 { | |
539 AT_FAIL = -1, /* execution of command failed */ | |
540 AT_CMPL, /* execution of command completed */ | |
541 AT_EXCT, /* execution of command is in progress */ | |
542 AT_BUSY /* execution of command is rejected due | |
543 to a busy command handler */ | |
544 } T_ACI_RETURN; | |
545 | |
546 /* value used internally by ACI */ | |
547 #define AT_CONT (AT_BUSY+1) | |
548 | |
549 typedef enum /* ACI error class */ | |
550 { | |
551 ACI_ERR_CLASS_NotPresent = -1, | |
552 ACI_ERR_CLASS_Cme, /* +CME Error codes */ | |
553 ACI_ERR_CLASS_Cms, /* +CMS Error codes */ | |
554 ACI_ERR_CLASS_Ceer, /* +CEER Error code */ | |
555 ACI_ERR_CLASS_Ext /* extended error codes */ | |
556 | |
557 } T_ACI_ERR_CLASS; | |
558 | |
559 typedef ULONG T_ACI_ERR_DESC; /* supplemental error description */ | |
560 | |
561 | |
562 typedef enum /* used data coding schemes */ | |
563 { | |
564 CS_NotPresent = -1, | |
565 CS_GsmDef = 0, /* 7 BIT */ | |
566 CS_GsmInt, /* 7 BIT (8. Bit gesetzt) */ | |
567 CS_Hex, /* 8 BIT transparent */ | |
568 CS_Ucs2, /* 16 BIT Unicode */ | |
569 CS_Sim, /* SIM card format */ | |
570 CS_Ascii | |
571 } | |
572 T_ACI_CS; | |
573 | |
574 typedef struct /* CRES type defination for restores message service settings */ | |
575 { | |
576 UBYTE min; | |
577 UBYTE max; | |
578 } T_ACI_CRES; | |
579 | |
580 typedef struct /* data buffer for phonebook alpha */ | |
581 { | |
582 UBYTE data[MAX_PHB_NUM_LEN]; /*GW - from MAX_ALPHA_LEN - used to search for a number */ | |
583 UBYTE len; | |
584 T_ACI_CS cs; | |
585 } | |
586 T_ACI_PB_TEXT; | |
587 | |
588 typedef struct /* data buffer for Short Messages */ | |
589 { | |
590 UBYTE data[MAX_SM_LEN]; | |
591 UBYTE len; | |
592 } | |
593 T_ACI_SM_DATA; | |
594 | |
595 typedef struct /* data buffer for Concatenated Short Messages */ | |
596 { | |
597 UBYTE *data; | |
598 USHORT len; | |
599 } | |
600 T_SM_DATA_EXT; | |
601 | |
602 typedef enum /* for conc. SMS init functions */ | |
603 { | |
604 EMPTY = -1, | |
605 CMSS_CONC, | |
606 CMGS_CONC, | |
607 CMGC_CONC, | |
608 CMGR_CONC, | |
609 CMGW_CONC, | |
610 CMGD_CONC | |
611 } T_EXT_CMS_CMD_ID; | |
612 | |
613 typedef struct /* error data Concat. SMS */ | |
614 { | |
615 T_EXT_CMS_CMD_ID id; | |
616 union | |
617 { | |
618 struct | |
619 { | |
620 UBYTE segs; | |
621 } errConcCMSS; | |
622 struct | |
623 { | |
624 USHORT sent_chars; | |
625 UBYTE ref_num; | |
626 UBYTE next_seg; | |
627 UBYTE max_num; | |
628 } errConcCMGS; | |
629 struct | |
630 { | |
631 USHORT sent_chars; | |
632 UBYTE ref_num; | |
633 UBYTE next_seg; | |
634 UBYTE max_num; | |
635 } errConcCMGW; | |
636 } specErr; | |
637 } | |
638 T_EXT_CMS_ERROR; | |
639 | |
640 typedef struct /* data buffer for Commands */ | |
641 { | |
642 UBYTE data[MAX_SM_CMD_LEN]; | |
643 UBYTE len; | |
644 } | |
645 T_ACI_CMD_DATA; | |
646 | |
647 typedef struct /* data buffer for Cell Broadcast Messages */ | |
648 { | |
649 UBYTE data[MAX_CBM_LEN]; | |
650 UBYTE len; | |
651 } | |
652 T_ACI_CBM_DATA; | |
653 | |
654 typedef struct /* data buffer for User Data Headers */ | |
655 { | |
656 UBYTE data[MAX_SM_LEN]; | |
657 UBYTE len; | |
658 } | |
659 T_ACI_UDH_DATA; | |
660 | |
661 typedef struct /* data buffer for unstructured SS data */ | |
662 { | |
663 UBYTE data[MAX_USSD_LEN]; | |
664 UBYTE len; | |
665 } | |
666 T_ACI_USSD_DATA; | |
667 | |
668 /*---- +CFUN ------------------------------------------------------*/ | |
669 typedef enum /* +CFUN parameter <fun> */ | |
670 { | |
671 CFUN_FUN_NotPresent = -1, | |
672 CFUN_FUN_Minimum, | |
673 CFUN_FUN_Full, | |
674 CFUN_FUN_Disable_TX_RX_RF = 4 | |
675 } | |
676 T_ACI_CFUN_FUN; | |
677 | |
678 typedef enum /* +CFUN parameter <rst> */ | |
679 { | |
680 CFUN_RST_NotPresent = -1, | |
681 CFUN_RST_NoReset, | |
682 CFUN_RST_PreReset | |
683 } | |
684 T_ACI_CFUN_RST; | |
685 | |
686 /*---- +CME ------------------------------------------------------*/ | |
687 typedef enum /* +CME ERROR parameter <err> */ | |
688 { | |
689 CME_ERR_NotPresent = -1, | |
690 CME_ERR_PhoneFail, | |
691 CME_ERR_NoConnect, | |
692 CME_ERR_LinkRes, | |
693 CME_ERR_OpNotAllow, | |
694 CME_ERR_OpNotSupp, | |
695 CME_ERR_PhSimPinReq, /* PH-SIM PIN required (SIM personalisation) */ | |
696 CME_ERR_PhFSimPinReq, /* PH-FSIM PIN required (personalisation on first inserted SIM) */ | |
697 CME_ERR_PhFSimPukReq, /* PH-FSIM PUK required (personalisation on first inserted SIM) */ | |
698 CME_ERR_SimNotIns = 10, | |
699 CME_ERR_SimPinReq, | |
700 CME_ERR_SimPukReq, | |
701 CME_ERR_SimFail, | |
702 CME_ERR_SimBusy, | |
703 CME_ERR_SimWrong, | |
704 CME_ERR_WrongPasswd, | |
705 CME_ERR_SimPin2Req, | |
706 CME_ERR_SimPuk2Req, | |
707 CME_ERR_MemFull = 20, | |
708 CME_ERR_InvIdx, | |
709 CME_ERR_NotFound, | |
710 CME_ERR_MemFail, | |
711 CME_ERR_TxtToLong, | |
712 CME_ERR_InvalidTxtChar, | |
713 CME_ERR_DialToLong, | |
714 CME_ERR_InvDialChar, | |
715 CME_ERR_NoServ = 30, | |
716 CME_ERR_Timeout, | |
717 CME_ERR_LimServ, | |
718 CME_ERR_NetworkPersPinReq = 40, /* PIN to change network personalisation required */ | |
719 CME_ERR_NetworkPersPukReq, /* network personalisation PUK is required */ | |
720 CME_ERR_NetworkSubsetPersPinReq, /* keycode to change nw subset personalisation required */ | |
721 CME_ERR_NetworkSubsetPersPukReq, /* network subset personalisation PUK is required */ | |
722 CME_ERR_ProviderPersPinReq, /* keycode to change service provider personal. required */ | |
723 CME_ERR_ProviderPersPukReq, /* service provider personalisation PUK is required */ | |
724 CME_ERR_CorporatePersPinReq, /* keycode to change corporate personalisation required */ | |
725 CME_ERR_CorporatePersPukReq, /* corporate personalisation PUK is required */ | |
726 CME_ERR_Unknown = 100, | |
727 | |
728 #ifdef GPRS | |
729 /* GSM 7:60 10.3.1 error codes */ | |
730 CME_ERR_GPRSBadMs = 103, | |
731 CME_ERR_GPRSBadMe = 106, | |
732 CME_ERR_GPRSNoService = 107, | |
733 CME_ERR_GPRSBadPlmn = 111, | |
734 CME_ERR_GPRSBadLoc = 112, | |
735 CME_ERR_GPRSNoRoam = 113, | |
736 CME_ERR_GPRSSerOptNsup = 132, | |
737 CME_ERR_GPRSSerOptNsub = 133, | |
738 CME_ERR_GPRSSerOptOOO = 134, | |
739 CME_ERR_GPRSUnspec = 148, | |
740 CME_ERR_GPRSPdpAuth = 149, | |
741 CME_ERR_GPRSBadModClass = 150, | |
742 #endif /*GPRS*/ | |
743 | |
744 CME_ERR_FailedToAbort = 512, | |
745 CME_ERR_AcmResetNeeded= 513, | |
746 CME_ERR_SimSatBusy = 514 /* Sim is busy with SAT (sw1=0x93), further normal commands allowed */ | |
747 } | |
748 T_ACI_CME_ERR; | |
749 | |
750 /*---- +CEER -- Standards Definition-----------------------------------*/ | |
751 typedef enum /* +CEER parameter <report> */ | |
752 { | |
753 CEER_NotPresent = -1, | |
754 CEER_Unassign = 1, | |
755 CEER_NoRoute = 3, | |
756 CEER_ChanUnaccept = 6, | |
757 CEER_Barred = 8, | |
758 CEER_CallClear = 16, | |
759 CEER_UserBusy, | |
760 CEER_NoResponse, | |
761 CEER_AlertNoAnswer, | |
762 CEER_CallReject = 21, | |
763 CEER_NumChanged, | |
764 CEER_UserClear = 26, | |
765 CEER_DestOutOfOrder, | |
766 CEER_NumFormat, | |
767 CEER_FacilityReject, | |
768 CEER_StatusEnquiry, | |
769 CEER_Unspecified, | |
770 CEER_NoChanAvail = 34, | |
771 CEER_NetworkOutOfOrder = 38, | |
772 CEER_TempFailure = 41, | |
773 CEER_SwitchCongest, | |
774 CEER_InfoDiscard, | |
775 CEER_ReqChanUnavail, | |
776 CEER_ResourceUnavail = 47, | |
777 CEER_QOS_Unavail = 49, | |
778 CEER_FAC_Unsubscr, | |
779 CEER_BarredInCUG = 55, | |
780 CEER_BearerCapNotAuth = 57, | |
781 CEER_BearerCapUnavail, | |
782 CEER_ServUnavail = 63, | |
783 CEER_BearerNotImpl = 65, | |
784 CEER_ACM_Max = 68, | |
785 CEER_FAC_NotImpl, | |
786 CEER_RestrictBearerCap, | |
787 CEER_ServNotImpl = 79, | |
788 CEER_InvalidTI = 81, | |
789 CEER_UserNotInCUG = 87, | |
790 CEER_IncompatDest, | |
791 CEER_InvalidTransNet = 91, | |
792 CEER_IncorrMsg = 95, | |
793 CEER_InvalidMandInfo, | |
794 CEER_MsgTypeNotImpl, | |
795 CEER_MsgTypeIncomp, | |
796 CEER_InfoElemNotImpl, | |
797 CEER_CondInfoElem, | |
798 CEER_MsgIncomp, | |
799 CEER_Timer, | |
800 | |
801 #ifdef GPRS | |
802 CEER_FailedGPRSAttach = 101 , | |
803 CEER_FailedGPRSContextAct, | |
804 CEER_GPRSDetach, | |
805 CEER_GPRSDeactivation, | |
806 #endif /* GPRS */ | |
807 | |
808 CEER_Protocol = 111, /* These are supposed to be GPRS codes !!! de*/ | |
809 CEER_Interworking = 127, /* These are supposed to be GPRS codes !!! de*/ | |
810 CEER_ReqBearerServNotAvail = 200, | |
811 CEER_NoTransIdAvail, | |
812 CEER_Timer303, | |
813 CEER_EstabFail, | |
814 CEER_NoError = 210, | |
815 CEER_Failed, | |
816 CEER_Timeout, | |
817 CEER_BearerServNotCompat | |
818 } | |
819 T_ACI_CEER; | |
820 | |
821 /*---- +CEER --ACI Proprietary Definition-----------------------------------*/ | |
822 typedef enum /* +CEER parameter <report> */ | |
823 { | |
824 P_CEER_NotPresent = CEER_NotPresent , | |
825 P_CEER_ACMMaxReachedOrExceeded, | |
826 P_CEER_InvalidFDN | |
827 } | |
828 T_ACI_PCEER; | |
829 | |
830 /*---- +CEER --MM Proprietary Definition-----------------------------------*/ | |
831 typedef enum /* +CEER parameter <report> */ | |
832 { | |
833 P_MM_CEER_NotPresent = CEER_NotPresent , | |
834 P_MM_CEER_IMSINotInHLR = 2, /* IMSI not present in HLR */ | |
835 P_MM_CEER_NoService = 128 /* 0x80 */ | |
836 } | |
837 T_MM_PCEER; | |
838 | |
839 /*---- +CEER --SS Proprietary Definition-----------------------------------*/ | |
840 typedef enum /* +CEER parameter <report> */ | |
841 { | |
842 P_SS_CEER_NotPresent = CEER_NotPresent , | |
843 P_SS_CEER_UnknownSubscriber = 1, | |
844 P_SS_CEER_IllegalSubscriber = 9, | |
845 P_SS_CEER_BearerSvcNotProv = 10, | |
846 P_SS_CEER_TeleSvcNotProv = 11, | |
847 P_SS_CEER_IllegalEquipment = 12, | |
848 P_SS_CEER_CallBarred = 13, | |
849 P_SS_CEER_IllegalSSOperation = 16, | |
850 P_SS_CEER_SSerrStatus = 17, | |
851 P_SS_CEER_SSNotAvail = 18, | |
852 P_SS_CEER_SSSubsViolation = 19, | |
853 P_SS_CEER_SSIncomp = 20, | |
854 P_SS_CEER_FacNotSupported = 21, | |
855 P_SS_CEER_AbsentSubs = 27, | |
856 P_SS_CEER_SystenFail = 34, | |
857 P_SS_CEER_DataMissing = 35, | |
858 P_SS_CEER_UnexpectData = 36, | |
859 P_SS_CEER_PwdRegFail = 37, | |
860 P_SS_CEER_NegPwdCheck = 38, | |
861 P_SS_CEER_NumPwdViolation = 43, | |
862 P_SS_CEER_UnknownAlpha = 71, | |
863 P_SS_CEER_UssdBusy = 72, | |
864 P_SS_CEER_MaxNumMptyExceed = 126, | |
865 P_SS_CEER_ResourceNotAvail = 127 | |
866 } | |
867 T_SS_PCEER; | |
868 | |
869 typedef enum | |
870 { | |
871 P_CEER_mod = CEER_NotPresent, | |
872 P_CEER_sim, /* +CEER for sim */ | |
873 P_CEER_mm, /* +CEER for mm */ | |
874 P_CEER_ss /* +CEER for ss */ | |
875 } T_PCEER; | |
876 | |
877 /*---- ACI extended error -------------------------------------*/ | |
878 typedef enum /* extended error parameter */ | |
879 { | |
880 EXT_ERR_NotPresent = -1, | |
881 EXT_ERR_Parameter, | |
882 EXT_ERR_DataCorrupt, | |
883 EXT_ERR_Internal, | |
884 EXT_ERR_CallTabFull, | |
885 EXT_ERR_SrvTabFull, | |
886 EXT_ERR_CallNotFound, | |
887 EXT_ERR_NoDataCallSup, | |
888 EXT_ERR_OneCallOnHold, | |
889 EXT_ERR_CallTypeNoHold, | |
890 EXT_ERR_FdnCheck, | |
891 EXT_ERR_BdnCheck, | |
892 EXT_ERR_ParallelUSSD, | |
893 EXT_ERR_FaxMinSpeedCond, | |
894 EXT_ERR_CmdDetailsSAT, | |
895 EXT_ERR_AlsLock, | |
896 EXT_ERR_IMEICheck, | |
897 | |
898 #if defined FF_EOTD | |
899 EXT_ERR_LCS_CmdNotSup, | |
900 EXT_ERR_LCS_CmdNotRec, | |
901 EXT_ERR_LCS_CLPSClientNotRec, | |
902 EXT_ERR_LCS_IntervalNotSup, | |
903 EXT_ERR_LCS_RepeatNotSup, | |
904 EXT_ERR_LCS_SendReqTyNotRec, | |
905 EXT_ERR_LCS_UsConfReqTyNotRec, | |
906 EXT_ERR_LCS_CLSRClientIdNotRec, | |
907 EXT_ERR_LCS_CSCallNumNotSup, | |
908 #endif /* FF_EOTD */ | |
909 EXT_ERR_Unknown = 100 | |
910 | |
911 } | |
912 T_ACI_EXT_ERR; | |
913 | |
914 /*---- Class of Service--------------------------------------------*/ | |
915 typedef enum /* service class */ | |
916 { | |
917 CLASS_NotPresent = -1, | |
918 CLASS_None, | |
919 CLASS_Vce, | |
920 CLASS_Dat, | |
921 CLASS_VceDat, | |
922 CLASS_Fax, | |
923 CLASS_VceFax, | |
924 CLASS_DatFax, | |
925 CLASS_VceDatFax, | |
926 CLASS_Sms, | |
927 CLASS_VceSms, | |
928 CLASS_DatSms, | |
929 CLASS_VceDatSms, | |
930 CLASS_FaxSms, | |
931 CLASS_VceFaxSms, | |
932 CLASS_DatFaxSms, | |
933 CLASS_VceDatFaxSms, | |
934 CLASS_DatCirSync, | |
935 CLASS_DatCirAsync = 32, | |
936 CLASS_DedPacAccess = 64, | |
937 CLASS_AllSync = 80, | |
938 CLASS_AllAsync = 160, | |
939 CLASS_DedPADAcess = 128, | |
940 CLASS_AuxVce = 256 | |
941 } T_ACI_CLASS; | |
942 | |
943 /*---- Type of address --------------------------------------------*/ | |
944 typedef enum /* numbering plan identifier */ | |
945 { | |
946 NPI_NotPresent =-1, | |
947 NPI_Unknown = 0, | |
948 NPI_IsdnTelephony = 1, | |
949 NPI_Data = 3, | |
950 NPI_Telex = 4, | |
951 NPI_National = 8, | |
952 NPI_Private = 9, | |
953 NPI_ERMES = 10, /* ffs */ | |
954 NPI_CTS = 11 /* ffs */ | |
955 } | |
956 T_ACI_TOA_NPI; | |
957 | |
958 typedef enum /* type of number */ | |
959 { | |
960 TON_NotPresent =-1, | |
961 TON_Unknown = 0, | |
962 TON_International, | |
963 TON_National, | |
964 TON_NetSpecific, | |
965 TON_DedAccess, | |
966 TON_Alphanumeric, | |
967 TON_Abbreviated, | |
968 TON_Extended /* ffs */ | |
969 } | |
970 T_ACI_TOA_TON; | |
971 | |
972 typedef struct /* type of address octet */ | |
973 { | |
974 T_ACI_TOA_TON ton; | |
975 T_ACI_TOA_NPI npi; | |
976 } | |
977 T_ACI_TOA; | |
978 | |
979 /*---- Type of subaddress -----------------------------------------*/ | |
980 typedef enum /* type of subaddress */ | |
981 { | |
982 TOS_NotPresent =-1, | |
983 TOS_Nsap = 0, | |
984 TOS_User = 2 | |
985 } | |
986 T_ACI_TOS_TOS; | |
987 | |
988 typedef enum /* odd/even indicator */ | |
989 { | |
990 OE_NotPresent =-1, | |
991 OE_Even = 0, | |
992 OE_Odd = 1 | |
993 } | |
994 T_ACI_TOS_OE; | |
995 | |
996 typedef struct /* type of address octet */ | |
997 { | |
998 T_ACI_TOS_TOS tos; | |
999 T_ACI_TOS_OE oe; | |
1000 } | |
1001 T_ACI_TOS; | |
1002 | |
1003 /*---- alerting pattern ------------------------------------------*/ | |
1004 typedef enum /* alerting pattern */ | |
1005 { | |
1006 ALPT_NotPresent = -1, | |
1007 ALPT_Level_0, | |
1008 ALPT_Level_1, | |
1009 ALPT_Level_2, | |
1010 ALPT_Ctgry_1 = 4, | |
1011 ALPT_Ctgry_2, | |
1012 ALPT_Ctgry_3, | |
1013 ALPT_Ctgry_4, | |
1014 ALPT_Ctgry_5 | |
1015 } | |
1016 T_ACI_ALRT_PTRN; | |
1017 | |
1018 /*---- +CPIN ------------------------------------------------------*/ | |
1019 typedef enum /* +CPIN response parameter <rslt> */ | |
1020 { | |
1021 CPIN_RSLT_NotPresent = -1, | |
1022 CPIN_RSLT_SimReady, | |
1023 CPIN_RSLT_SimPinReq, | |
1024 CPIN_RSLT_SimPukReq, | |
1025 CPIN_RSLT_PhSimPinReq, | |
1026 CPIN_RSLT_SimPin2Req, | |
1027 CPIN_RSLT_SimPuk2Req, | |
1028 /* OVK: Extended list of all possible result according to 07.07 */ | |
1029 CPIN_RSLT_PhFSimPinReq, | |
1030 CPIN_RSLT_PhFSimPukReq, | |
1031 CPIN_RSLT_PhNetPinReq, | |
1032 CPIN_RSLT_PhNetPukReq, | |
1033 CPIN_RSLT_PhNetSubPinReq, | |
1034 CPIN_RSLT_PhNetSubPukReq, | |
1035 CPIN_RSLT_PhSPPinReq, | |
1036 CPIN_RSLT_PhSPPukReq, | |
1037 CPIN_RSLT_PhCorpPinReq, | |
1038 CPIN_RSLT_PhCorpPukReq | |
1039 | |
1040 } | |
1041 T_ACI_CPIN_RSLT; | |
1042 | |
1043 /*---- +COPS ------------------------------------------------------*/ | |
1044 | |
1045 typedef enum /* +COPS parameter <mode> */ | |
1046 { | |
1047 COPS_MOD_NotPresent = -1, | |
1048 COPS_MOD_Auto, | |
1049 COPS_MOD_Man, | |
1050 COPS_MOD_Dereg, | |
1051 COPS_MOD_SetOnly, | |
1052 COPS_MOD_Both | |
1053 } | |
1054 T_ACI_COPS_MOD; | |
1055 | |
1056 typedef enum /* +COPS parameter <format> */ | |
1057 { | |
1058 COPS_FRMT_NotPresent = -1, | |
1059 COPS_FRMT_Long, | |
1060 COPS_FRMT_Short, | |
1061 COPS_FRMT_Numeric | |
1062 } | |
1063 T_ACI_COPS_FRMT; | |
1064 | |
1065 typedef enum /* +COPS parameter <stat> */ | |
1066 { | |
1067 COPS_STAT_NotPresent = -1, | |
1068 COPS_STAT_Unknown, | |
1069 COPS_STAT_Available, | |
1070 COPS_STAT_Current, | |
1071 COPS_STAT_Forbidden | |
1072 } T_ACI_COPS_STAT; | |
1073 | |
1074 typedef enum /* %COPS parameter <srvStatus> */ | |
1075 { | |
1076 COPS_SVST_NotPresent = -1, | |
1077 COPS_SVST_Full, | |
1078 COPS_SVST_Limited, | |
1079 COPS_SVST_NoSrv, | |
1080 COPS_SVST_SetRegModeOnly | |
1081 } | |
1082 T_ACI_COPS_SVST; | |
1083 | |
1084 | |
1085 typedef struct /* +COPS operator list element*/ | |
1086 { | |
1087 T_ACI_COPS_STAT status; | |
1088 CHAR * longOper; | |
1089 CHAR * shortOper; | |
1090 CHAR numOper[MAX_NUM_OPER_LEN]; | |
1091 UBYTE pnn; /* PLMN Network Name Source (for EONS) */ | |
1092 UBYTE long_len; | |
1093 UBYTE long_ext_dcs; | |
1094 UBYTE shrt_len; | |
1095 UBYTE shrt_ext_dcs; | |
1096 }T_ACI_COPS_OPDESC; | |
1097 | |
1098 typedef struct | |
1099 { | |
1100 char longName[MAX_ALPHA_OPER_LEN]; | |
1101 char shrtName[MAX_ALPHA_OPER_LEN]; | |
1102 SHORT mcc; | |
1103 SHORT mnc; | |
1104 UBYTE pnn; /* PLMN Network Name Source (for EONS) */ | |
1105 UBYTE long_len; | |
1106 UBYTE shrt_len; | |
1107 UBYTE source; | |
1108 } T_ACI_OPER_NTRY; | |
1109 | |
1110 | |
1111 typedef T_ACI_COPS_OPDESC T_ACI_COPS_LST [MAX_OPER]; | |
1112 | |
1113 /*---- +CPOL ------------------------------------------------------*/ | |
1114 | |
1115 typedef enum /* +CPOL parameter <format> */ | |
1116 { | |
1117 CPOL_FRMT_NotPresent = -1, | |
1118 CPOL_FRMT_Long, | |
1119 CPOL_FRMT_Short, | |
1120 CPOL_FRMT_Numeric | |
1121 } | |
1122 T_ACI_CPOL_FRMT; | |
1123 | |
1124 typedef enum /* +CPOL parameter <mode> */ | |
1125 { | |
1126 CPOL_MOD_NotPresent = -1, | |
1127 CPOL_MOD_CompactList, | |
1128 CPOL_MOD_Insert | |
1129 } | |
1130 T_ACI_CPOL_MOD; | |
1131 | |
1132 typedef struct /* +CPOL preferred operator list element */ | |
1133 { | |
1134 SHORT index; | |
1135 T_ACI_CPOL_FRMT format; | |
1136 CHAR oper[MAX_ALPHA_OPER_LEN]; | |
1137 }T_ACI_CPOL_OPDESC; | |
1138 | |
1139 typedef T_ACI_CPOL_OPDESC T_ACI_CPOL_LST [MAX_OPER]; | |
1140 | |
1141 typedef enum /* Language codes */ | |
1142 { | |
1143 CLAN_LNG_AUT = -1, /*Automatic*/ | |
1144 CLAN_LNG_ENG, /*English*/ | |
1145 CLAN_LNG_FRE, /*French*/ | |
1146 CLAN_LNG_GER, /*German*/ | |
1147 CLAN_LNG_DUT, /*Dutch*/ | |
1148 CLAN_LNG_ITA, | |
1149 CLAN_LNG_SPA, | |
1150 CLAN_LNG_SWE, | |
1151 CLAN_LNG_POR, | |
1152 CLAN_LNG_FIN, | |
1153 CLAN_LNG_NOR, | |
1154 CLAN_LNG_GRE, | |
1155 CLAN_LNG_TUR, | |
1156 CLAN_LNG_HUN, | |
1157 CLAN_LNG_SLO, | |
1158 CLAN_LNG_POL, | |
1159 CLAN_LNG_RUS, | |
1160 CLAN_LNG_IND, | |
1161 CLAN_LNG_CZE, | |
1162 CLAN_LNG_CHI, | |
1163 CLAN_LNG_CAN, | |
1164 CLAN_LNG_MAN, | |
1165 CLAN_LNG_TAI, | |
1166 CLAN_LNG_ARA | |
1167 } | |
1168 T_ACI_CLAN_LNG; | |
1169 | |
1170 typedef struct | |
1171 { | |
1172 CHAR *str; | |
1173 T_ACI_CLAN_LNG lng; | |
1174 } | |
1175 T_ACI_LAN_SUP; | |
1176 | |
1177 /*---- +CREG ------------------------------------------------------*/ | |
1178 typedef enum /* +CREG parameter <stat> */ | |
1179 { | |
1180 CREG_STAT_NotPresent = -1, | |
1181 CREG_STAT_NoSearch, | |
1182 CREG_STAT_Reg, | |
1183 CREG_STAT_Search, | |
1184 CREG_STAT_Denied, | |
1185 CREG_STAT_Unknown, | |
1186 CREG_STAT_Roam | |
1187 } | |
1188 T_ACI_CREG_STAT; | |
1189 | |
1190 /*---- %CREG ------------------------------------------------------*/ | |
1191 typedef enum /* %CREG parameter <gprs_ind> */ | |
1192 { | |
1193 P_CREG_GPRS_Not_Supported = 0, | |
1194 P_CREG_GPRS_Supported_Limited_Serv, | |
1195 P_CREG_GPRS_Supported, | |
1196 P_CREG_GPRS_Support_Unknown | |
1197 } | |
1198 T_ACI_P_CREG_GPRS_IND; | |
1199 | |
1200 /*---- D ---------------------------------------------------------*/ | |
1201 typedef enum /* D parameter <clirOvrd> */ | |
1202 { | |
1203 D_CLIR_OVRD_Default = -1, | |
1204 D_CLIR_OVRD_Supp, | |
1205 D_CLIR_OVRD_Invoc | |
1206 } | |
1207 T_ACI_D_CLIR_OVRD; | |
1208 | |
1209 typedef enum /* D parameter <cugCtrl> */ | |
1210 { | |
1211 D_CUG_CTRL_NotPresent = -1, | |
1212 D_CUG_CTRL_Present | |
1213 } | |
1214 T_ACI_D_CUG_CTRL; | |
1215 | |
1216 typedef enum /* D parameter <callType> */ | |
1217 { | |
1218 D_TOC_Data = -1, | |
1219 D_TOC_Voice | |
1220 } | |
1221 T_ACI_D_TOC; | |
1222 | |
1223 #ifdef SIM_TOOLKIT | |
1224 typedef enum /* D parameter <simCallControl> */ | |
1225 { | |
1226 D_SIMCC_NOT_ACTIVE = 0, | |
1227 D_SIMCC_ACTIVE, | |
1228 D_SIMCC_ACTIVE_CHECK | |
1229 } | |
1230 T_ACI_D_SIMCC; | |
1231 #endif /* SIM_TOOLKIT */ | |
1232 | |
1233 /*---- +CLIR ------------------------------------------------------*/ | |
1234 typedef enum /* +CLIR parameter <mode> */ | |
1235 { | |
1236 CLIR_MOD_NotPresent = -1, | |
1237 CLIR_MOD_Subscript, | |
1238 CLIR_MOD_Invoc, | |
1239 CLIR_MOD_Supp | |
1240 } | |
1241 T_ACI_CLIR_MOD; | |
1242 | |
1243 typedef enum /* +CLIR parameter <stat> */ | |
1244 { | |
1245 CLIR_STAT_NotPresent = -1, | |
1246 CLIR_STAT_NotProv, | |
1247 CLIR_STAT_Permanent, | |
1248 CLIR_STAT_Unknown, | |
1249 CLIR_STAT_RestrictTemp, | |
1250 CLIR_STAT_AllowTemp | |
1251 } | |
1252 T_ACI_CLIR_STAT; | |
1253 | |
1254 /*---- +CLIP ------------------------------------------------------*/ | |
1255 | |
1256 typedef enum /* +CLIP parameter <stat> */ | |
1257 { | |
1258 CLIP_STAT_NotPresent = -1, | |
1259 CLIP_STAT_NotProv, | |
1260 CLIP_STAT_Prov, | |
1261 CLIP_STAT_Unknown | |
1262 } | |
1263 T_ACI_CLIP_STAT; | |
1264 | |
1265 /*---- +CDIP ------------------------------------------------------*/ | |
1266 | |
1267 typedef enum /* +CDIP parameter <stat> */ | |
1268 { | |
1269 CDIP_STAT_NotPresent = -1, | |
1270 CDIP_STAT_NotProv, | |
1271 CDIP_STAT_Prov, | |
1272 CDIP_STAT_Unknown | |
1273 } | |
1274 T_ACI_CDIP_STAT; | |
1275 | |
1276 /*---- +COLP ------------------------------------------------------*/ | |
1277 | |
1278 typedef enum /* +COLP parameter <stat> */ | |
1279 { | |
1280 COLP_STAT_NotPresent = -1, | |
1281 COLP_STAT_NotProv, | |
1282 COLP_STAT_Prov, | |
1283 COLP_STAT_Unknown | |
1284 } | |
1285 T_ACI_COLP_STAT; | |
1286 | |
1287 /*---- %CTTY ------------------------------------------------------*/ | |
1288 | |
1289 typedef enum /* %CTTY parameter (mode) */ | |
1290 { | |
1291 CTTY_MOD_NotPresent = -1, | |
1292 CTTY_MOD_Disable, | |
1293 CTTY_MOD_Enable | |
1294 } | |
1295 T_ACI_CTTY_MOD; | |
1296 | |
1297 typedef enum /* %CTTY parameter (request) */ | |
1298 { | |
1299 CTTY_REQ_NotPresent = -1, | |
1300 CTTY_REQ_Off, | |
1301 CTTY_REQ_On, | |
1302 CTTY_REQ_HCO, | |
1303 CTTY_REQ_VCO | |
1304 } | |
1305 T_ACI_CTTY_REQ; | |
1306 | |
1307 typedef enum /* %CTTY parameter (negociation) */ | |
1308 { | |
1309 CTTY_NEG_None = 0, | |
1310 CTTY_NEG_Request, | |
1311 CTTY_NEG_Reject, | |
1312 CTTY_NEG_Grant | |
1313 } | |
1314 T_ACI_CTTY_NEG; | |
1315 | |
1316 typedef enum /* %CTTY parameter (activity) */ | |
1317 { | |
1318 CTTY_TRX_Off = 0, | |
1319 CTTY_TRX_RcvOn, | |
1320 CTTY_TRX_SendOn, | |
1321 CTTY_TRX_RcvSendOn, | |
1322 CTTY_TRX_Unknown | |
1323 } | |
1324 T_ACI_CTTY_TRX; | |
1325 | |
1326 typedef enum /* %CTTY parameter (state) */ | |
1327 { | |
1328 CTTY_STAT_Off = 0, | |
1329 CTTY_STAT_On, | |
1330 CTTY_STAT_Unknown | |
1331 } | |
1332 T_ACI_CTTY_STAT; | |
1333 | |
1334 /*---- +CSVM ------------------------------------------------------*/ | |
1335 | |
1336 typedef enum /* +CSVM parameter <mode> */ | |
1337 { | |
1338 CSVM_MOD_NotPresent = -1, | |
1339 CSVM_MOD_Disable, | |
1340 CSVM_MOD_Enable | |
1341 } | |
1342 T_ACI_CSVM_MOD; | |
1343 | |
1344 /*---- +CMOD ------------------------------------------------------*/ | |
1345 typedef enum /* +CMOD parameter <mode> */ | |
1346 { | |
1347 CMOD_MOD_NotPresent = -1, | |
1348 CMOD_MOD_Single, | |
1349 CMOD_MOD_VoiceFax, | |
1350 CMOD_MOD_VoiceDat, | |
1351 CMOD_MOD_VoiceFlwdDat | |
1352 } | |
1353 T_ACI_CMOD_MOD; | |
1354 | |
1355 /*---- +CBST ------------------------------------------------------*/ | |
1356 typedef enum /* +CBST parameter <speed> */ | |
1357 { | |
1358 BS_SPEED_NotPresent = -1, | |
1359 | |
1360 BS_SPEED_AUTO, | |
1361 BS_SPEED_300_V21, | |
1362 BS_SPEED_1200_V22, | |
1363 BS_SPEED_1200_75_V23, | |
1364 BS_SPEED_2400_V22bis, | |
1365 BS_SPEED_2400_V26ter, | |
1366 BS_SPEED_4800_V32, | |
1367 BS_SPEED_9600_V32, | |
1368 BS_SPEED_9600_V34 = 12, | |
1369 BS_SPEED_14400_V34 = 14, | |
1370 BS_SPEED_1200_V120 = 34, | |
1371 BS_SPEED_2400_V120 = 36, | |
1372 BS_SPEED_4800_V120 = 38, | |
1373 BS_SPEED_9600_V120, | |
1374 BS_SPEED_14400_V120 = 43, | |
1375 BS_SPEED_300_V110 = 65, | |
1376 BS_SPEED_1200_V110, | |
1377 BS_SPEED_2400_V110 = 68, | |
1378 BS_SPEED_4800_V110 = 70, | |
1379 BS_SPEED_9600_V110, | |
1380 BS_SPEED_14400_V110 = 75, | |
1381 BS_SPEED_19200_V110 = 79, | |
1382 BS_SPEED_28800_V110 = 80, | |
1383 BS_SPEED_38400_V110 | |
1384 } | |
1385 T_ACI_BS_SPEED; | |
1386 | |
1387 typedef enum /* +CBST parameter <name> */ | |
1388 { | |
1389 CBST_NAM_NotPresent = -1, | |
1390 CBST_NAM_Asynch, | |
1391 CBST_NAM_Synch | |
1392 } | |
1393 T_ACI_CBST_NAM; | |
1394 | |
1395 typedef enum /* +CBST parameter <ce> */ | |
1396 { | |
1397 CBST_CE_NotPresent = -1, | |
1398 CBST_CE_Transparent, | |
1399 CBST_CE_NonTransparent, | |
1400 CBST_CE_BothTransPref, | |
1401 CBST_CE_BothNonTransPref | |
1402 } | |
1403 T_ACI_CBST_CE; | |
1404 | |
1405 /*---- +CR --------------------------------------------------------*/ | |
1406 | |
1407 typedef enum /* +CR parameter <service> */ | |
1408 { | |
1409 CR_SERV_NotPresent = -1, | |
1410 CR_SERV_Async, | |
1411 CR_SERV_Sync, | |
1412 CR_SERV_RelAsync, | |
1413 CR_SERV_RelSync | |
1414 | |
1415 #ifdef GPRS | |
1416 ,CR_SERV_GPRS | |
1417 #endif /* GPRS */ | |
1418 } | |
1419 T_ACI_CR_SERV; | |
1420 | |
1421 /*---- +DS --------------------------------------------------------*/ | |
1422 typedef enum /* +DS parameter <dir> */ | |
1423 { | |
1424 DS_DIR_NotPresent = -1, | |
1425 DS_DIR_Negotiated, | |
1426 DS_DIR_TxOnly, | |
1427 DS_DIR_RxOnly, | |
1428 DS_DIR_Both | |
1429 } | |
1430 T_ACI_DS_DIR; | |
1431 | |
1432 typedef enum /* +DS parameter <comp> */ | |
1433 { | |
1434 DS_COMP_NotPresent = -1, | |
1435 DS_COMP_DoNotDisc, | |
1436 DS_COMP_Disc | |
1437 } | |
1438 T_ACI_DS_COMP; | |
1439 | |
1440 /*---- +DR --------------------------------------------------------*/ | |
1441 typedef enum /* +DR parameter <type> */ | |
1442 { | |
1443 DR_TYP_NotPresent = -1, | |
1444 DR_TYP_None, | |
1445 DR_TYP_TxOnly, | |
1446 DR_TYP_RxOnly, | |
1447 DR_TYP_Both | |
1448 } | |
1449 T_ACI_DR_TYP; | |
1450 | |
1451 /*---- +CRING -----------------------------------------------------*/ | |
1452 typedef enum /* +CRING parameter <type> */ | |
1453 { | |
1454 CRING_TYP_NotPresent = -1, | |
1455 CRING_TYP_Async, | |
1456 CRING_TYP_Sync, | |
1457 CRING_TYP_RelAsync, | |
1458 CRING_TYP_RelSync, | |
1459 CRING_TYP_Fax, | |
1460 CRING_TYP_Voice, | |
1461 CRING_TYP_AuxVoice | |
1462 | |
1463 #ifdef GPRS | |
1464 ,CRING_TYP_GPRS | |
1465 #endif /* GPRS */ | |
1466 | |
1467 } | |
1468 T_ACI_CRING_TYP; | |
1469 | |
1470 typedef enum /* +CRING parameter <mode> */ | |
1471 { | |
1472 CRING_MOD_NotPresent = -1, | |
1473 CRING_MOD_Direct, | |
1474 CRING_MOD_Alternate | |
1475 | |
1476 #ifdef GPRS | |
1477 ,CRING_MOD_Gprs | |
1478 #endif /* GPRS */ | |
1479 | |
1480 } | |
1481 T_ACI_CRING_MOD; | |
1482 | |
1483 /*---- +CCWA -----------------------------------------------------*/ | |
1484 typedef enum /* +CCWA parameter <mode> */ | |
1485 { | |
1486 CCWA_MOD_NotInterrogate = -1, | |
1487 CCWA_MOD_Disable, | |
1488 CCWA_MOD_Enable, | |
1489 CCWA_MOD_Query | |
1490 } | |
1491 T_ACI_CCWA_MOD; | |
1492 | |
1493 /*---- +CPWD -----------------------------------------------------*/ | |
1494 typedef enum /* +CPWD parameter <fac> */ | |
1495 { | |
1496 CPWD_FAC_NotPresent = -1, | |
1497 CPWD_FAC_Sc, | |
1498 CPWD_FAC_Ao, | |
1499 CPWD_FAC_Oi, | |
1500 CPWD_FAC_Ox, | |
1501 CPWD_FAC_Ai, | |
1502 CPWD_FAC_Ir, | |
1503 CPWD_FAC_Ab, | |
1504 CPWD_FAC_Ag, | |
1505 CPWD_FAC_Ac, | |
1506 CPWD_FAC_Fd, | |
1507 CPWD_FAC_Pn, /* Network personalisation */ | |
1508 CPWD_FAC_Pu, /* Network subset personalisation */ | |
1509 CPWD_FAC_Pp, /* Service provider personalisation */ | |
1510 CPWD_FAC_Pc, /* Corporate personalisation */ | |
1511 CPWD_FAC_Ps, /* SIM personalisation */ | |
1512 CPWD_FAC_Pf, /* Personalisation on first inserted SIM */ | |
1513 CPWD_FAC_Al, /* ALS settings locked by CHV2 */ | |
1514 CPWD_FAC_P2 | |
1515 #ifdef SIM_PERS | |
1516 , | |
1517 CPWD_FAC_Fc, | |
1518 CPWD_FAC_Fcm | |
1519 #endif | |
1520 } | |
1521 T_ACI_CPWD_FAC; | |
1522 | |
1523 typedef struct | |
1524 { | |
1525 T_ACI_CPWD_FAC fac; | |
1526 SHORT pwdlength; | |
1527 } | |
1528 T_ACI_CPWD_LEN; | |
1529 | |
1530 typedef T_ACI_CPWD_LEN T_ACI_CPWD_LST [MAX_FACILITY]; | |
1531 | |
1532 /*---- +CLCK -----------------------------------------------------*/ | |
1533 typedef enum /* +CLCK parameter <fac> */ | |
1534 { | |
1535 CLCK_FAC_NotPresent = -1, | |
1536 CLCK_FAC_Sc, /*SIM PIN 1*/ | |
1537 CLCK_FAC_Ao, /*Outgoing Calls*/ | |
1538 CLCK_FAC_Oi, /*Out int Calls*/ | |
1539 CLCK_FAC_Ox, /*Out int ex home*/ | |
1540 CLCK_FAC_Ai, /*In*/ | |
1541 CLCK_FAC_Ir, /*In when roam*/ | |
1542 CLCK_FAC_Ab, /*All*/ | |
1543 CLCK_FAC_Ag, /*All out*/ | |
1544 CLCK_FAC_Ac, /*All in*/ | |
1545 CLCK_FAC_Fd, /*Sim fixed dialing feature*/ | |
1546 CLCK_FAC_Pn, /* Network personalisation */ | |
1547 CLCK_FAC_Pu, /* Network subset personalisation */ | |
1548 CLCK_FAC_Pp, /* Service provider personalisation */ | |
1549 CLCK_FAC_Pc, /* Corporate personalisation */ | |
1550 CLCK_FAC_Ps, /* SIM personalisation */ | |
1551 CLCK_FAC_Pf, /* Personalisation on first inserted SIM */ | |
1552 CLCK_FAC_Al /* ALS settings locked by CHV2 */ | |
1553 #ifdef SIM_PERS | |
1554 , | |
1555 CLCK_FAC_Fc, /*For Failure Counter Reset for SIMLOCK added on 11/03/2005 */ | |
1556 CLCK_FAC_Fcm /*For Failure Counter Reset for SIMLOCK added on 11/03/2005 */ | |
1557 #endif | |
1558 } | |
1559 T_ACI_CLCK_FAC; | |
1560 | |
1561 typedef enum /* +CLCK parameter <mode> */ | |
1562 { | |
1563 CLCK_MOD_NotPresent = -1, | |
1564 CLCK_MOD_Unlock, | |
1565 CLCK_MOD_Lock, | |
1566 CLCK_MODE_QUERY | |
1567 } | |
1568 T_ACI_CLCK_MOD; | |
1569 | |
1570 #ifdef SIM_PERS | |
1571 | |
1572 /*Would be used by %MEPD AT Command | |
1573 to store supplementary info type | |
1574 Added on 11/03/2005*/ | |
1575 typedef enum | |
1576 { | |
1577 CMEPD_SUP_INFO_NotPresent = -1, | |
1578 FCMAX, /*CFG field== Failure Counter Max Value */ | |
1579 FCATTEMPTSLEFT, /* CFG field== Failure Counter Current Value */ | |
1580 FCRESETFAILMAX, | |
1581 FCRESETFAILATTEMPTSLEFT, | |
1582 FCRESETSUCCESSMAX, | |
1583 FCRESETSUCCESSATTEMPTSLEFT, | |
1584 TIMERFLAG, | |
1585 ETSIFLAG, | |
1586 AIRTELINDFLAG | |
1587 } T_SUP_INFO_TYPE; | |
1588 | |
1589 /*Would be used by %MEPD AT Command | |
1590 to display supplementary data value | |
1591 Added on 11/03/2005*/ | |
1592 typedef struct | |
1593 { | |
1594 T_SUP_INFO_TYPE infoType; | |
1595 UBYTE datavalue; /*Value of CFG Data */ | |
1596 } T_SUP_INFO; | |
1597 | |
1598 #endif | |
1599 | |
1600 typedef enum | |
1601 { | |
1602 STATUS_NotPresent = -1, | |
1603 STATUS_NotActive, | |
1604 STATUS_Active | |
1605 }T_ACI_STATUS; | |
1606 | |
1607 typedef enum /* %CCBS parameter <mode> */ | |
1608 { | |
1609 CCBS_MOD_NotPresent = -1, | |
1610 CCBS_MOD_Disable, | |
1611 CCBS_MOD_Enable, | |
1612 CCBS_MOD_Query, | |
1613 CCBS_MOD_Register = 3, | |
1614 CCBS_MOD_Erasure | |
1615 } T_ACI_CCBS_MOD; | |
1616 | |
1617 | |
1618 /*---- +CCFC -----------------------------------------------------*/ | |
1619 typedef enum /* +CCFC parameter <mode> */ | |
1620 { | |
1621 CCFC_MOD_NotPresent = -1, | |
1622 CCFC_MOD_Disable, | |
1623 CCFC_MOD_Enable, | |
1624 CCFC_MOD_Query, | |
1625 CCFC_MOD_Register = 3, | |
1626 CCFC_MOD_Erasure | |
1627 } T_ACI_CCFC_MOD; | |
1628 | |
1629 typedef enum /* +CCFC parameter <reason> */ | |
1630 { | |
1631 CCFC_RSN_NotPresent = -1, | |
1632 CCFC_RSN_Uncond, | |
1633 CCFC_RSN_Busy, | |
1634 CCFC_RSN_NoReply, | |
1635 CCFC_RSN_NotReach, | |
1636 CCFC_RSN_Forward, | |
1637 CCFC_RSN_CondForward | |
1638 } T_ACI_CCFC_RSN; | |
1639 | |
1640 typedef struct | |
1641 { | |
1642 T_ACI_STATUS status; | |
1643 T_ACI_CLASS class_type; | |
1644 } | |
1645 T_ACI_CLSSTAT; | |
1646 | |
1647 typedef struct | |
1648 { | |
1649 T_ACI_CLSSTAT clsstat; | |
1650 CHAR number[MAX_B_SUBSCR_NUM_LEN]; | |
1651 T_ACI_TOA type; | |
1652 CHAR subaddr[MAX_SUBADDR_LEN]; | |
1653 T_ACI_TOS satype; | |
1654 SHORT time; | |
1655 } | |
1656 T_ACI_CCFC_SET; | |
1657 | |
1658 /*--- +CCUG -------------------------------------------------------*/ | |
1659 typedef enum | |
1660 { | |
1661 CCUG_IDX_NotPresent = -1, | |
1662 CCUG_IDX_0, | |
1663 CCUG_IDX_1, | |
1664 CCUG_IDX_2, | |
1665 CCUG_IDX_3, | |
1666 CCUG_IDX_4, | |
1667 CCUG_IDX_5, | |
1668 CCUG_IDX_6, | |
1669 CCUG_IDX_7, | |
1670 CCUG_IDX_8, | |
1671 CCUG_IDX_9, | |
1672 CCUG_IDX_No | |
1673 } | |
1674 T_ACI_CCUG_IDX; | |
1675 | |
1676 typedef enum | |
1677 { | |
1678 CCUG_INFO_NotPresent = -1, | |
1679 CCUG_INFO_No, | |
1680 CCUG_INFO_SuppOa, | |
1681 CCUG_INFO_SuppPrefCug, | |
1682 CCUG_INFO_SuppBoth | |
1683 } | |
1684 T_ACI_CCUG_INFO; | |
1685 | |
1686 typedef enum | |
1687 { | |
1688 CCUG_MOD_NotPresent = -1, | |
1689 CCUG_MOD_DisableTmp, | |
1690 CCUG_MOD_EnableTmp | |
1691 } | |
1692 T_ACI_CCUG_MOD; | |
1693 | |
1694 /*--- +CMGF--------------------------------------------------------*/ | |
1695 | |
1696 typedef enum | |
1697 { | |
1698 CMGF_MOD_NotPresent = -1, | |
1699 CMGF_MOD_Pdu, | |
1700 CMGF_MOD_Txt | |
1701 } | |
1702 T_ACI_CMGF_MOD; | |
1703 | |
1704 /*--- %SMBS--------------------------------------------------------*/ | |
1705 | |
1706 typedef enum | |
1707 { | |
1708 PERC_SMBS_MOD_NotPresent = -1, | |
1709 PERC_SMBS_MOD_DISABLE = 0, | |
1710 PERC_SMBS_MOD_ENABLE = 1 | |
1711 } | |
1712 T_ACI_PERC_SMBS_MOD; | |
1713 | |
1714 /*--- CMS Err------------------------------------------------------*/ | |
1715 | |
1716 typedef enum | |
1717 { | |
1718 CMS_ERR_NotPresent = -1,/*---From GSM 0411 E2---*/ | |
1719 CMS_ERR_UnAllocNum = 1, | |
1720 CMS_ERR_OpDetermBarr = 8, | |
1721 CMS_ERR_CallBarr = 10, | |
1722 CMS_ERR_TransReject = 21, | |
1723 CMS_ERR_DestOutOfServ = 27, | |
1724 CMS_ERR_UnidentSubsc, | |
1725 CMS_ERR_FacReject, | |
1726 CMS_ERR_UnKnownSubsc, | |
1727 CMS_ERR_NetOutOfOrder = 38, | |
1728 CMS_ERR_TempFail = 41, | |
1729 CMS_ERR_Congestion, | |
1730 CMS_ERR_ResUnAvail = 47, | |
1731 CMS_ERR_FacNotSubscr = 50, | |
1732 CMS_ERR_FacNotImpl = 69, | |
1733 CMS_ERR_TransRefInval = 81, | |
1734 CMS_ERR_InValSM = 95, | |
1735 CMS_ERR_InValManInfo, | |
1736 CMS_ERR_MsgTypNotExist, | |
1737 CMS_ERR_MsgNotCompatible, | |
1738 CMS_ERR_InfoElemNotImpl, | |
1739 CMS_ERR_ProtErr = 111, | |
1740 CMS_ERR_InterWrkUnSpec = 127, | |
1741 CMS_ERR_TlmtkNotSup, /*---From GSM 0340 9.2.3.22---*/ | |
1742 CMS_ERR_SM0NotSup, | |
1743 CMS_ERR_CantReplceSM, | |
1744 CMS_ERR_UnSpecPIDErr = 143, | |
1745 CMS_ERR_DcsNotSup, | |
1746 CMS_ERR_MsgClassNotSup, | |
1747 CMS_ERR_UnSpecTpDcs = 159, | |
1748 CMS_ERR_CmdNotAct, | |
1749 CMS_ERR_CmdUnSup, | |
1750 CMS_ERR_UnSpecTpCmd = 175, | |
1751 CMS_ERR_TpduUnSup, | |
1752 CMS_ERR_ScBsy = 192, | |
1753 CMS_ERR_NoScSubsc, | |
1754 CMS_ERR_ScSysFail, | |
1755 CMS_ERR_InValSme, | |
1756 CMS_ERR_DestSmeBarr, | |
1757 CMS_ERR_SmRejctDuplSm, | |
1758 CMS_ERR_SmTPVPFNotSup, | |
1759 CMS_ERR_SmTPVPNotSup, | |
1760 CMS_ERR_SimSmsStorFull = 208, | |
1761 CMS_ERR_NoStorInSim, | |
1762 CMS_ERR_ErrInMs, | |
1763 CMS_ERR_MemCabExcee, | |
1764 CMS_ERR_UnSpecErr = 255, | |
1765 CMS_ERR_MeFail = 300, /*---From GSM 0705 3.2.5---*/ | |
1766 CMS_ERR_ServRes, | |
1767 CMS_ERR_OpNotAllowed, | |
1768 CMS_ERR_OpNotSup, | |
1769 CMS_ERR_InValPduMod, | |
1770 CMS_ERR_InValTxtMod, | |
1771 CMS_ERR_SimNotIns = 310, | |
1772 CMS_ERR_SimPinReq, | |
1773 CMS_ERR_PhSimPinReq, | |
1774 CMS_ERR_SimFail, | |
1775 CMS_ERR_SimBsy, | |
1776 CMS_ERR_SimWrong, | |
1777 CMS_ERR_SimPukReq, | |
1778 CMS_ERR_SimPin2Req, | |
1779 CMS_ERR_SimPuk2Req, | |
1780 CMS_ERR_MemFail = 320, | |
1781 CMS_ERR_InValMemIdx, | |
1782 CMS_ERR_MemFull, | |
1783 CMS_ERR_SmscAdrUnKnown = 330, | |
1784 CMS_ERR_NoNetServ, | |
1785 CMS_ERR_NetTimeOut, | |
1786 CMS_ERR_NoCnmaAckExpect = 340, | |
1787 CMS_ERR_UnknownErr = 500, | |
1788 CMS_ERR_FailedToAbort = 512, | |
1789 CMS_ERR_AcmResetNeeded = 513 | |
1790 } | |
1791 T_ACI_CMS_ERR; | |
1792 | |
1793 /*--- +CNMI ------------------------------------------------------*/ | |
1794 | |
1795 typedef enum | |
1796 { | |
1797 CNMI_MT_NotPresent = -1, | |
1798 CNMI_MT_NoSmsDeliverInd, | |
1799 CNMI_MT_SmsDeliverInd, | |
1800 CNMI_MT_SmsDeliver, | |
1801 CNMI_MT_SmsDeliverCls3 | |
1802 } | |
1803 T_ACI_CNMI_MT; | |
1804 | |
1805 typedef enum | |
1806 { | |
1807 CNMI_BM_NotPresent = -1, | |
1808 CNMI_BM_NoCbmInd, | |
1809 CNMI_BM_CbmInd, | |
1810 CNMI_BM_Cbm, | |
1811 CNMI_BM_CbmCls3 | |
1812 } | |
1813 T_ACI_CNMI_BM; | |
1814 | |
1815 typedef enum | |
1816 { | |
1817 CNMI_DS_NotPresent = -1, | |
1818 CNMI_DS_NoSmsStatRpt, | |
1819 CNMI_DS_SmsStatRpt | |
1820 } | |
1821 T_ACI_CNMI_DS; | |
1822 | |
1823 /*--- +CNUM -------------------------------------------------------*/ | |
1824 | |
1825 typedef enum | |
1826 { | |
1827 CNUM_ITC_NotPresent = -1, | |
1828 CNUM_ITC_3_1_kHz, | |
1829 CNUM_ITC_Udi | |
1830 } | |
1831 T_ACI_CNUM_ITC; | |
1832 | |
1833 typedef enum | |
1834 { | |
1835 CNUM_SERV_NotPresent = -1, | |
1836 CNUM_SERV_Asynch, | |
1837 CNUM_SERV_Synch, | |
1838 CNUM_SERV_PadAsynch, | |
1839 CNUM_SERV_PacketSynch, | |
1840 CNUM_SERV_Voice, | |
1841 CNUM_SERV_Fax | |
1842 } | |
1843 T_ACI_CNUM_SERV; | |
1844 | |
1845 typedef enum | |
1846 { | |
1847 CNUM_MOD_NewRead = 0, | |
1848 CNUM_MOD_NextRead | |
1849 } | |
1850 T_ACI_CNUM_MOD; | |
1851 | |
1852 typedef struct | |
1853 { | |
1854 BOOL vldFlag; | |
1855 CHAR alpha[MAX_ALPHA_LEN]; | |
1856 CHAR number[MAX_PHB_NUM_LEN]; | |
1857 T_ACI_TOA type; | |
1858 T_ACI_BS_SPEED speed; | |
1859 T_ACI_CNUM_SERV service; | |
1860 T_ACI_CNUM_ITC itc; | |
1861 } | |
1862 T_ACI_CNUM_MSISDN; | |
1863 | |
1864 typedef T_ACI_CNUM_MSISDN T_ACI_CNUM_LST [MAX_MSISDN]; | |
1865 | |
1866 /*--- +CPAS -------------------------------------------------------*/ | |
1867 | |
1868 typedef enum | |
1869 { | |
1870 CPAS_PAS_NotPresent = -1, | |
1871 CPAS_PAS_Ready, | |
1872 CPAS_PAS_Unavailable, | |
1873 CPAS_PAS_Unknown, | |
1874 CPAS_PAS_Ring, | |
1875 CPAS_PAS_CallProg, | |
1876 CPAS_PAS_Asleep | |
1877 } | |
1878 T_ACI_CPAS_PAS; | |
1879 | |
1880 /*--- +CLAE -------------------------------------------------------*/ | |
1881 typedef enum | |
1882 { | |
1883 CLAE_MOD_NotPresent = -1, | |
1884 CLAE_MOD_Disable, | |
1885 CLAE_MOD_Enable | |
1886 } | |
1887 T_ACI_CLAE_MOD; | |
1888 | |
1889 /*--- +CSCB -------------------------------------------------------*/ | |
1890 | |
1891 typedef enum | |
1892 { | |
1893 CSCB_MOD_NotPresent = -1, | |
1894 CSCB_MOD_Accept, | |
1895 CSCB_MOD_NotAccept | |
1896 } | |
1897 T_ACI_CSCB_MOD; | |
1898 | |
1899 /*--- +CBHZ -------------------------------------------------------*/ | |
1900 #ifdef FF_HOMEZONE | |
1901 typedef enum | |
1902 { | |
1903 CBHZ_MOD_NotPresent = -1, | |
1904 CBHZ_MOD_NotActive, | |
1905 CBHZ_MOD_Active | |
1906 } | |
1907 T_ACI_CBHZ_MOD; | |
1908 #endif /* FF_HOMEZONE */ | |
1909 | |
1910 /*--- +CSDH -------------------------------------------------------*/ | |
1911 | |
1912 typedef enum | |
1913 { | |
1914 CSDH_SHOW_NotPresent = -1, | |
1915 CSDH_SHOW_Disable, | |
1916 CSDH_SHOW_Enable | |
1917 } | |
1918 T_ACI_CSDH_SHOW; | |
1919 | |
1920 /*--- +CSMS -------------------------------------------------------*/ | |
1921 | |
1922 typedef enum | |
1923 { | |
1924 CSMS_SERV_NotPresent = -1, | |
1925 CSMS_SERV_GsmPh2, | |
1926 CSMS_SERV_GsmPh2Plus | |
1927 } | |
1928 T_ACI_CSMS_SERV; | |
1929 | |
1930 typedef enum | |
1931 { | |
1932 CSMS_SUPP_NotPresent = -1, | |
1933 CSMS_SUPP_Disable, | |
1934 CSMS_SUPP_Enable | |
1935 } | |
1936 T_ACI_CSMS_SUPP; | |
1937 | |
1938 /*--- +CUSD command -----------------------------------------------*/ | |
1939 | |
1940 typedef enum | |
1941 { | |
1942 CUSD_MOD_NotPresent = -1, | |
1943 CUSD_MOD_NoActReq, | |
1944 CUSD_MOD_YesActReq, | |
1945 CUSD_MOD_TerminatedByNetwork, | |
1946 CUSD_MOD_OtherLocalClientResp, | |
1947 CUSD_MOD_OperationNotSupported, | |
1948 CUSD_MOD_NetworkTimeout | |
1949 } | |
1950 T_ACI_CUSD_MOD; | |
1951 | |
1952 /*--- +CSSN command -----------------------------------------------*/ | |
1953 | |
1954 typedef enum | |
1955 { | |
1956 CSSI_CODE_NotPresent = -1, | |
1957 CSSI_CODE_CFUActive, | |
1958 CSSI_CODE_SomeCCFActive, | |
1959 CSSI_CODE_ForwardedCall, | |
1960 CSSI_CODE_CallWaiting, | |
1961 CSSI_CODE_CUGCall, | |
1962 CSSI_CODE_OutCallsBarred, | |
1963 CSSI_CODE_IncCallsBarred, | |
1964 CSSI_CODE_CLIRSupRej, | |
1965 CSSI_CODE_DeflectedCall | |
1966 } | |
1967 T_ACI_CSSI_CODE; | |
1968 | |
1969 typedef enum | |
1970 { | |
1971 CSSU_CODE_NotPresent = -1, | |
1972 CSSU_CODE_ForwardedCall, | |
1973 CSSU_CODE_CUGCall, | |
1974 CSSU_CODE_OnHold, | |
1975 CSSU_CODE_Retrieved, | |
1976 CSSU_CODE_Multiparty, | |
1977 CSSU_CODE_HeldCallRel, | |
1978 CSSU_CODE_FwrdCheckSS, | |
1979 CSSU_CODE_ECTAlert, | |
1980 CSSU_CODE_ECTConnect, | |
1981 CSSU_CODE_DeflectedCall | |
1982 } | |
1983 T_ACI_CSSU_CODE; | |
1984 | |
1985 | |
1986 typedef enum | |
1987 { | |
1988 CSSX_CODE_NotPresent = -1, | |
1989 CSSX_CODE_ForwardedCall, | |
1990 CSSX_CODE_CUGCall, | |
1991 CSSX_CODE_OnHold, | |
1992 CSSX_CODE_Retrieved, | |
1993 CSSX_CODE_Multiparty, | |
1994 CSSX_CODE_HeldCallRel, | |
1995 CSSX_CODE_FwrdCheckSS, | |
1996 CSSX_CODE_ECTAlert, | |
1997 CSSX_CODE_ECTConnect, | |
1998 CSSX_CODE_CFUActive, | |
1999 CSSX_CODE_SomeCCFActive, | |
2000 CSSX_CODE_CallWaiting, | |
2001 CSSX_CODE_OutCallsBarred, | |
2002 CSSX_CODE_IncCallsBarred, | |
2003 CSSX_CODE_CLIRSupRej, | |
2004 CSSX_CODE_DeflectedCall | |
2005 | |
2006 } | |
2007 T_ACI_CSSX_CODE; | |
2008 | |
2009 | |
2010 /*--- %CLCC command -----------------------------------------------*/ | |
2011 | |
2012 typedef enum | |
2013 { | |
2014 P_CLCC_DIR_NotPresent = -1, | |
2015 P_CLCC_DIR_MOC, | |
2016 P_CLCC_DIR_MTC, | |
2017 P_CLCC_DIR_MOC_NI, | |
2018 P_CLCC_DIR_MOC_RDL | |
2019 } | |
2020 T_ACI_P_CLCC_DIR; | |
2021 | |
2022 /*--- %DBGINFO command --------------------------------------------*/ | |
2023 | |
2024 typedef enum | |
2025 { | |
2026 P_DBGINFO_NotPresent = -1, | |
2027 P_DBGINFO_PrimPoolPartition = 1, | |
2028 P_DBGINFO_DmemPoolPartition, | |
2029 P_DBGINFO_DataPoolPartition | |
2030 } | |
2031 T_ACI_DBG_INFO; | |
2032 | |
2033 /*--- +CLCC command -----------------------------------------------*/ | |
2034 | |
2035 typedef enum | |
2036 { | |
2037 CLCC_DIR_NotPresent = -1, | |
2038 CLCC_DIR_MOC, | |
2039 CLCC_DIR_MTC, | |
2040 CLCC_DIR_MOC_NI, | |
2041 CLCC_DIR_MOC_RDL | |
2042 } | |
2043 T_ACI_CLCC_DIR; | |
2044 | |
2045 typedef enum | |
2046 { | |
2047 CLCC_STAT_NotPresent = -1, | |
2048 CLCC_STAT_Active, | |
2049 CLCC_STAT_Held, | |
2050 CLCC_STAT_Dialing, | |
2051 CLCC_STAT_Alerting, | |
2052 CLCC_STAT_Incoming, | |
2053 CLCC_STAT_Waiting | |
2054 } | |
2055 T_ACI_CLCC_STAT; | |
2056 | |
2057 typedef enum | |
2058 { | |
2059 CLCC_MODE_NotPresent = -1, | |
2060 CLCC_MODE_Voice, | |
2061 CLCC_MODE_Data, | |
2062 CLCC_MODE_Fax, | |
2063 CLCC_MODE_VFDVoice, | |
2064 CLCC_MODE_VADVoice, | |
2065 CLCC_MODE_VAFVoice, | |
2066 CLCC_MODE_VFDData, | |
2067 CLCC_MODE_VADData, | |
2068 CLCC_MODE_VAFFax, | |
2069 CLCC_MODE_Unknown | |
2070 } | |
2071 T_ACI_CLCC_MODE; | |
2072 | |
2073 typedef enum | |
2074 { | |
2075 CLCC_MPTY_NotPresent = -1, | |
2076 CLCC_MPTY_NoMember, | |
2077 CLCC_MPTY_IsMember | |
2078 } | |
2079 T_ACI_CLCC_MPTY; | |
2080 | |
2081 typedef enum | |
2082 { | |
2083 CLCC_CLASS_NotPresent = -1, | |
2084 CLCC_CLASS_Line1, | |
2085 CLCC_CLASS_Line2 | |
2086 } | |
2087 T_ACI_CLCC_CLASS; | |
2088 | |
2089 typedef struct /* +CLCC current call list element*/ | |
2090 { | |
2091 SHORT idx; | |
2092 T_ACI_CLCC_DIR dir; | |
2093 T_ACI_CLCC_STAT stat; | |
2094 T_ACI_CLCC_MODE mode; | |
2095 T_ACI_CLCC_MPTY mpty; | |
2096 T_ACI_CLCC_CLASS class_type; | |
2097 CHAR number[MAX_CC_ORIG_NUM_LEN]; | |
2098 T_ACI_TOA type; | |
2099 #ifdef FF_BAT | |
2100 UBYTE prog_desc; | |
2101 #endif | |
2102 #ifdef NO_ASCIIZ | |
2103 T_ACI_PB_TEXT alpha; | |
2104 #else | |
2105 CHAR alpha[MAX_ALPHA_LEN]; | |
2106 #endif /* else, #ifdef NO_ASCIIZ */ | |
2107 } | |
2108 T_ACI_CLCC_CALDESC; | |
2109 | |
2110 typedef T_ACI_CLCC_CALDESC T_ACI_CLCC_LST [MAX_CALL_NR]; | |
2111 | |
2112 /*---- +COPN ------------------------------------------------------*/ | |
2113 typedef enum /* +COPN parameter list identifier */ | |
2114 { | |
2115 COPN_LID_NotPresent = -1, | |
2116 COPN_LID_Pcm, /* list in permanent configuration memory */ | |
2117 COPN_LID_Cnst /* list in constant memory */ | |
2118 } | |
2119 T_ACI_COPN_LID; | |
2120 | |
2121 typedef struct /* +COPN operator list element*/ | |
2122 { | |
2123 CHAR alphaOper[MAX_ALPHA_OPER_LEN]; | |
2124 CHAR numOper[MAX_NUM_OPER_LEN]; | |
2125 } | |
2126 T_ACI_COPN_OPDESC; | |
2127 | |
2128 typedef T_ACI_COPN_OPDESC T_ACI_COPN_LST [MAX_OPER]; | |
2129 | |
2130 /*---- +CSNS ------------------------------------------------------*/ | |
2131 typedef enum /* +CSNS parameter <mode> */ | |
2132 { | |
2133 CSNS_MOD_NotPresent = -1, | |
2134 CSNS_MOD_Voice, | |
2135 CSNS_MOD_VAFVoice, | |
2136 CSNS_MOD_Fax, | |
2137 CSNS_MOD_VADVoice, | |
2138 CSNS_MOD_Data, | |
2139 CSNS_MOD_VAFFax, | |
2140 CSNS_MOD_VADData, | |
2141 CSNS_MOD_VFD | |
2142 } | |
2143 T_ACI_CSNS_MOD; | |
2144 | |
2145 /*---- +VTS ------------------------------------------------------*/ | |
2146 typedef enum /* +VTS parameter <mode> */ | |
2147 { | |
2148 VTS_MOD_NotPresent = -1, | |
2149 VTS_MOD_ManStop, | |
2150 VTS_MOD_ManStart, | |
2151 VTS_MOD_Auto | |
2152 } | |
2153 T_ACI_VTS_MOD; | |
2154 | |
2155 /*---- %SIMREM---------------------------------------------------*/ | |
2156 typedef enum /* Type of SIM remove */ | |
2157 { | |
2158 SIMREM_NotPresent = -1, | |
2159 SIMREM_RESET, | |
2160 SIMREM_FAILURE, | |
2161 SIMREM_RETRY | |
2162 } | |
2163 T_ACI_SIMREM_TYPE; | |
2164 | |
2165 /*--- SMS ---------------------------------------------------------*/ | |
2166 | |
2167 typedef enum | |
2168 { | |
2169 SMS_STAT_Invalid = -2, | |
2170 SMS_STAT_NotPresent = -1, | |
2171 SMS_STAT_RecUnread, | |
2172 SMS_STAT_RecRead, | |
2173 SMS_STAT_StoUnsent, | |
2174 SMS_STAT_StoSent, | |
2175 SMS_STAT_All | |
2176 } | |
2177 T_ACI_SMS_STAT; | |
2178 | |
2179 typedef enum | |
2180 { | |
2181 SMS_READ_NotPresent = -1, | |
2182 SMS_READ_Normal, | |
2183 SMS_READ_Preview, | |
2184 SMS_READ_StatusChange | |
2185 } | |
2186 T_ACI_SMS_READ; | |
2187 | |
2188 typedef enum | |
2189 { | |
2190 SMS_STOR_NotPresent = -1, | |
2191 SMS_STOR_Me, | |
2192 SMS_STOR_Sm | |
2193 } | |
2194 T_ACI_SMS_STOR; | |
2195 | |
2196 typedef struct | |
2197 { | |
2198 UBYTE year [MAX_VP_ABS_DIGITS]; | |
2199 UBYTE month [MAX_VP_ABS_DIGITS]; | |
2200 UBYTE day [MAX_VP_ABS_DIGITS]; | |
2201 UBYTE hour [MAX_VP_ABS_DIGITS]; | |
2202 UBYTE minute [MAX_VP_ABS_DIGITS]; | |
2203 UBYTE second [MAX_VP_ABS_DIGITS]; | |
2204 SHORT timezone; | |
2205 } | |
2206 T_ACI_VP_ABS; | |
2207 | |
2208 typedef struct | |
2209 { | |
2210 UBYTE func_ind; | |
2211 UBYTE ext_oct; | |
2212 union | |
2213 { | |
2214 UBYTE vpenh_relative; | |
2215 UBYTE vpenh_seconds; | |
2216 struct | |
2217 { | |
2218 UBYTE hour [MAX_VP_ABS_DIGITS]; | |
2219 UBYTE minute [MAX_VP_ABS_DIGITS]; | |
2220 UBYTE second [MAX_VP_ABS_DIGITS]; | |
2221 } vpenh_hours; | |
2222 } val; | |
2223 } | |
2224 T_ACI_VP_ENH; | |
2225 | |
2226 typedef struct | |
2227 { | |
2228 SHORT index; | |
2229 T_ACI_SMS_STAT stat; | |
2230 USHORT sn; | |
2231 USHORT mid; | |
2232 UBYTE page; | |
2233 UBYTE pages; | |
2234 T_ACI_CBM_DATA data; | |
2235 } | |
2236 T_ACI_CMGL_CBM; | |
2237 | |
2238 typedef T_ACI_CMGL_CBM T_ACI_CMGL_CBM_LST [MAX_CBM_ENTR]; | |
2239 | |
2240 typedef struct | |
2241 { | |
2242 SHORT index; | |
2243 T_ACI_SMS_STAT stat; | |
2244 CHAR adress[MAX_SMS_ADDR_DIG]; | |
2245 T_ACI_TOA toa; | |
2246 T_ACI_PB_TEXT alpha; | |
2247 UBYTE vp_rel; | |
2248 T_ACI_VP_ABS scts; | |
2249 T_ACI_VP_ENH vp_enh; | |
2250 UBYTE fo; | |
2251 UBYTE msg_ref; | |
2252 UBYTE pid; | |
2253 UBYTE dcs; | |
2254 T_ACI_SM_DATA data; | |
2255 T_ACI_UDH_DATA udh; | |
2256 CHAR sca[MAX_SMS_ADDR_DIG]; | |
2257 T_ACI_TOA tosca; | |
2258 UBYTE tp_status; | |
2259 } | |
2260 T_ACI_CMGL_SM; | |
2261 | |
2262 typedef T_ACI_CMGL_SM T_ACI_CMGL_SM_LST [MAX_SM_ENTR]; | |
2263 | |
2264 typedef struct | |
2265 { | |
2266 T_ACI_SMS_STAT stat; | |
2267 USHORT sn; | |
2268 USHORT mid; | |
2269 UBYTE dcs; | |
2270 UBYTE page; | |
2271 UBYTE pages; | |
2272 T_ACI_CBM_DATA data; | |
2273 } | |
2274 T_ACI_CMGR_CBM; | |
2275 | |
2276 typedef struct | |
2277 { | |
2278 T_ACI_SMS_STAT stat; | |
2279 CHAR addr[MAX_SMS_ADDR_DIG]; | |
2280 T_ACI_TOA toa; | |
2281 CHAR sca[MAX_SMS_ADDR_DIG]; | |
2282 T_ACI_TOA tosca; | |
2283 T_ACI_PB_TEXT alpha; | |
2284 UBYTE vprel; | |
2285 T_ACI_VP_ABS vpabs_scts; | |
2286 UBYTE fo; | |
2287 UBYTE msg_ref; | |
2288 UBYTE pid; | |
2289 UBYTE dcs; | |
2290 T_ACI_SM_DATA data; | |
2291 T_ACI_UDH_DATA udh; | |
2292 } | |
2293 T_ACI_CMGR_SM; | |
2294 | |
2295 typedef struct | |
2296 { | |
2297 UBYTE fo; | |
2298 UBYTE msg_ref; | |
2299 CHAR addr[MAX_SMS_ADDR_DIG]; | |
2300 T_ACI_TOA toa; | |
2301 T_ACI_VP_ABS vpabs_scts; | |
2302 T_ACI_VP_ABS vpabs_dt; | |
2303 UBYTE tp_status; | |
2304 } | |
2305 T_ACI_CDS_SM; | |
2306 | |
2307 typedef struct | |
2308 { | |
2309 T_ACI_SMS_STOR mem; | |
2310 SHORT used; | |
2311 SHORT total; | |
2312 } | |
2313 T_ACI_SMS_STOR_OCC; | |
2314 | |
2315 | |
2316 /*--------------- new function types for concat. SMS ---------*/ | |
2317 | |
2318 typedef void T_CMSS_FCT ( UBYTE mr, | |
2319 UBYTE numSeg ); | |
2320 | |
2321 typedef void T_CMGS_FCT ( UBYTE mr, | |
2322 UBYTE numSeg ); | |
2323 | |
2324 typedef void T_CMGC_FCT ( UBYTE mr ); | |
2325 | |
2326 typedef void T_CMGR_FCT ( T_ACI_CMGL_SM* sm, | |
2327 T_ACI_CMGR_CBM* cbm ); | |
2328 | |
2329 typedef void T_CMGW_FCT ( UBYTE index, | |
2330 UBYTE numSeg ); | |
2331 | |
2332 typedef void T_CMGD_FCT ( ); | |
2333 | |
2334 typedef void T_CMGMDU_FCT (void); | |
2335 | |
2336 typedef void T_ERROR_FCT (T_ACI_AT_CMD cmdId, | |
2337 T_ACI_CMS_ERR err, | |
2338 T_EXT_CMS_ERROR *conc_error ); | |
2339 | |
2340 | |
2341 /*--- WS46 --------------------------------------------------------*/ | |
2342 | |
2343 typedef enum | |
2344 { | |
2345 WS46_MOD_NotPresent = -1, | |
2346 WS46_MOD_Gsm = 12 | |
2347 } | |
2348 T_ACI_WS46_MOD; | |
2349 | |
2350 /*--- +/%CHLD command -----------------------------------------------*/ | |
2351 | |
2352 typedef enum | |
2353 { | |
2354 CHLD_MOD_NotPresent = -1, | |
2355 CHLD_MOD_RelHldOrUdub, /* Entering 0 followed by SEND */ | |
2356 CHLD_MOD_RelActAndAcpt, /* Entering 1 followed by SEND */ | |
2357 CHLD_MOD_RelActSpec, /* Entering 1X followed by SEND */ | |
2358 CHLD_MOD_HldActAndAcpt, /* Entering 2 followed by SEND */ | |
2359 CHLD_MOD_HldActExc, /* Entering 2X followed by SEND */ | |
2360 CHLD_MOD_AddHld, /* Entering 3 followed by SEND */ | |
2361 CHLD_MOD_Ect, /* Entering 4 followed by SEND */ | |
2362 CHLD_MOD_Ccbs, /* Entering 5 followed by SEND */ | |
2363 CHLD_MOD_HldActDial, /* Entering "Directory number" */ | |
2364 CHLD_MOD_OnlyHold = 99, /* special for FTA: AT+CHLD=H */ | |
2365 CHLD_MOD_RelDialCall, /* special AT+CHLD=I */ | |
2366 CHLD_MOD_RetrieveHoldCall, /* special for %CHLD=6 (Symbian/S60) */ | |
2367 CHLD_MOD_RetrieveHoldCallSpec, /* special for %CHLD=6x (Symbian/S60) */ | |
2368 CHLD_MOD_RelAnySpec /* special for %CHLD=7x */ | |
2369 } | |
2370 T_ACI_CHLD_MOD; | |
2371 | |
2372 typedef enum | |
2373 { | |
2374 CHLD_PercentCmd = 0, | |
2375 CHLD_PlusCmd | |
2376 } | |
2377 T_ACI_CHLD_CMD; | |
2378 | |
2379 typedef enum | |
2380 { | |
2381 CHLD_ACT_NotPresent = -1, | |
2382 CHLD_ACT_Accept, | |
2383 CHLD_ACT_Release, | |
2384 CHLD_ACT_Hold, | |
2385 CHLD_ACT_Retrieve, | |
2386 CHLD_ACT_Swap, | |
2387 CHLD_ACT_ReleaseMpty, | |
2388 CHLD_ACT_HoldMpty, | |
2389 CHLD_ACT_RetrieveMpty, | |
2390 CHLD_ACT_SwapMpty, | |
2391 CHLD_ACT_BuildMpty, | |
2392 CHLD_ACT_SplitMpty, | |
2393 CHLD_ACT_ECT, | |
2394 CHLD_ACT_CCBS | |
2395 } | |
2396 T_ACI_CHLD_ACT; | |
2397 | |
2398 /*---- +IPR ------------------------------------------------------*/ | |
2399 typedef enum /* +IPR parameter <rate> */ | |
2400 { | |
2401 BD_RATE_NotPresent = -1, | |
2402 BD_RATE_AUTO = 0, | |
2403 BD_RATE_75 = 1, | |
2404 BD_RATE_150, | |
2405 BD_RATE_300, | |
2406 BD_RATE_600, | |
2407 BD_RATE_1200, | |
2408 BD_RATE_2400, | |
2409 BD_RATE_4800, | |
2410 BD_RATE_7200, | |
2411 BD_RATE_9600, | |
2412 BD_RATE_14400, | |
2413 BD_RATE_19200, | |
2414 BD_RATE_28800, | |
2415 BD_RATE_33900, | |
2416 BD_RATE_38400, | |
2417 BD_RATE_57600, | |
2418 BD_RATE_115200, | |
2419 BD_RATE_203125, | |
2420 BD_RATE_406250, | |
2421 BD_RATE_812500 | |
2422 } | |
2423 T_ACI_BD_RATE; | |
2424 | |
2425 /*---- +ICF ------------------------------------------------------*/ | |
2426 typedef enum /* +ICF parameter <format> */ | |
2427 { | |
2428 BS_FRM_NotPresent = -1, | |
2429 /*BS_FRM_AutoDetect,*/ /* not supported */ | |
2430 BS_FRM_Dat8_Par0_St2 = 1, | |
2431 BS_FRM_Dat8_Par1_St1, | |
2432 BS_FRM_Dat8_Par0_St1, | |
2433 BS_FRM_Dat7_Par0_St2, | |
2434 BS_FRM_Dat7_Par1_St1, | |
2435 BS_FRM_Dat7_Par0_St1 | |
2436 } | |
2437 T_ACI_BS_FRM; | |
2438 | |
2439 typedef enum /* +ICF parameter <parity> */ | |
2440 { | |
2441 BS_PAR_NotPresent = -1, | |
2442 BS_PAR_Odd, | |
2443 BS_PAR_Even, | |
2444 BS_PAR_Mark, | |
2445 BS_PAR_Space | |
2446 } | |
2447 T_ACI_BS_PAR; | |
2448 | |
2449 /*---- +IFC ------------------------------------------------------*/ | |
2450 typedef enum /* +IFC parameter <DCE_by_DTE> */ | |
2451 { | |
2452 RX_FLOW_NotPresent = -1, | |
2453 RX_FLOW_NONE, | |
2454 RX_FLOW_SOFTWARE, | |
2455 RX_FLOW_HARDWARE | |
2456 } | |
2457 T_ACI_RX_FLOW_CTRL; | |
2458 | |
2459 typedef enum /* +IFC parameter <DTE_by_DCE> */ | |
2460 { | |
2461 TX_FLOW_NotPresent = -1, | |
2462 TX_FLOW_NONE, | |
2463 TX_FLOW_SOFTWARE, | |
2464 TX_FLOW_HARDWARE | |
2465 } | |
2466 T_ACI_TX_FLOW_CTRL; | |
2467 | |
2468 /*--- +CRSM -------------------------------------------------------*/ | |
2469 | |
2470 typedef enum /* +CRSM parameter <cmd> */ | |
2471 { | |
2472 CRSM_CMD_NotPresent = -1, | |
2473 CRSM_CMD_ReadBin = 176, | |
2474 CRSM_CMD_ReadRec = 178, | |
2475 CRSM_CMD_GetResp = 192, | |
2476 CRSM_CMD_UpdBin = 214, | |
2477 CRSM_CMD_UpdRec = 220, | |
2478 CRSM_CMD_Status = 242 | |
2479 } | |
2480 T_ACI_CRSM_CMD; | |
2481 | |
2482 /*--- +CSIM -------------------------------------------------------*/ | |
2483 | |
2484 /*--- +CCWV -------------------------------------------------------*/ | |
2485 | |
2486 typedef enum /* +CCWV parameter <chrg> */ | |
2487 { | |
2488 CCWV_CHRG_NotPresent = -1, | |
2489 CCWV_CHRG_Termination, | |
2490 CCWV_CHRG_Abundance, | |
2491 CCWV_CHRG_Shortage | |
2492 } | |
2493 T_ACI_CCWV_CHRG; | |
2494 | |
2495 /*---- &C ---------------------------------------------------------*/ | |
2496 typedef enum /* data carrier detect modes */ | |
2497 { | |
2498 DCD_ALWAYS_ON = 0, /* DCD line always on */ | |
2499 DCD_DISABLE_AFTER_CALL /* disable DCD line at end of call */ | |
2500 } T_ACI_DCD_MOD; | |
2501 | |
2502 /*--- %CAL --------------------------------------------------------*/ | |
2503 | |
2504 typedef enum /* Status of current calls */ | |
2505 { | |
2506 CAL_STAT_NotPresent = -1, | |
2507 CAL_STAT_Held, | |
2508 CAL_STAT_Active, | |
2509 CAL_STAT_Wait, | |
2510 CAL_STAT_Dial, | |
2511 CAL_STAT_DeactiveReq, | |
2512 CAL_STAT_Incomming, | |
2513 CAL_STAT_Alerting | |
2514 } | |
2515 T_ACI_CAL_STAT; | |
2516 | |
2517 typedef enum /* Type of current calls */ | |
2518 { | |
2519 CAL_TYPE_NotPresent = -1, | |
2520 CAL_TYPE_MOC, | |
2521 CAL_TYPE_MTC | |
2522 } | |
2523 T_ACI_CAL_TYPE; | |
2524 | |
2525 typedef enum /* in-band tones usage */ | |
2526 { | |
2527 CAL_IBT_NotPresent = -1, | |
2528 CAL_IBT_FALSE, | |
2529 CAL_IBT_TRUE | |
2530 } | |
2531 T_ACI_CAL_IBT; | |
2532 | |
2533 typedef enum /* mode of current calls */ | |
2534 { | |
2535 CAL_MODE_NotPresent = -1, | |
2536 CAL_MODE_Voice, | |
2537 CAL_MODE_Data, | |
2538 CAL_MODE_Fax, | |
2539 CAL_MODE_VFD_Voice, /* voice followed data, voice mode */ | |
2540 CAL_MODE_VAD_Voice, /* voice alternating data, voice mode */ | |
2541 CAL_MODE_VAF_Voice, /* voice alternating fax, voice mode */ | |
2542 CAL_MODE_VFD_Data, /* voice followed data, voice mode */ | |
2543 CAL_MODE_VAD_Data, /* voice alternating data, voice mode */ | |
2544 CAL_MODE_VAF_Fax, /* voice alternating fax, voice mode */ | |
2545 CAL_MODE_Unknown | |
2546 } | |
2547 T_ACI_CAL_MODE; | |
2548 | |
2549 typedef enum /* call owner */ | |
2550 { | |
2551 CAL_OWN_NotPresent = -1, | |
2552 CAL_OWN_LCL, /* local call */ | |
2553 CAL_OWN_RMT, /* remote call */ | |
2554 CAL_OWN_NONE | |
2555 } | |
2556 T_ACI_CAL_OWN; | |
2557 | |
2558 typedef enum | |
2559 { | |
2560 CAL_MPTY_NotPresent = -1, | |
2561 CAL_MPTY_NoMember, | |
2562 CAL_MPTY_IsMember | |
2563 } | |
2564 T_ACI_CAL_MPTY; | |
2565 | |
2566 typedef struct /* Call table entry */ | |
2567 { | |
2568 SHORT index; | |
2569 T_ACI_CAL_STAT status; | |
2570 CHAR number[MAX_CC_ORIG_NUM_LEN]; | |
2571 T_ACI_TOA type; | |
2572 #ifdef NO_ASCIIZ | |
2573 T_ACI_PB_TEXT alpha; | |
2574 #else | |
2575 CHAR alpha[MAX_ALPHA_LEN]; | |
2576 #endif /* else, #ifdef NO_ASCIIZ */ | |
2577 T_ACI_CAL_TYPE calType; | |
2578 T_ACI_CAL_IBT ibtUse; | |
2579 T_ACI_CAL_MODE calMode; | |
2580 T_ACI_CAL_OWN calOwner; | |
2581 T_ACI_CAL_MPTY mpty; | |
2582 } | |
2583 T_ACI_CAL_ENTR; | |
2584 | |
2585 /*List of current calls*/ | |
2586 typedef T_ACI_CAL_ENTR T_ACI_CAL_LST [MAX_CALL_NR]; | |
2587 | |
2588 /*---- %DRV --------------------------------------------------------*/ | |
2589 typedef enum /* DRV parameter <device> */ | |
2590 { | |
2591 DRV_DEV_Keypad, | |
2592 DRV_DEV_Audio, | |
2593 DRV_DEV_Backlight, | |
2594 DRV_DEV_Display | |
2595 } | |
2596 T_ACI_DRV_DEV; | |
2597 | |
2598 typedef enum /* DRV parameter <function> */ | |
2599 { | |
2600 DRV_FCT_KeypadInd, | |
2601 DRV_FCT_AudioInputReq, | |
2602 DRV_FCT_AudioOutputReq, | |
2603 DRV_FCT_BacklightReq, | |
2604 DRV_FCT_DisplayReq | |
2605 } | |
2606 T_ACI_DRV_FCT; | |
2607 | |
2608 /*---- %NRG --------------------------------------------------------*/ | |
2609 typedef enum /* NRG parameter <regMode> */ | |
2610 { | |
2611 NRG_RGMD_NotPresent = -1, | |
2612 NRG_RGMD_Auto, | |
2613 NRG_RGMD_Manual, | |
2614 NRG_RGMD_Dereg, /* not yet implemented */ | |
2615 NRG_RGMD_SetOnly, /* not yet implemented */ | |
2616 NRG_RGMD_Both | |
2617 } | |
2618 T_ACI_NRG_RGMD; | |
2619 | |
2620 typedef enum /* NRG parameter <srvMode> */ | |
2621 { | |
2622 NRG_SVMD_NotPresent = -1, | |
2623 NRG_SVMD_Full, | |
2624 NRG_SVMD_Limited, | |
2625 NRG_SVMD_NoSrv, | |
2626 NRG_SVMD_SetRegModeOnly | |
2627 } | |
2628 T_ACI_NRG_SVMD; | |
2629 | |
2630 typedef enum /* +COPS parameter <format> */ | |
2631 { | |
2632 NRG_FRMT_NotPresent = -1, | |
2633 NRG_FRMT_Long, | |
2634 NRG_FRMT_Short, | |
2635 NRG_FRMT_Numeric | |
2636 } | |
2637 T_ACI_NRG_FRMT; | |
2638 | |
2639 /*---- %COLR ------------------------------------------------------*/ | |
2640 | |
2641 typedef enum /* %COLR parameter <stat> */ | |
2642 { | |
2643 COLR_STAT_NotPresent = -1, | |
2644 COLR_STAT_NotProv, | |
2645 COLR_STAT_Prov, | |
2646 COLR_STAT_Unknown | |
2647 } | |
2648 T_ACI_COLR_STAT; | |
2649 | |
2650 /*---- %PVRF -------------------------------------------------------*/ | |
2651 | |
2652 typedef enum /* %PVRF parameter <type> */ | |
2653 { | |
2654 PVRF_TYPE_NotPresent = -1, | |
2655 PVRF_TYPE_Pin1, | |
2656 PVRF_TYPE_Pin2, | |
2657 PVRF_TYPE_Puk1, | |
2658 PVRF_TYPE_Puk2 | |
2659 } | |
2660 T_ACI_PVRF_TYPE; | |
2661 | |
2662 typedef enum /* %PVRF parameter <ps1> and <ps2> */ | |
2663 { | |
2664 PVRF_STAT_NotPresent = -1, | |
2665 PVRF_STAT_NotRequired, | |
2666 PVRF_STAT_Required | |
2667 } | |
2668 T_ACI_PVRF_STAT; | |
2669 | |
2670 /*---- %EFRSLT ----------------------------------------------------*/ | |
2671 | |
2672 typedef enum | |
2673 { | |
2674 EFRSLT_RES_FAIL, | |
2675 EFRSLT_RES_OK | |
2676 } | |
2677 T_ACI_EFRSLT_RES; | |
2678 | |
2679 /*---- %SIMEF -----------------------------------------------------*/ | |
2680 | |
2681 typedef enum | |
2682 { | |
2683 SIMEF_MODE_OFF, | |
2684 SIMEF_MODE_ON | |
2685 } | |
2686 T_ACI_SIMEF_MODE; | |
2687 | |
2688 /*---- %KSIR ------------------------------------------------------*/ | |
2689 | |
2690 typedef struct | |
2691 { | |
2692 UBYTE bsTp; | |
2693 UBYTE bsCd; | |
2694 } T_Cx_BSG; | |
2695 | |
2696 typedef struct | |
2697 { | |
2698 UBYTE bsTp; | |
2699 UBYTE bsCd; | |
2700 UBYTE ssSt; | |
2701 } T_CB_INFO; | |
2702 | |
2703 typedef struct | |
2704 { | |
2705 UBYTE bsTp; | |
2706 UBYTE bsCd; | |
2707 UBYTE ssSt; | |
2708 UBYTE num[MAX_B_SUBSCR_NUM_LEN]; | |
2709 UBYTE ton; | |
2710 UBYTE npi; | |
2711 UBYTE sub[MAX_SUBADDR_LEN]; | |
2712 UBYTE tos; | |
2713 UBYTE oe; | |
2714 UBYTE time; | |
2715 } T_CF_FEAT; /* Call Forwarding FEATure */ | |
2716 | |
2717 typedef struct | |
2718 { | |
2719 UBYTE bsTp; | |
2720 UBYTE bsCd; | |
2721 UBYTE ssSt; | |
2722 UBYTE num[MAX_B_SUBSCR_NUM_LEN]; | |
2723 UBYTE ton; | |
2724 UBYTE npi; | |
2725 UBYTE sub[MAX_SUBADDR_LEN]; | |
2726 UBYTE tos; | |
2727 UBYTE oe; | |
2728 UBYTE idx; | |
2729 } T_CC_FEAT; /* CCbs FEATure */ | |
2730 | |
2731 typedef struct | |
2732 { | |
2733 UBYTE tac1; | |
2734 UBYTE tac2; | |
2735 UBYTE tac3; | |
2736 UBYTE fac; | |
2737 UBYTE snr1; | |
2738 UBYTE snr2; | |
2739 UBYTE snr3; | |
2740 UBYTE svn; | |
2741 UBYTE cd; | |
2742 } T_ACI_IMEI; | |
2743 | |
2744 typedef struct | |
2745 { | |
2746 T_ACI_KSD_CMD ksdCmd; | |
2747 /* | |
2748 ** CQ12314 : NDH : 23/9/2003 : | |
2749 ** Required by MMI to determine what action to take in case when AT command used on Terminal. | |
2750 ** (eg Display Call Forwarding Icon) | |
2751 */ | |
2752 T_ACI_CMD_SRC srcId; | |
2753 union | |
2754 { | |
2755 struct { UBYTE opCd; | |
2756 UBYTE ssCd; | |
2757 UBYTE ssErr; | |
2758 UBYTE ssSt; | |
2759 T_ACI_CLIR_MOD mode; /* "mode" is used only for AT_Interpreter */ | |
2760 UBYTE clirOpt; | |
2761 UBYTE ovrdCtg; } rKSCL; | |
2762 struct { UBYTE opCd; | |
2763 UBYTE ssCd; | |
2764 UBYTE ssErr; | |
2765 UBYTE ssSt; | |
2766 UBYTE c_cwBSGLst; | |
2767 T_Cx_BSG *cwBSGLst; } rKSCW; | |
2768 struct { UBYTE opCd; | |
2769 UBYTE ssCd; | |
2770 UBYTE ssErr; | |
2771 UBYTE c_cfFeatLst; | |
2772 T_CF_FEAT *cfFeatLst; } rKSCF; | |
2773 struct { UBYTE opCd; | |
2774 UBYTE ssCd; | |
2775 UBYTE ssErr; | |
2776 UBYTE c_cbInfoLst; | |
2777 T_CB_INFO *cbInfoLst; } rKSCB; | |
2778 struct { UBYTE opCd; | |
2779 UBYTE ssCd; | |
2780 UBYTE ssErr; | |
2781 UBYTE errPrms; | |
2782 UBYTE newPwd[MAX_PWD_NUM+1]; } rKSPW; | |
2783 struct { UBYTE *ussd; | |
2784 UBYTE ssErr; | |
2785 UBYTE len; /*store the USSD string len due to possible unicode string*/ | |
2786 SHORT dcs; /* "dcs" and "mode" are used only for AT_Interpreter */ | |
2787 T_ACI_CUSD_MOD mode; } rKSUS; | |
2788 T_ACI_IMEI rKSIMEI; | |
2789 struct { UBYTE opCd; | |
2790 UBYTE ssCd; | |
2791 UBYTE ssErr; | |
2792 UBYTE ssSt; | |
2793 UBYTE c_ccFeatLst; | |
2794 T_CC_FEAT *ccFeatLst; } rKSCC; | |
2795 } ir; | |
2796 } T_ACI_KSIR; | |
2797 | |
2798 /* %CSQ parameter */ | |
2799 typedef enum | |
2800 { | |
2801 CSQ_Disable = 0, | |
2802 CSQ_Enable = 1 | |
2803 } | |
2804 T_ACI_CSQ_MODE; | |
2805 | |
2806 | |
2807 | |
2808 /*---- %CHPL------------------------------------------------------*/ | |
2809 | |
2810 typedef enum | |
2811 { | |
2812 CHPL_FRMT_NotPresent = -1, | |
2813 CHPL_FRMT_Long, | |
2814 CHPL_FRMT_Short, | |
2815 CHPL_FRMT_Numeric | |
2816 } T_ACI_CHPL_FRMT; | |
2817 | |
2818 /*---- %CWUP------------------------------------------------------*/ | |
2819 | |
2820 typedef enum | |
2821 { | |
2822 CWUP_TYPE_NotPresent = -1, | |
2823 CWUP_TYPE_RR = 1 | |
2824 } T_ACI_CWUP_TYPE; | |
2825 | |
2826 /*---- %CLOG ------------------------------------------------------*/ | |
2827 | |
2828 typedef enum | |
2829 { | |
2830 CLOG_TYPE_NotPresent = -1, | |
2831 CLOG_TYPE_Set, | |
2832 CLOG_TYPE_Query, | |
2833 CLOG_TYPE_Test | |
2834 } | |
2835 T_ACI_CLOG_TYPE; | |
2836 | |
2837 typedef struct /* %CLOG parameter */ | |
2838 { | |
2839 T_ACI_AT_CMD atCmd; | |
2840 T_ACI_CLOG_TYPE cmdType; | |
2841 T_ACI_RETURN retCode; | |
2842 SHORT cId; | |
2843 SHORT sId; | |
2844 union | |
2845 { | |
2846 struct { T_ACI_CMD_SRC srcId; | |
2847 T_ACI_CFUN_FUN fun; | |
2848 T_ACI_CFUN_RST rst; } sCFUN; | |
2849 struct { T_ACI_CMD_SRC srcId; | |
2850 CHAR *pin; | |
2851 CHAR *newpin; } sCPIN; | |
2852 struct { T_ACI_CMD_SRC srcId; | |
2853 T_ACI_COPS_MOD mode; | |
2854 T_ACI_COPS_FRMT format; | |
2855 CHAR *oper; } sCOPS; | |
2856 struct { T_ACI_CMD_SRC srcId; | |
2857 SHORT startIdx; | |
2858 SHORT *lastIdx; | |
2859 T_ACI_COPS_OPDESC *operLst; } tCOPS; | |
2860 struct { T_ACI_CMD_SRC srcId; | |
2861 T_ACI_CLIP_STAT *stat; } qCLIP; | |
2862 struct { T_ACI_CMD_SRC srcId; | |
2863 T_ACI_CLIR_MOD *mode; | |
2864 T_ACI_CLIR_STAT *stat; } qCLIR; | |
2865 struct { T_ACI_CMD_SRC srcId; | |
2866 T_ACI_COLP_STAT *stat; } qCOLP; | |
2867 struct { T_ACI_CMD_SRC srcId; | |
2868 CHAR *number; | |
2869 T_ACI_D_CLIR_OVRD clirOvrd; | |
2870 T_ACI_D_CUG_CTRL cugCtrl; | |
2871 T_ACI_D_TOC callType; | |
2872 #ifdef SIM_TOOLKIT | |
2873 T_ACI_D_SIMCC simCallCtrl; | |
2874 #endif /* SIM_TOOLKIT */ | |
2875 } sD; | |
2876 struct { T_ACI_CMD_SRC srcId; } sA; | |
2877 struct { T_ACI_CMD_SRC srcId; } sH; | |
2878 struct { T_ACI_CMD_SRC srcId; } sZ; | |
2879 struct { T_ACI_CMD_SRC srcId; } sCHUP; | |
2880 struct { T_ACI_CMD_SRC srcId; | |
2881 T_ACI_CLCK_FAC fac; | |
2882 T_ACI_CLCK_MOD mode; | |
2883 CHAR *passwd; | |
2884 T_ACI_CLASS class_type; } sCLCK; | |
2885 struct { T_ACI_CMD_SRC srcId; | |
2886 T_ACI_CLCK_FAC fac; | |
2887 T_ACI_CLASS class_type; } qCLCK; | |
2888 struct { T_ACI_CMD_SRC srcId; | |
2889 T_ACI_CPWD_FAC fac; | |
2890 CHAR *oldpwd; | |
2891 CHAR *newpwd; } sCPWD; | |
2892 struct { T_ACI_CMD_SRC srcId; | |
2893 T_ACI_CCFC_RSN reason; | |
2894 T_ACI_CCFC_MOD mode; | |
2895 CHAR *number; | |
2896 T_ACI_TOA *type; | |
2897 T_ACI_CLASS class_type; | |
2898 CHAR *subaddr; | |
2899 T_ACI_TOS *satype; | |
2900 SHORT time; } sCCFC; | |
2901 struct { T_ACI_CMD_SRC srcId; | |
2902 T_ACI_CCFC_RSN reason; | |
2903 T_ACI_CLASS class_type; } qCCFC; | |
2904 struct { T_ACI_CMD_SRC srcId; | |
2905 CHAR *number; | |
2906 T_ACI_TOA *type; | |
2907 CHAR *subaddr; | |
2908 T_ACI_TOS *satype; } sCTFR; | |
2909 struct { T_ACI_CMD_SRC srcId; | |
2910 T_ACI_CCWA_MOD mode; | |
2911 T_ACI_CLASS class_type; } sCCWA; | |
2912 struct { T_ACI_CMD_SRC srcId; | |
2913 T_ACI_CLASS class_type; } qCCWA; | |
2914 struct { T_ACI_CMD_SRC srcId; | |
2915 T_ACI_CHLD_MOD mode; | |
2916 CHAR *call; | |
2917 T_ACI_CHLD_ACT act; } sCHLD; | |
2918 struct { T_ACI_CMD_SRC srcId; | |
2919 T_ACI_USSD_DATA *str; | |
2920 SHORT dcs; } sCUSD; | |
2921 struct { T_ACI_CMD_SRC srcId; | |
2922 T_ACI_NRG_RGMD regMode; | |
2923 T_ACI_NRG_SVMD srvMode; | |
2924 T_ACI_NRG_FRMT oprFrmt; | |
2925 CHAR *opr; } sNRG; | |
2926 struct { T_ACI_CMD_SRC srcId; | |
2927 T_ACI_COLR_STAT *stat; } qCOLR; | |
2928 struct { T_ACI_CMD_SRC srcId; | |
2929 SHORT idx; } sCCBS; | |
2930 struct { T_ACI_CMD_SRC srcId; } qCCBS; | |
2931 struct { T_ACI_CMD_SRC srcId; | |
2932 UBYTE index; } sCMGD; | |
2933 struct { T_ACI_CMD_SRC srcId; | |
2934 SHORT index; | |
2935 CHAR *address; | |
2936 T_ACI_TOA *toa; | |
2937 T_ACI_SMS_STAT stat; | |
2938 CHAR *data; } sCMGW; | |
2939 struct { T_ACI_CMD_SRC srcId; | |
2940 T_ACI_CSMS_SERV service; } sCSMS; | |
2941 struct { T_ACI_CMD_SRC srcId; | |
2942 T_ACI_SMS_STOR mem1; | |
2943 T_ACI_SMS_STOR mem2; | |
2944 T_ACI_SMS_STOR mem3; } sCPMS; | |
2945 struct { T_ACI_CMD_SRC srcId; | |
2946 T_ACI_CMGF_MOD mode; } sCMGF; | |
2947 struct { T_ACI_CMD_SRC srcId; | |
2948 T_ACI_CMGF_MOD *mode; } qCMGF; | |
2949 struct { T_ACI_CMD_SRC srcId; | |
2950 T_ACI_CSCB_MOD mode; | |
2951 USHORT *mids; | |
2952 UBYTE *dcss; } sCSCB; | |
2953 struct { T_ACI_CMD_SRC srcId; | |
2954 CHAR *da; | |
2955 T_ACI_TOA *toda; | |
2956 CHAR *data; } sCMGS; | |
2957 struct { T_ACI_CMD_SRC srcId; | |
2958 UBYTE index; | |
2959 CHAR *da; | |
2960 T_ACI_TOA *toda; } sCMSS; | |
2961 struct { T_ACI_CMD_SRC srcId; | |
2962 SHORT fo; | |
2963 SHORT ct; | |
2964 SHORT pid; | |
2965 SHORT mn; | |
2966 CHAR *da; | |
2967 T_ACI_TOA *toda; | |
2968 CHAR *data; } sCMGC; | |
2969 struct { T_ACI_CMD_SRC srcId; | |
2970 UBYTE opCd; | |
2971 UBYTE ssCd; | |
2972 UBYTE bsTp; | |
2973 UBYTE bsCd; | |
2974 UBYTE *num; | |
2975 UBYTE npi; | |
2976 UBYTE ton; | |
2977 UBYTE *sub; | |
2978 UBYTE tos; | |
2979 UBYTE oe; | |
2980 UBYTE time; } sKSCF; | |
2981 struct { T_ACI_CMD_SRC srcId; | |
2982 UBYTE opCd; | |
2983 UBYTE ssCd; | |
2984 UBYTE bsTp; | |
2985 UBYTE bsCd; | |
2986 UBYTE *pwd; } sKSCB; | |
2987 struct { T_ACI_CMD_SRC srcId; | |
2988 UBYTE opCd; | |
2989 UBYTE bsTp; | |
2990 UBYTE bsCd; } sKSCW; | |
2991 struct { T_ACI_CMD_SRC srcId; | |
2992 UBYTE opCd; | |
2993 UBYTE ssCd; } sKSCL; | |
2994 struct { T_ACI_CMD_SRC srcId; | |
2995 UBYTE opCd; | |
2996 UBYTE ssCd; | |
2997 UBYTE idx; } sKSCC; | |
2998 struct { T_ACI_CMD_SRC srcId; | |
2999 UBYTE ssCd; | |
3000 UBYTE *oldPwd; | |
3001 UBYTE *newPwd; } sKSPW; | |
3002 struct { T_ACI_CMD_SRC srcId; | |
3003 UBYTE ssCd; | |
3004 UBYTE *puk; | |
3005 UBYTE *pin; } sKSUB; | |
3006 struct { T_ACI_CMD_SRC srcId; | |
3007 UBYTE *ussd; } sKSUS; | |
3008 struct { T_ACI_CMD_SRC srcId; | |
3009 T_ACI_PVRF_TYPE type; | |
3010 CHAR *pin; | |
3011 CHAR *newpin; } sPVRF; | |
3012 struct { T_ACI_CMD_SRC srcId; | |
3013 T_ACI_CHPL_FRMT format; | |
3014 CHAR *oper; } sCHPL; | |
3015 | |
3016 } cmdPrm; | |
3017 } | |
3018 T_ACI_CLOG; | |
3019 | |
3020 /*---- %RLOG ------------------------------------------------------*/ | |
3021 typedef enum | |
3022 { | |
3023 RLOG_RSLT_NotPresent = -1, | |
3024 RLOG_RSLT_OK, | |
3025 RLOG_RSLT_NoCarrier, | |
3026 RLOG_RSLT_Connect, | |
3027 RLOG_RSLT_Busy, | |
3028 RLOG_RSLT_NoAnswer, | |
3029 RLOG_RSLT_CME | |
3030 } T_ACI_RLOG_RSLT; | |
3031 | |
3032 | |
3033 typedef struct /* %CLOG parameter */ | |
3034 { | |
3035 T_ACI_RLOG_RSLT atRslt; | |
3036 T_ACI_CMD_SRC dest; | |
3037 union | |
3038 { | |
3039 struct { T_ACI_AT_CMD cmdId; | |
3040 SHORT cId; } rOK; | |
3041 struct { T_ACI_AT_CMD cmdId; | |
3042 SHORT cId; } rNO_CARRIER; | |
3043 struct { T_ACI_AT_CMD cmdId; | |
3044 T_ACI_BS_SPEED speed; | |
3045 SHORT cId; } rCONNECT; | |
3046 struct { T_ACI_AT_CMD cmdId; | |
3047 SHORT cId; } rBUSY; | |
3048 struct { T_ACI_AT_CMD cmdId; | |
3049 SHORT cId; } rNO_ANSWER; | |
3050 struct { T_ACI_AT_CMD cmdId; | |
3051 T_ACI_CME_ERR err; | |
3052 SHORT cId; } rCME; | |
3053 } rsltPrm; | |
3054 } | |
3055 T_ACI_RLOG; | |
3056 | |
3057 /*---- %CPI ------------------------------------------------------*/ | |
3058 | |
3059 typedef enum /* %CPI parameter <msg> */ | |
3060 { | |
3061 CPI_MSG_NotPresent = -1, | |
3062 CPI_MSG_Setup, | |
3063 CPI_MSG_Disc, | |
3064 CPI_MSG_Alert, | |
3065 CPI_MSG_Proc, | |
3066 CPI_MSG_Sync, | |
3067 CPI_MSG_Progr, | |
3068 CPI_MSG_Conn, | |
3069 CPI_MSG_Rls, | |
3070 CPI_MSG_Rjct, | |
3071 CPI_MSG_MO_Setup, | |
3072 CPI_MSG_Hld | |
3073 } | |
3074 T_ACI_CPI_MSG; | |
3075 | |
3076 typedef enum /* %CPI parameter <ibt> */ | |
3077 { | |
3078 CPI_IBT_NotPresent = -1, | |
3079 CPI_IBT_False, | |
3080 CPI_IBT_True | |
3081 } | |
3082 T_ACI_CPI_IBT; | |
3083 | |
3084 typedef enum /* %CPI parameter <tch> */ | |
3085 { | |
3086 CPI_TCH_NotPresent = -1, | |
3087 CPI_TCH_False, | |
3088 CPI_TCH_True | |
3089 } | |
3090 T_ACI_CPI_TCH; | |
3091 | |
3092 /*---- %CSTAT ----------------------------------------------------*/ | |
3093 | |
3094 typedef enum | |
3095 { | |
3096 /* | |
3097 * New enum values needs to be added | |
3098 * before the MAX_ENTITIES entry. | |
3099 * | |
3100 */ | |
3101 STATE_MSG_PBOOK = 0, | |
3102 STATE_MSG_SMS, | |
3103 STATE_MSG_EONS, | |
3104 STATE_MSG_MAX_ENTITIES, | |
3105 STATE_MSG_RDY = 255 | |
3106 } | |
3107 T_ACI_ENTITY_ID_MSG; | |
3108 | |
3109 typedef enum | |
3110 { | |
3111 ENTITY_STATUS_NotReady = 0, | |
3112 ENTITY_STATUS_Ready = 1 | |
3113 } | |
3114 T_ACI_ENTITY_STATE_MSG; | |
3115 | |
3116 | |
3117 typedef struct /* %CSTAT parameter <msg> */ | |
3118 { | |
3119 T_ACI_ENTITY_ID_MSG entityId; | |
3120 T_ACI_ENTITY_STATE_MSG entityState; | |
3121 } | |
3122 T_ACI_STATE_MSG; | |
3123 | |
3124 | |
3125 /*---- %PBCF ------------------------------------------------------*/ | |
3126 | |
3127 typedef enum /* %PBCF parameter <ldn> */ | |
3128 { | |
3129 PBCF_LDN_NotPresent = -1, | |
3130 PBCF_LDN_Enable, | |
3131 PBCF_LDN_Disable | |
3132 } | |
3133 T_ACI_PBCF_LDN; | |
3134 | |
3135 typedef enum /* %PBCF parameter <lrn> */ | |
3136 { | |
3137 PBCF_LRN_NotPresent = -1, | |
3138 PBCF_LRN_Enable, | |
3139 PBCF_LRN_Disable | |
3140 } | |
3141 T_ACI_PBCF_LRN; | |
3142 | |
3143 typedef enum /* %PBCF parameter <lmn> */ | |
3144 { | |
3145 PBCF_LMN_NotPresent = -1, | |
3146 PBCF_LMN_Enable, | |
3147 PBCF_LMN_Disable | |
3148 } | |
3149 T_ACI_PBCF_LMN; | |
3150 /*---- %RPCT ------------------------------------------------------*/ | |
3151 | |
3152 typedef struct /* %RPCT parameter <rpuct> */ | |
3153 { | |
3154 UBYTE currency [MAX_CUR_LEN]; | |
3155 ULONG eppu; | |
3156 ULONG exp; | |
3157 ULONG sexp; | |
3158 } | |
3159 T_ACI_RPCT_VAL; | |
3160 | |
3161 /*---- %SATT ------------------------------------------------------*/ | |
3162 | |
3163 typedef enum /* %SATT parameter <cause> */ | |
3164 { | |
3165 SATT_CS_NotPresent = -1, | |
3166 SATT_CS_UserRedialStop, | |
3167 SATT_CS_EndRedial, | |
3168 SATT_CS_EndSession | |
3169 } | |
3170 T_ACI_SATT_CS; | |
3171 | |
3172 /*---- %CCBS ------------------------------------------------------*/ | |
3173 | |
3174 typedef enum /* %CCBS parameter <ind> */ | |
3175 { | |
3176 CCBS_IND_NotPresent = -1, | |
3177 CCBS_IND_PossibilityTimedOut, | |
3178 CCBS_IND_Possible, | |
3179 CCBS_IND_Registered, | |
3180 CCBS_IND_Recall, | |
3181 CCBS_IND_RecallTimedOut, | |
3182 CCBS_IND_IrgtResult | |
3183 } | |
3184 T_ACI_CCBS_IND; | |
3185 | |
3186 typedef enum /* %CCBS parameter <status> */ | |
3187 { | |
3188 CCBS_STAT_NotPresent = -1, | |
3189 CCBS_STAT_NotProvisioned, | |
3190 CCBS_STAT_Provisioned, | |
3191 CCBS_STAT_Active | |
3192 } | |
3193 T_ACI_CCBS_STAT; | |
3194 | |
3195 | |
3196 typedef struct | |
3197 { | |
3198 SHORT idx; | |
3199 CHAR number[MAX_B_SUBSCR_NUM_LEN]; | |
3200 T_ACI_TOA type; | |
3201 CHAR subaddr[MAX_SUBADDR_LEN]; | |
3202 T_ACI_TOS satype; | |
3203 T_ACI_CLASS class_type; | |
3204 T_ACI_ALRT_PTRN alrtPtn; | |
3205 } | |
3206 T_ACI_CCBS_SET; | |
3207 | |
3208 /*---- Phonebook Management ---------------------------------------*/ | |
3209 | |
3210 typedef enum | |
3211 { | |
3212 PB_STAT_Ready = 0, /* Phonebook ready */ | |
3213 #ifdef TI_PS_FFS_PHB | |
3214 PB_STAT_Busy, /* Phonebook temporarily not available */ | |
3215 #endif | |
3216 PB_STAT_Blocked /* Phonebook not available */ | |
3217 } | |
3218 T_ACI_PB_STAT; | |
3219 | |
3220 typedef enum /* phonebook storage */ | |
3221 { | |
3222 PB_STOR_NotPresent = -1, | |
3223 PB_STOR_Fd, | |
3224 PB_STOR_Ld, | |
3225 PB_STOR_Ed, | |
3226 PB_STOR_Ad, | |
3227 PB_STOR_Bd, | |
3228 PB_STOR_Lr, | |
3229 PB_STOR_Sd, | |
3230 PB_STOR_Lm, | |
3231 PB_STOR_Af, | |
3232 PB_STOR_Ud /* user person number */ | |
3233 } | |
3234 T_ACI_PB_STOR; | |
3235 | |
3236 typedef struct | |
3237 { | |
3238 char *name; | |
3239 T_ACI_PB_STOR stor; | |
3240 } Memory; | |
3241 | |
3242 #ifdef CMH_PHBS_C | |
3243 GLOBAL const Memory phb_mem_names[] = | |
3244 { | |
3245 {"FD", PB_STOR_Fd}, | |
3246 {"DC", PB_STOR_Ld}, /* 07.07 common name for LDN */ | |
3247 {"LD", PB_STOR_Ld}, /* does not reflect the SIM LDN since it is only written to SIM on CFUN=0 */ | |
3248 {"RC", PB_STOR_Lr}, /* 07.07 */ | |
3249 {"LR", PB_STOR_Lr}, /* TI equivalent */ | |
3250 {"EN", PB_STOR_Ed}, | |
3251 {"BD", PB_STOR_Bd}, | |
3252 {"MT", PB_STOR_Ad}, /* 07.07 */ | |
3253 {"AD", PB_STOR_Ad}, /* TI equivalent */ | |
3254 {"SM", PB_STOR_Ad}, /* 07.07 SIM phonebook */ | |
3255 {"SD", PB_STOR_Sd}, | |
3256 {"MC", PB_STOR_Lm}, /* 07.07 */ | |
3257 {"LM", PB_STOR_Lm}, /* TI equivalent */ | |
3258 {"AF", PB_STOR_Af}, | |
3259 {"ON", PB_STOR_Ud}, /* 07.07 */ | |
3260 {"UD", PB_STOR_Ud}, /* TI equivalent */ | |
3261 /* right now not available | |
3262 {"ME", PB_STOR_??}, 07.07 ME phonebook | |
3263 {"TA", PB_STOR_??}, 07.07 TA phonebook | |
3264 */ | |
3265 {0,0} | |
3266 }; | |
3267 #else | |
3268 EXTERN const Memory phb_mem_names[]; | |
3269 #endif | |
3270 | |
3271 | |
3272 typedef struct | |
3273 { | |
3274 T_ACI_PB_STOR book; | |
3275 SHORT index; | |
3276 CHAR number[MAX_PHB_NUM_LEN]; | |
3277 T_ACI_TOA type; | |
3278 T_ACI_PB_TEXT text; | |
3279 T_ACI_VP_ABS dateTime; | |
3280 UBYTE line; | |
3281 } | |
3282 T_ACI_PB_ENTR; | |
3283 | |
3284 typedef T_ACI_PB_ENTR T_ACI_PB_LST [MAX_PB_ENTR]; | |
3285 | |
3286 typedef enum | |
3287 { | |
3288 CPBF_MOD_NewSearch = 0, | |
3289 CPBF_MOD_NextSearch | |
3290 } | |
3291 T_ACI_CPBF_MOD; | |
3292 | |
3293 /*---- %ALS --------------------------------------------------*/ | |
3294 typedef enum /* %ALS parameter <mod> bit_field*/ | |
3295 { | |
3296 ALS_MOD_NOTPRESENT = 0, | |
3297 ALS_MOD_SPEECH = 1, | |
3298 ALS_MOD_AUX_SPEECH = 2 | |
3299 } T_ACI_ALS_MOD; | |
3300 | |
3301 /*---- %BAND --------------------------------------------------*/ | |
3302 | |
3303 typedef enum | |
3304 { | |
3305 BAND_MODE_Auto = 0, | |
3306 BAND_MODE_Manual = 1 | |
3307 } | |
3308 T_ACI_BAND_MODE; | |
3309 | |
3310 /*---- %DINF --------------------------------------------------*/ | |
3311 typedef enum | |
3312 { | |
3313 ATI_DEV_ID_NONE = -1, /* non valid device Id */ | |
3314 ATI_DEV_ID_UART, /* UART device */ | |
3315 ATI_DEV_ID_RIV_APP, /* Rivera Application */ | |
3316 ATI_DEV_ID_PKTIO, /* packet I/O device */ | |
3317 ATI_DEV_ID_PSI /* psi device */ | |
3318 } T_DEV_ID; | |
3319 | |
3320 typedef struct | |
3321 { | |
3322 T_DEV_ID dev_id; /* id(name) of device */ | |
3323 UBYTE dev_no; /* instance of device */ | |
3324 UBYTE sub_no; /* instance with multiplexed ch. */ | |
3325 UBYTE capability; /* capability of device */ | |
3326 UBYTE src_id; /* what ACI sees as AT cmd src */ | |
3327 UBYTE cur_cap; /* capability of the DTI channel */ | |
3328 }T_DINF_PARAM; | |
3329 | |
3330 /*---- +CTZR --------------------------------------------------*/ | |
3331 typedef enum | |
3332 { | |
3333 CTZR_MODE_OFF = 0, | |
3334 CTZR_MODE_ON | |
3335 } T_ACI_CTZR_MODE; | |
3336 | |
3337 /*---- +CTZU --------------------------------------------------*/ | |
3338 typedef enum | |
3339 { | |
3340 CTZU_MODE_OFF = 0, | |
3341 CTZU_MODE_ON | |
3342 } T_ACI_CTZU_MODE; | |
3343 | |
3344 /*---- +CCLK --------------------------------------------------*/ | |
3345 typedef enum | |
3346 { | |
3347 TIME_FORMAT_12HOUR, | |
3348 TIME_FORMAT_24HOUR | |
3349 } T_ACI_RTC_TIME_FORMAT; | |
3350 | |
3351 typedef struct { | |
3352 UBYTE day; | |
3353 UBYTE month; | |
3354 USHORT year; | |
3355 } T_ACI_RTC_DATE; | |
3356 | |
3357 | |
3358 typedef struct | |
3359 { UBYTE minute; | |
3360 UBYTE hour; | |
3361 UBYTE second; | |
3362 T_ACI_RTC_TIME_FORMAT format; | |
3363 BOOL PM_flag; | |
3364 } T_ACI_RTC_TIME; | |
3365 | |
3366 /*---- %CTZV --------------------------------------------------*/ | |
3367 typedef enum | |
3368 { | |
3369 PCTZV_MODE_OFF = 0, | |
3370 PCTZV_MODE_ON | |
3371 } T_ACI_PCTZV_MODE; | |
3372 | |
3373 | |
3374 /*---- %CNIV --------------------------------------------------*/ | |
3375 typedef enum | |
3376 { | |
3377 CNIV_MODE_OFF = 0, | |
3378 CNIV_MODE_ON | |
3379 } T_ACI_CNIV_MODE; | |
3380 | |
3381 /*********************************************************************/ | |
3382 /******************* CPHS Module *************************************/ | |
3383 /*********************************************************************/ | |
3384 #ifdef FF_CPHS | |
3385 | |
3386 typedef enum | |
3387 { | |
3388 ACI_CPHS_CLOSE = 0, | |
3389 ACI_CPHS_INIT, | |
3390 ACI_CPHS_REFRESH, | |
3391 ACI_CPHS_BUSY | |
3392 | |
3393 } T_ACI_CPHS_INIT; | |
3394 | |
3395 #endif /* FF_CPHS */ | |
3396 | |
3397 | |
3398 #if defined FF_WAP || defined GPRS || defined (FF_SAT_E) | |
3399 /*==== WAP typedefs =================================================*/ | |
3400 | |
3401 typedef enum | |
3402 { | |
3403 A_NO_AUTH = 0, /* No authentification (ignore login + pwd) */ | |
3404 A_PAP, /* PAP */ | |
3405 A_CHAP, /* CHAP */ | |
3406 A_AUTO_AUTH /* automatic authentification */ | |
3407 } T_ACI_PPP_PROT; | |
3408 | |
3409 typedef enum | |
3410 { | |
3411 USE_NO_PPP_FOR_AAA = 0, /* connect AAA-L2R */ | |
3412 USE_PPP_FOR_AAA /* connect AAA-PPP-L2R */ | |
3413 } T_ACI_PPP_CON; | |
3414 | |
3415 #endif /*WAP or GPRS */ | |
3416 | |
3417 /*==== EM typedefs =================================================*/ | |
3418 #ifdef FF_EM_MODE | |
3419 typedef enum | |
3420 { | |
3421 EM_NOT_SUP = -1, | |
3422 EM_AT_SC = 1, | |
3423 EM_AT_SC_GPRS, | |
3424 EM_AT_NC, | |
3425 EM_AT_LOC_PAG, | |
3426 EM_AT_PLMN, | |
3427 EM_AT_CIPH_HOP_DTX, | |
3428 EM_AT_POWER, | |
3429 EM_AT_ID, | |
3430 EM_AT_VER, | |
3431 EM_AT_GMM, /*for GMM Info Req*/ | |
3432 EM_AT_GRLC, /*for GRLC Info Req*/ | |
3433 EM_AT_AMR, | |
3434 EM_AT_PDP, | |
3435 | |
3436 /*This defines a (value+1) if all bits in the bitmap are set to request EM data*/ | |
3437 /*2^19 - This is the actual (value + 1) the EMW is sending*/ | |
3438 EM_AT_PCO_HIGHEST = 524288 | |
3439 | |
3440 /*2^12 - This is the value of EM - data that is actual supported by the PS*/ | |
3441 /*EM_AT_PCO_HIGHEST = 2 * EM_PCO_GRLC_INFO*/ | |
3442 } T_EM_AT_TYPE; | |
3443 | |
3444 typedef enum | |
3445 { | |
3446 DIS_AUTO_REP = 0, | |
3447 EN_AUTO_REP = 1, | |
3448 SIN_REP = 2, | |
3449 PCO_REP = 3 /*enable/disable PCO-trace*/ | |
3450 } T_EM_AT_MODE; | |
3451 | |
3452 typedef struct | |
3453 { | |
3454 UBYTE em_utype; | |
3455 union { | |
3456 T_EM_SC_INFO_CNF em_sc_val; | |
3457 T_EM_SC_GPRS_INFO_CNF em_sc_gprs_val; | |
3458 T_EM_NC_INFO_CNF em_nc_val; | |
3459 T_EM_LOC_PAG_INFO_CNF em_loc_val; | |
3460 T_EM_PLMN_INFO_CNF em_plmn_val; | |
3461 T_EM_CIP_HOP_DTX_INFO_CNF em_cip_val; | |
3462 T_EM_POWER_INFO_CNF em_power_val; | |
3463 T_EM_IDENTITY_INFO_CNF em_id_val; | |
3464 T_EM_SW_VER em_ver_val; | |
3465 T_EM_GMM_INFO_CNF em_gmm_val; | |
3466 T_EM_GRLC_INFO_CNF em_grlc_val; | |
3467 T_EM_AMR_INFO_CNF em_amr_val; | |
3468 } em_u; | |
3469 } T_EM_VAL; | |
3470 | |
3471 #endif /* FF_EM_MODE */ | |
3472 | |
3473 #ifdef FF_SAT_E /* SIM_TOOLKIT */ | |
3474 /*==== SAT typedefs =================================================*/ | |
3475 | |
3476 typedef enum | |
3477 { | |
3478 SATC_DIS = 0, /* unsolicited SAT output disabled */ | |
3479 SATC_ENA, /* standard unsolicited SAT output enabled */ | |
3480 SATC_ENA_CL_E /* class E unsolicited SAT output enabled */ | |
3481 } T_ACI_SATC_STAT; | |
3482 | |
3483 typedef enum | |
3484 { | |
3485 SATA_CT_NO = 0, /* no channel type given */ | |
3486 SATA_CT_VOICE, /* channel type voice */ | |
3487 SATA_CT_CSD, /* channel type CSD */ | |
3488 SATA_CT_GPRS /* channel type GPRS */ | |
3489 } T_ACI_SATA_CHN; | |
3490 | |
3491 typedef enum | |
3492 { | |
3493 SATA_EST_NO = 0, /* no establishment type given */ | |
3494 SATA_EST_IM, /* immediate channel establishment */ | |
3495 SATA_EST_OD /* on-demand channel establishment */ | |
3496 } T_ACI_SATA_EST; | |
3497 | |
3498 typedef struct | |
3499 { | |
3500 T_ACI_SATA_CHN chnType; | |
3501 T_ACI_SATA_EST chnEst; | |
3502 } | |
3503 T_ACI_SATA_ADD; | |
3504 | |
3505 #endif /* FF_SAT_E */ | |
3506 | |
3507 | |
3508 #ifdef FF_EOTD | |
3509 | |
3510 #define MAX_NUMB_LC_CLIENTS 5 | |
3511 #define MAX_LC_SERV_NAME 24 | |
3512 #define IMM_POS_DATA_REQ 0xff | |
3513 #define MAX_POSITION_DATA 140 | |
3514 | |
3515 typedef enum | |
3516 { | |
3517 LOCATION_SERVICE_OFF = 0, | |
3518 LOCATION_SERVICE_ON | |
3519 } FEATURE_LC_STAT; | |
3520 | |
3521 typedef enum | |
3522 { | |
3523 PERIODIC_UPDATE_OFF = 0, | |
3524 PERIODIC_UPDATE_ON | |
3525 } FEATURE_LC_PER_STAT; | |
3526 | |
3527 typedef enum | |
3528 { | |
3529 CLIENT_NO_ACTIVE = 0, | |
3530 CLIENT_ACTIVE | |
3531 } STATUS_LC_ACT; | |
3532 | |
3533 typedef enum | |
3534 { | |
3535 PERIODIC_UP_NO_ACTIVE = 0, | |
3536 PERIODIC_UP_ACTIVE | |
3537 } STATUS_LC_PER_UP; | |
3538 | |
3539 typedef enum | |
3540 { | |
3541 CLOM_LCS_UNKNOWN = -1, | |
3542 CLOM_LCS_NO_ACT, | |
3543 CLOM_LCS_ACT, | |
3544 CLOM_LCS_CLIENT_DEL, | |
3545 CLOM_LCS_CLIENT_NEW, | |
3546 CLOM_LCS_SET_MAX | |
3547 } CLOM_SETTINGS; | |
3548 | |
3549 typedef enum | |
3550 { | |
3551 CLPS_LCS_UNKNOWN = -1, | |
3552 CLPS_LCS_NO_ACT, | |
3553 CLPS_LCS_ACT, | |
3554 CLPS_LCS_SET_MAX | |
3555 } CLPS_SETTINGS; | |
3556 | |
3557 typedef enum | |
3558 { | |
3559 CLRS_NOTIFY_UNKNOWN = -1, | |
3560 CLRS_NO_USER_NOTIFY, | |
3561 CLRS_USER_NOTIFY, | |
3562 CLRS_NOTIFY_SET_MAX | |
3563 } CLRS_NOTIFY_SETTINGS; | |
3564 | |
3565 typedef enum | |
3566 { | |
3567 CLRS_CONF_UNKNOWN = -1, | |
3568 CLRS_NO_USER_CONFIRM, | |
3569 CLRS_USER_CONFIRM, | |
3570 CLRS_CONFIRM_SET_MAX | |
3571 } CLRS_CONFIRMATION_SETTINGS; | |
3572 | |
3573 typedef struct | |
3574 { | |
3575 UBYTE position_data[MAX_POSITION_DATA]; | |
3576 UBYTE pos_data_length; | |
3577 }T_LOC_POS_DATA; | |
3578 | |
3579 typedef struct | |
3580 { | |
3581 char address[MAX_SMS_ADDR_DIG]; | |
3582 T_ACI_TOA toa; /* type of address */ | |
3583 }T_LOC_MLC_ADDRESS; | |
3584 | |
3585 typedef struct T_LOC_SERV_CL | |
3586 { | |
3587 T_LOC_MLC_ADDRESS client_id; /* LC client identifier */ | |
3588 /* common name of the location-based service / currently not supported*/ | |
3589 char lc_service_name[MAX_LC_SERV_NAME]; | |
3590 UBYTE client_status; /* activ/passiv */ | |
3591 UBYTE period_upd_status; /* activ/passiv */ | |
3592 USHORT period_upd_value; /* periodic update value in minutes */ | |
3593 UBYTE period_upd_timer; | |
3594 /* service_type -> bit0 = 0 then client_id is a real telephone number | |
3595 bit0 = 1 then client_id is only a reference number | |
3596 additional features -> bit 1 - 7/ currently not supported */ | |
3597 UBYTE servid_and_features; | |
3598 BOOL notify; /* notify status */ | |
3599 BOOL confirmation; /* confirmation status */ | |
3600 USHORT lc_clientReference; /* MNLC reference for client */ | |
3601 struct T_LOC_SERV_CL * next; /* pointer to next client entry */ | |
3602 }T_LOC_SERV_CLIENT; | |
3603 | |
3604 typedef struct | |
3605 { | |
3606 UBYTE lc_src_id; /* location service source identifier */ | |
3607 T_LOC_MLC_ADDRESS mlcsrc; /* mobile location service center source address */ | |
3608 T_LOC_MLC_ADDRESS mlcdest; /* mobile location service center destination address */ | |
3609 USHORT lc_callReference; /* MNLC reference (clsa, sms) */ | |
3610 UBYTE numb_lc_clients; /* number of client entries */ | |
3611 T_LOC_SERV_CLIENT * clients; /* pointer to list of LC clients */ | |
3612 }T_LOC_SERV_PARA; | |
3613 #endif | |
3614 | |
3615 typedef enum | |
3616 { | |
3617 CNAP_SERVICE_STATUS_NOT_PRESENT = -1, | |
3618 CNAP_SERVICE_NOT_PROVISIONED, | |
3619 CNAP_SERVICE_PROVISIONED, | |
3620 CNAP_SERVICE_STATUS_UNKNOWN | |
3621 } T_ACI_CNAP_STATUS; | |
3622 | |
3623 #define MAX_NUM_REPEAT_ATT 10 /* max number of call repeat attempts */ | |
3624 #ifdef _SIMULATION_ | |
3625 #define MAX_NUM_ENTR_BLACK_LIST 4 /* max number of black list phone numbers, | |
3626 reduced for testcases since lack of 1600 partitions | |
3627 for AT+CLCC in Testcase ACICC301 */ | |
3628 #else | |
3629 #define MAX_NUM_ENTR_BLACK_LIST 10 /* max number of black list phone numbers */ | |
3630 #endif /*_SIMULATION_*/ | |
3631 #define RDL_TIM_INDEX_NOT_PRESENT 0xff | |
3632 | |
3633 typedef enum | |
3634 { | |
3635 AUTOM_REP_NOT_PRESENT = -1, /* parameter is not given */ | |
3636 AUTOM_REPEAT_OFF, /* automatic call repeat is switched off */ | |
3637 AUTOM_REPEAT_ON /* automatic call repeat is switched on */ | |
3638 } T_ACI_CC_REDIAL_MODE; | |
3639 | |
3640 typedef enum | |
3641 { | |
3642 NOTIF_NO_PRESENT = -1, /* parameter is not given */ | |
3643 NO_NOTIF_USER, /* no notification to user */ | |
3644 NOTIF_USER /* notification to user */ | |
3645 } T_ACI_CC_REDIAL_NOTIF; | |
3646 | |
3647 typedef enum | |
3648 { | |
3649 BLMODE_NO_PRESENT = -1, /* parameter is not given */ | |
3650 BL_NO_DELETE, | |
3651 BL_DELETE /* blacklist is deleted */ | |
3652 }T_ACI_CC_REDIAL_BLMODE; | |
3653 | |
3654 typedef enum | |
3655 { | |
3656 REDIAL_TIM_START = 2, /* redial timer starts */ | |
3657 REDIAL_ATT_START, /* start redialling attempt */ | |
3658 CALL_ATTEMPT_FAILED, | |
3659 CALL_ATTEMPT_SUCCESSFUL, | |
3660 REDIAL_STOP /* redialling finished */ | |
3661 }T_ACI_CC_REDIAL_STATE; | |
3662 | |
3663 typedef enum | |
3664 { | |
3665 BLACKLIST_FULL = 2, /* black list is full */ | |
3666 ENTRY_BLACKLISTED, /* phone number set in black list */ | |
3667 ENTRY_IN_BLACKLIST /* phone number is in black list */ | |
3668 }T_ACI_CC_RDL_BLACKL_STATE; | |
3669 | |
3670 typedef enum | |
3671 { | |
3672 READ_RDLmode = 0, /* read redial mode from FFS */ | |
3673 WRITE_RDLmode /* write redial mode in FFS */ | |
3674 }T_ACI_CC_RDL_FFS; | |
3675 | |
3676 typedef struct | |
3677 { | |
3678 UBYTE numb_len; | |
3679 CHAR number[MAX_CC_CALLED_NUMBER]; | |
3680 T_ACI_TOA type; | |
3681 }T_ACI_CC_BLACKL_ENTRY; | |
3682 | |
3683 typedef struct CCblacklist | |
3684 { | |
3685 UBYTE blCount; /* counter of black list entries */ | |
3686 T_ACI_CC_BLACKL_ENTRY blNum[MAX_NUM_ENTR_BLACK_LIST]; /* table with blacklisted phone number */ | |
3687 }T_ACI_CC_REDIAL_BLACKL; | |
3688 | |
3689 typedef struct | |
3690 { | |
3691 T_ACI_CC_REDIAL_MODE rdlMod; /* redial mode */ | |
3692 T_ACI_CC_REDIAL_BLMODE rdlBlMod; /* black list mode */ | |
3693 SHORT rdlcId; /* redial call identifier, NO_ENTRY if no redial */ | |
3694 T_ACI_CC_REDIAL_NOTIF rdlModN; /* notification state of redial procedure */ | |
3695 T_ACI_CC_REDIAL_NOTIF rdlBlN; /* notification state of black list */ | |
3696 }T_ACI_CC_REDIAL_PAR; | |
3697 | |
3698 /* ------ +CIND & +CMER - typedefs ------------------------------- */ | |
3699 typedef enum | |
3700 { | |
3701 CIND_SIGNAL_INDICATOR_INVALID = -1, | |
3702 CIND_SIGNAL_INDICATOR_LVL0, | |
3703 CIND_SIGNAL_INDICATOR_LVL1, | |
3704 CIND_SIGNAL_INDICATOR_LVL2, | |
3705 CIND_SIGNAL_INDICATOR_LVL3, | |
3706 CIND_SIGNAL_INDICATOR_LVL4, | |
3707 CIND_SIGNAL_INDICATOR_LVL5, | |
3708 CIND_SIGNAL_INDICATOR_TYPE_MAX | |
3709 } T_ACI_CIND_SIGNAL_TYPE; | |
3710 | |
3711 typedef enum | |
3712 { | |
3713 CIND_SMSFULL_INDICATOR_INVALID = -1, | |
3714 CIND_SMSFULL_INDICATOR_MEMAVAIL, | |
3715 CIND_SMSFULL_INDICATOR_MEMFULL, | |
3716 CIND_SMSFULL_INDICATOR_MAX | |
3717 } T_ACI_CIND_SMSFULL_TYPE; | |
3718 | |
3719 typedef struct | |
3720 { | |
3721 T_ACI_CIND_SIGNAL_TYPE sCindSignalParam; | |
3722 T_ACI_CIND_SMSFULL_TYPE sCindSmsFullParam; | |
3723 } T_ACI_MM_CIND_VAL_TYPE; | |
3724 | |
3725 typedef enum | |
3726 { | |
3727 CMER_MODE_INVALID = -1, | |
3728 CMER_MODE_0, | |
3729 CMER_MODE_1, | |
3730 CMER_MODE_2, | |
3731 CMER_MODE_TYPE_MAX | |
3732 } T_ACI_CMER_MODE_TYPE; | |
3733 | |
3734 typedef enum | |
3735 { | |
3736 CMER_INDICATOR_INVALID = -1, | |
3737 CMER_INDICATOR_0, | |
3738 CMER_INDICATOR_1, | |
3739 CMER_INDICATOR_2, | |
3740 CMER_INDICATOR_TYPE_MAX | |
3741 } T_ACI_CMER_IND_TYPE; | |
3742 | |
3743 typedef enum | |
3744 { | |
3745 CMER_BFR_INVALID = -1, | |
3746 CMER_BFR_0, | |
3747 CMER_BFR_1, | |
3748 CMER_BFR_TYPE_MAX | |
3749 } T_ACI_CMER_BFR_TYPE; | |
3750 | |
3751 typedef struct | |
3752 { | |
3753 T_ACI_CMER_MODE_TYPE sCmerModeParam; | |
3754 T_ACI_CMER_IND_TYPE sCmerIndParam; | |
3755 T_ACI_CMER_BFR_TYPE sCmerBfrParam; | |
3756 } T_ACI_MM_CMER_VAL_TYPE; | |
3757 | |
3758 typedef struct | |
3759 { | |
3760 T_ACI_MM_CIND_VAL_TYPE sMmCINDSettings; | |
3761 T_ACI_MM_CMER_VAL_TYPE sMmCMERSettings; | |
3762 } T_ACI_IND_MODE ; | |
3763 | |
3764 /* ------ %CSCN - typedefs -------------------------------------- */ | |
3765 /* PSA facility function parameter enums */ | |
3766 typedef enum | |
3767 { | |
3768 CSCN_FACILITY_DIRECTION_INVALID = -1, | |
3769 CSCN_FACILITY_DIRECTION_IN = 0, | |
3770 CSCN_FACILITY_DIRECTION_OUT, | |
3771 CSCN_FACILITY_DIRECTION_BOTH, | |
3772 CSCN_FACILITY_DIRECTION_MAX | |
3773 } T_ACI_FAC_DIR; | |
3774 | |
3775 typedef enum | |
3776 { | |
3777 CSCN_FACILITY_TRANS_TYPE_BEGIN = 0, | |
3778 CSCN_FACILITY_TRANS_TYPE, | |
3779 CSCN_FACILITY_TRANS_TYPE_END, | |
3780 CSCN_FACILITY_TRANS_TYPE_MAX | |
3781 } T_ACI_FAC_TRANS_TYPE; | |
3782 | |
3783 /* CC shared parameter types */ | |
3784 typedef enum | |
3785 { | |
3786 CC_CSCN_MOD_STATE_INVALID = -1, | |
3787 CC_CSCN_MOD_STATE_OFF, | |
3788 CC_CSCN_MOD_STATE_ON, | |
3789 CC_CSCN_MOD_STATE_MAX | |
3790 } T_ACI_CC_CSCN_MOD_STATE; | |
3791 | |
3792 typedef enum | |
3793 { | |
3794 CC_CSCN_MOD_DIR_INVALID = -1, | |
3795 CC_CSCN_MOD_DIR_IN, | |
3796 CC_CSCN_MOD_DIR_OUT, | |
3797 CC_CSCN_MOD_DIR_BOTH, | |
3798 CC_CSCN_MOD_DIR_MAX | |
3799 } T_ACI_CC_CSCN_MOD_DIRECTION; | |
3800 | |
3801 typedef struct | |
3802 { | |
3803 T_ACI_CC_CSCN_MOD_STATE CcCSCNModeState; | |
3804 T_ACI_CC_CSCN_MOD_DIRECTION CcCSCNModeDirection; | |
3805 } T_ACI_CC_CSCN_MOD; | |
3806 | |
3807 /* SS shared parameter types */ | |
3808 typedef enum | |
3809 { | |
3810 SS_CSCN_MOD_STATE_INVALID = -1, | |
3811 SS_CSCN_MOD_STATE_OFF, | |
3812 SS_CSCN_MOD_STATE_ON, | |
3813 SS_CSCN_MOD_STATE_MAX | |
3814 } T_ACI_SS_CSCN_MOD_STATE; | |
3815 | |
3816 typedef enum | |
3817 { | |
3818 SS_CSCN_MOD_DIR_INVALID = -1, | |
3819 SS_CSCN_MOD_DIR_IN, | |
3820 SS_CSCN_MOD_DIR_OUT, | |
3821 SS_CSCN_MOD_DIR_BOTH, | |
3822 SS_CSCN_MOD_DIR_MAX | |
3823 } T_ACI_SS_CSCN_MOD_DIRECTION; | |
3824 | |
3825 typedef struct | |
3826 { | |
3827 T_ACI_SS_CSCN_MOD_STATE SsCSCNModeState; | |
3828 T_ACI_SS_CSCN_MOD_DIRECTION SsCSCNModeDirection; | |
3829 } T_ACI_SS_CSCN_MOD; | |
3830 | |
3831 /* ------ %CPRI - typedefs -------------------------------------- */ | |
3832 | |
3833 typedef enum /* ciphering indication state */ | |
3834 { | |
3835 CI_DONT_SHOW = 0, /* don't show CI, CI enabled */ | |
3836 CI_SHOW, /* show CI, CI enabled */ | |
3837 CI_DISABLED /* CI disabled */ | |
3838 } T_CI_STAT; | |
3839 | |
3840 /* ------ %CPRSM - typedefs -------------------------------------- */ | |
3841 | |
3842 typedef enum | |
3843 { | |
3844 CPRSM_MOD_NotPresent = -1, | |
3845 CPRSM_MOD_Resume = 0, | |
3846 CPRSM_MOD_Pause = 1 | |
3847 } T_ACI_CPRSM_MOD; | |
3848 | |
3849 /* ------ %CCUST - typedefs -------------------------------------- */ | |
3850 | |
3851 typedef enum { | |
3852 CUST_NORMAL_BEHAVIOUR = 0, | |
3853 CUST_MODE_BEHAVIOUR_1 | |
3854 } T_CUST_MOD; | |
3855 | |
3856 /* ------ %SATCC - typedefs -------------------------------------- */ | |
3857 | |
3858 typedef enum { | |
3859 SATCC_CONTROL_BY_SIM_INACTIVE = 0, | |
3860 SATCC_CONTROL_BY_SIM_ACTIVE | |
3861 } T_SAT_CC_MOD; | |
3862 | |
3863 | |
3864 /* ------ %SECS - typedefs -------------------------------------- */ | |
3865 | |
3866 | |
3867 typedef enum | |
3868 { | |
3869 SECS_STA_NotPresent = -1, | |
3870 SECS_STA_Disable = 0, | |
3871 SECS_STA_Enable = 1 | |
3872 } T_ACI_SECS_STA; | |
3873 | |
3874 /*--------The following are stucture typedefs and bitfield definis specifically used for AT+NRG=?------*/ | |
3875 | |
3876 typedef enum | |
3877 { | |
3878 NRG_REG_NotPresent = 0, | |
3879 NRG_REG_Auto = 1, | |
3880 NRG_REG_Manual = 2, | |
3881 NRG_REG_Dereg = 4, | |
3882 NRG_REG_SetOnly = 8, | |
3883 NRG_REG_Both = 16 | |
3884 } | |
3885 T_ACI_NRG_REG; | |
3886 | |
3887 typedef enum | |
3888 { | |
3889 NRG_SRV_NotPresent = 0, | |
3890 NRG_SRV_Full = 1, | |
3891 NRG_SRV_Limited = 2, | |
3892 NRG_SRV_NoSrv = 4, | |
3893 NRG_SRV_SetRegModeOnly = 8 | |
3894 } | |
3895 T_ACI_NRG_SRV; | |
3896 | |
3897 typedef enum | |
3898 { | |
3899 NRG_OPR_NotPresent = 0, | |
3900 NRG_OPR_Long = 1, | |
3901 NRG_OPR_Short = 2, | |
3902 NRG_OPR_Numeric = 4 | |
3903 } | |
3904 T_ACI_NRG_OPR; | |
3905 | |
3906 typedef struct | |
3907 { | |
3908 T_ACI_NRG_REG reg_mode; | |
3909 T_ACI_NRG_SRV srv_mode; | |
3910 T_ACI_NRG_OPR opr_frmt; | |
3911 } | |
3912 T_ACI_NRG; | |
3913 | |
3914 | |
3915 /*------End of typedefs for AT+NRG=?---------------------------------*/ | |
3916 | |
3917 /* %COPN typedefs */ | |
3918 | |
3919 typedef enum | |
3920 { | |
3921 Read_ROM_TABLE = 0, | |
3922 Read_EONS = 1, | |
3923 Read_CPHS = 2, | |
3924 Read_INVALID = 255 | |
3925 } | |
3926 T_ACI_ORIGIN_READ; | |
3927 | |
3928 | |
3929 /* -------- %SATN Control By SIM Type indications ------------------*/ | |
3930 | |
3931 typedef enum | |
3932 { | |
3933 SATN_CNTRL_BY_SIM_Not_Present = -1, | |
3934 SATN_CNTRL_BY_SIM_CALL = 0, | |
3935 SATN_CNTRL_BY_SIM_SS = 1, | |
3936 SATN_CNTRL_BY_SIM_USSD = 2, | |
3937 SATN_CNTRL_BY_SIM_SMS = 3 | |
3938 } T_ACI_SATN_CNTRL_TYPE; | |
3939 | |
3940 /* %CUSCFG */ | |
3941 | |
3942 typedef enum | |
3943 { | |
3944 CUSCFG_FAC_Not_Present = 0, | |
3945 CUSCFG_FAC_MO_SM_Control, | |
3946 CUSCFG_FAC_MO_Call_Control, | |
3947 CUSCFG_FAC_MO_SS_Control, | |
3948 CUSCFG_FAC_MO_USSD_Control, | |
3949 CUSCFG_FAC_2_Digit_Call, | |
3950 CUSCFG_FAC_Ext_USSD_Res | |
3951 } T_ACI_CUSCFG_FAC; | |
3952 | |
3953 typedef enum | |
3954 { | |
3955 CUSCFG_MOD_Not_Present = -1, | |
3956 CUSCFG_MOD_Disable, | |
3957 CUSCFG_MOD_Enable, | |
3958 CUSCFG_MOD_Query | |
3959 } T_ACI_CUSCFG_MOD; | |
3960 | |
3961 typedef enum | |
3962 { | |
3963 CUSCFG_STAT_Not_present = -1, | |
3964 CUSCFG_STAT_Disabled, | |
3965 CUSCFG_STAT_Enabled | |
3966 } T_ACI_CUSCFG_STAT; | |
3967 | |
3968 typedef struct | |
3969 { | |
3970 UBYTE MO_SM_Control_SIM; | |
3971 UBYTE MO_Call_Control_SIM; | |
3972 UBYTE MO_SS_Control_SIM; | |
3973 UBYTE MO_USSD_Control_SIM; | |
3974 UBYTE Two_digit_MO_Call; | |
3975 UBYTE Ext_USSD_Response; | |
3976 } T_ACI_CUSCFG_PARAMS; | |
3977 | |
3978 typedef enum | |
3979 { | |
3980 CUSDR_RES_Not_Present = -1, | |
3981 CUSDR_RES_Ok, | |
3982 CUSDR_RES_Unknown_Alphabet, | |
3983 CUSDR_RES_Busy | |
3984 } T_ACI_CUSDR_RES; | |
3985 | |
3986 /*==== PROTOTYPES =================================================*/ | |
3987 | |
3988 EXTERN T_ACI_RETURN sAT_PercentALS( T_ACI_CMD_SRC srcId, | |
3989 T_ACI_ALS_MOD mode ); | |
3990 EXTERN T_ACI_RETURN qAT_PercentALS( T_ACI_CMD_SRC srcId, | |
3991 T_ACI_ALS_MOD *mode ); | |
3992 EXTERN T_ACI_RETURN tAT_PercentALS( T_ACI_CMD_SRC srcId, | |
3993 T_ACI_ALS_MOD *ALSmode); | |
3994 EXTERN T_ACI_RETURN sAT_PlusCFUN ( T_ACI_CMD_SRC srcId, | |
3995 T_ACI_CFUN_FUN fun, | |
3996 T_ACI_CFUN_RST rst ); | |
3997 EXTERN T_ACI_RETURN qAT_PlusCFUN ( T_ACI_CMD_SRC srcId, | |
3998 T_ACI_CFUN_FUN *fun ); | |
3999 EXTERN T_ACI_RETURN sAT_PlusCPIN ( T_ACI_CMD_SRC srcId, | |
4000 CHAR * pin, | |
4001 CHAR * newpin ); | |
4002 EXTERN T_ACI_RETURN sAT_PercentSECP ( T_ACI_CMD_SRC srcId, | |
4003 CHAR * pin, | |
4004 CHAR * newpin ); | |
4005 | |
4006 EXTERN T_ACI_RETURN sAT_PercentSECS ( T_ACI_CMD_SRC srcId, | |
4007 T_ACI_SECS_STA securityState, | |
4008 CHAR * code ); | |
4009 | |
4010 EXTERN T_ACI_RETURN qAT_PercentSECS ( T_ACI_CMD_SRC srcId, | |
4011 T_ACI_SECS_STA *status); | |
4012 | |
4013 #ifdef FF_DUAL_SIM | |
4014 EXTERN T_ACI_RETURN sAT_PercentSIM ( T_ACI_CMD_SRC srcId, | |
4015 UBYTE sim_num); | |
4016 EXTERN T_ACI_RETURN qAT_PercentSIM ( T_ACI_CMD_SRC srcId, | |
4017 UBYTE *sim_num ); | |
4018 #endif /*FF_DUAL_SIM*/ | |
4019 EXTERN T_ACI_RETURN qAT_PlusCPIN (T_ACI_CMD_SRC srcId, | |
4020 T_ACI_CPIN_RSLT *code); | |
4021 EXTERN T_ACI_RETURN qAT_PlusCREG ( T_ACI_CMD_SRC srcId, | |
4022 T_ACI_CREG_STAT * stat, | |
4023 USHORT *lac, | |
4024 USHORT *cid); | |
4025 EXTERN T_ACI_RETURN qAT_PercentCREG ( T_ACI_CMD_SRC srcId, | |
4026 T_ACI_CREG_STAT *stat, | |
4027 USHORT *lac, | |
4028 USHORT *ci, | |
4029 T_ACI_P_CREG_GPRS_IND *gprs_ind ); | |
4030 EXTERN T_ACI_RETURN sAT_PlusCOPS ( T_ACI_CMD_SRC srcId, | |
4031 T_ACI_COPS_MOD mode, | |
4032 T_ACI_COPS_FRMT format, | |
4033 CHAR * oper ); | |
4034 EXTERN T_ACI_RETURN qAT_PlusCOPS ( T_ACI_CMD_SRC srcId, | |
4035 T_ACI_COPS_MOD * mode, | |
4036 T_ACI_COPS_FRMT * format, | |
4037 CHAR * oper); | |
4038 EXTERN T_ACI_RETURN tAT_PlusCOPS ( T_ACI_CMD_SRC srcId, | |
4039 SHORT startIdx, | |
4040 SHORT * lastIdx, | |
4041 T_ACI_COPS_OPDESC * operLst); | |
4042 | |
4043 EXTERN T_ACI_RETURN tAT_PercentCOPS ( T_ACI_CMD_SRC srcId, | |
4044 SHORT startIdx, | |
4045 SHORT * lastIdx, | |
4046 T_ACI_COPS_OPDESC * operLst); | |
4047 | |
4048 EXTERN T_ACI_RETURN sAT_PercentCOPS ( T_ACI_CMD_SRC srcId, | |
4049 T_ACI_COPS_MOD mode, | |
4050 T_ACI_COPS_FRMT format, | |
4051 CHAR * oper ); | |
4052 EXTERN T_ACI_RETURN qAT_PercentCOPS ( T_ACI_CMD_SRC srcId, | |
4053 T_ACI_COPS_MOD * mode, | |
4054 T_ACI_COPS_FRMT * format, | |
4055 T_ACI_COPS_SVST * svrStatus, | |
4056 CHAR * oper ); | |
4057 | |
4058 | |
4059 | |
4060 EXTERN T_ACI_RETURN sAT_PlusCPOL ( T_ACI_CMD_SRC srcId, | |
4061 SHORT index, | |
4062 T_ACI_CPOL_FRMT format, | |
4063 CHAR * oper, | |
4064 SHORT index2, | |
4065 T_ACI_CPOL_MOD mode ); | |
4066 EXTERN T_ACI_RETURN qAT_PlusCPOL ( T_ACI_CMD_SRC srcId, | |
4067 SHORT startIdx, | |
4068 SHORT *lastIdx, | |
4069 T_ACI_CPOL_OPDESC *operLst, | |
4070 T_ACI_CPOL_MOD mode ); | |
4071 EXTERN T_ACI_RETURN tAT_PlusCPOL ( T_ACI_CMD_SRC srcId, | |
4072 SHORT * lastIdx, | |
4073 SHORT * usdNtry ); | |
4074 EXTERN T_ACI_RETURN qAT_PlusCLIP ( T_ACI_CMD_SRC srcId, | |
4075 T_ACI_CLIP_STAT * stat); | |
4076 EXTERN T_ACI_RETURN sAT_PlusCLIR ( T_ACI_CMD_SRC srcId, | |
4077 T_ACI_CLIR_MOD mode ); | |
4078 EXTERN T_ACI_RETURN qAT_PlusCLIR ( T_ACI_CMD_SRC srcId, | |
4079 T_ACI_CLIR_MOD * mode, | |
4080 T_ACI_CLIR_STAT * stat); | |
4081 EXTERN T_ACI_RETURN qAT_PercentCLIR ( T_ACI_CMD_SRC srcId, | |
4082 T_ACI_CLIR_MOD * mode); | |
4083 EXTERN T_ACI_RETURN qAT_PlusCOLP ( T_ACI_CMD_SRC srcId, | |
4084 T_ACI_COLP_STAT * stat); | |
4085 EXTERN T_ACI_RETURN sAT_PercentCTTY (T_ACI_CMD_SRC srcId, | |
4086 T_ACI_CTTY_MOD mode, | |
4087 T_ACI_CTTY_REQ req); | |
4088 EXTERN T_ACI_RETURN qAT_PercentCTTY (T_ACI_CMD_SRC srcId, | |
4089 T_ACI_CTTY_MOD *mode, | |
4090 T_ACI_CTTY_REQ *req, | |
4091 T_ACI_CTTY_STAT *stat, | |
4092 T_ACI_CTTY_TRX *trx); | |
4093 EXTERN T_ACI_RETURN sAT_PlusCMOD ( T_ACI_CMD_SRC srcId, | |
4094 T_ACI_CMOD_MOD mode ); | |
4095 EXTERN T_ACI_RETURN qAT_PlusCMOD ( T_ACI_CMD_SRC srcId, | |
4096 T_ACI_CMOD_MOD * mode ); | |
4097 EXTERN T_ACI_RETURN sAT_PlusCBST ( T_ACI_CMD_SRC srcId, | |
4098 T_ACI_BS_SPEED speed, | |
4099 T_ACI_CBST_NAM name, | |
4100 T_ACI_CBST_CE ce); | |
4101 EXTERN T_ACI_RETURN qAT_PlusCBST ( T_ACI_CMD_SRC srcId, | |
4102 T_ACI_BS_SPEED * speed, | |
4103 T_ACI_CBST_NAM * name, | |
4104 T_ACI_CBST_CE * ce); | |
4105 EXTERN T_ACI_RETURN sAT_PlusCRLP ( T_ACI_CMD_SRC srcId, | |
4106 SHORT iws, SHORT mws, | |
4107 SHORT t1, SHORT n2); | |
4108 EXTERN T_ACI_RETURN qAT_PlusCRLP ( T_ACI_CMD_SRC srcId, | |
4109 SHORT* iws, SHORT* mws, | |
4110 SHORT* t1, SHORT* n2); | |
4111 EXTERN T_ACI_RETURN sAT_PlusDS ( T_ACI_CMD_SRC srcId, | |
4112 T_ACI_DS_DIR dir, | |
4113 T_ACI_DS_COMP comp, | |
4114 LONG maxDict, | |
4115 SHORT maxStr ); | |
4116 EXTERN T_ACI_RETURN qAT_PlusDS ( T_ACI_CMD_SRC srcId, | |
4117 T_ACI_DS_DIR* dir, | |
4118 T_ACI_DS_COMP* comp, | |
4119 LONG* maxDict, | |
4120 SHORT* maxStr ); | |
4121 EXTERN T_ACI_RETURN sAT_PlusGCI ( T_ACI_CMD_SRC srcId, | |
4122 UBYTE country); | |
4123 EXTERN T_ACI_RETURN qAT_PlusGCI ( T_ACI_CMD_SRC srcId, | |
4124 UBYTE *country); | |
4125 #ifdef NO_ASCIIZ | |
4126 EXTERN T_ACI_RETURN sAT_Dm ( T_ACI_CMD_SRC srcId, | |
4127 T_ACI_PB_TEXT *str, | |
4128 T_ACI_PB_STOR mem, | |
4129 SHORT index, | |
4130 T_ACI_D_CLIR_OVRD clirOvrd, | |
4131 T_ACI_D_CUG_CTRL cugCtrl, | |
4132 T_ACI_D_TOC callType ); | |
4133 #else /* ifdef NO_ASCIIZ */ | |
4134 EXTERN T_ACI_RETURN sAT_Dm ( T_ACI_CMD_SRC srcId, | |
4135 CHAR *str, | |
4136 T_ACI_PB_STOR mem, | |
4137 SHORT index, | |
4138 T_ACI_D_CLIR_OVRD clirOvrd, | |
4139 T_ACI_D_CUG_CTRL cugCtrl, | |
4140 T_ACI_D_TOC callType ); | |
4141 #endif /* ifdef NO_ASCIIZ */ | |
4142 EXTERN T_ACI_RETURN sAT_Dn ( T_ACI_CMD_SRC srcId, | |
4143 CHAR * number, | |
4144 T_ACI_D_CLIR_OVRD clirOvrd, | |
4145 T_ACI_D_CUG_CTRL cugCtrl, | |
4146 T_ACI_D_TOC callType ); | |
4147 EXTERN T_ACI_RETURN sAT_A ( T_ACI_CMD_SRC srcId ); | |
4148 EXTERN T_ACI_RETURN sAT_H ( T_ACI_CMD_SRC srcId ); | |
4149 EXTERN T_ACI_RETURN sAT_O ( T_ACI_CMD_SRC srcId ); | |
4150 EXTERN T_ACI_RETURN sAT_Abort ( T_ACI_CMD_SRC srcId, | |
4151 T_ACI_AT_CMD cmd); | |
4152 EXTERN T_ACI_RETURN sAT_end_ussd ( T_ACI_CMD_SRC srcId ); | |
4153 EXTERN T_ACI_ERR_DESC qAT_ErrDesc ( void ); | |
4154 EXTERN T_ACI_RETURN sAT_PlusCSTA ( T_ACI_CMD_SRC srcId, | |
4155 T_ACI_TOA * type); | |
4156 EXTERN T_ACI_RETURN qAT_PlusCSTA ( T_ACI_CMD_SRC srcId, | |
4157 T_ACI_TOA * type); | |
4158 EXTERN T_ACI_RETURN sAT_PlusCHUP ( T_ACI_CMD_SRC srcId); | |
4159 | |
4160 #ifdef SIM_PERS | |
4161 /*For %MEPD -for querying ME Personalisation Data... | |
4162 Added on 11/03/2005 */ | |
4163 | |
4164 EXTERN T_ACI_RETURN qAT_PercentMEPD( T_ACI_CMD_SRC srcId, | |
4165 T_SUP_INFO *sup_info ); | |
4166 #endif | |
4167 EXTERN T_ACI_RETURN sAT_PlusCLCK ( T_ACI_CMD_SRC srcId, | |
4168 T_ACI_CLCK_FAC fac, | |
4169 T_ACI_CLCK_MOD mode, | |
4170 CHAR * passwd, | |
4171 T_ACI_CLASS class_type); | |
4172 EXTERN T_ACI_RETURN qAT_PlusCLCK ( T_ACI_CMD_SRC srcId, | |
4173 T_ACI_CLCK_FAC fac, | |
4174 T_ACI_CLASS class_type, | |
4175 T_ACI_CLSSTAT *clsStat); | |
4176 /*QAT_PERCENTCLCK add for Simlock in Riviear MFW | |
4177 | |
4178 Added by Shen,Chao April 16th, 2003 | |
4179 */ | |
4180 EXTERN T_ACI_RETURN qAT_PercentCLCK ( T_ACI_CMD_SRC srcId, | |
4181 T_ACI_CLCK_FAC fac, | |
4182 T_ACI_CLASS class_type, | |
4183 T_ACI_CLSSTAT *clsStat, | |
4184 UBYTE *simClockStat); | |
4185 | |
4186 EXTERN T_ACI_RETURN sAT_PlusCPWD ( T_ACI_CMD_SRC srcId, | |
4187 T_ACI_CPWD_FAC fac, | |
4188 CHAR * oldpwd, | |
4189 CHAR * newpwd); | |
4190 EXTERN T_ACI_RETURN sAT_PlusCCFC ( T_ACI_CMD_SRC srcId, | |
4191 T_ACI_CCFC_RSN reason, | |
4192 T_ACI_CCFC_MOD mode, | |
4193 CHAR* number, | |
4194 T_ACI_TOA* type, | |
4195 T_ACI_CLASS class_type, | |
4196 CHAR* subaddr, | |
4197 T_ACI_TOS* satype, | |
4198 SHORT time); | |
4199 EXTERN T_ACI_RETURN qAT_PlusCCFC ( T_ACI_CMD_SRC srcId, | |
4200 T_ACI_CCFC_RSN reason, | |
4201 T_ACI_CLASS class_type); | |
4202 EXTERN T_ACI_RETURN sAT_PlusCCUG ( T_ACI_CMD_SRC srcId, | |
4203 T_ACI_CCUG_MOD mode, | |
4204 T_ACI_CCUG_IDX index, | |
4205 T_ACI_CCUG_INFO info); | |
4206 EXTERN T_ACI_RETURN qAT_PlusCCUG ( T_ACI_CMD_SRC srcId, | |
4207 T_ACI_CCUG_MOD *mode, | |
4208 T_ACI_CCUG_IDX *index, | |
4209 T_ACI_CCUG_INFO *info); | |
4210 EXTERN T_ACI_RETURN sAT_PlusCTFR ( T_ACI_CMD_SRC srcId, | |
4211 CHAR *number, | |
4212 T_ACI_TOA *type, | |
4213 CHAR *subaddr, | |
4214 T_ACI_TOS *satype); | |
4215 EXTERN T_ACI_RETURN sAT_PlusCCWA ( T_ACI_CMD_SRC srcId, | |
4216 T_ACI_CCWA_MOD mode, | |
4217 T_ACI_CLASS class_type); | |
4218 EXTERN T_ACI_RETURN qAT_PlusCCWA ( T_ACI_CMD_SRC srcId, | |
4219 T_ACI_CLASS class_type); | |
4220 EXTERN T_ACI_RETURN sAT_PlusVTS ( T_ACI_CMD_SRC srcId, | |
4221 CHAR dtmf, | |
4222 T_ACI_VTS_MOD mode); | |
4223 EXTERN T_ACI_RETURN sAT_PlusCHLD ( T_ACI_CMD_SRC srcId, | |
4224 T_ACI_CHLD_MOD mode, | |
4225 CHAR *call); | |
4226 EXTERN T_ACI_RETURN sAT_PercentCHLD ( T_ACI_CMD_SRC srcId, | |
4227 T_ACI_CHLD_MOD mode, | |
4228 CHAR *call); | |
4229 EXTERN T_ACI_RETURN sAT_PlusIPR ( T_ACI_CMD_SRC srcId, | |
4230 T_ACI_BD_RATE rate); | |
4231 EXTERN T_ACI_RETURN qAT_PlusIPR ( T_ACI_CMD_SRC srcId, | |
4232 T_ACI_BD_RATE *rate); | |
4233 EXTERN T_ACI_RETURN sAT_PlusICF ( T_ACI_CMD_SRC srcId, | |
4234 T_ACI_BS_FRM format, | |
4235 T_ACI_BS_PAR parity); | |
4236 EXTERN T_ACI_RETURN qAT_PlusICF ( T_ACI_CMD_SRC srcId, | |
4237 T_ACI_BS_FRM *format, | |
4238 T_ACI_BS_PAR *parity); | |
4239 EXTERN T_ACI_RETURN sAT_PlusIFC ( T_ACI_CMD_SRC srcId, | |
4240 T_ACI_RX_FLOW_CTRL DCE_by_DTE, | |
4241 T_ACI_RX_FLOW_CTRL DTE_by_DCE ); | |
4242 EXTERN T_ACI_RETURN qAT_PlusIFC ( T_ACI_CMD_SRC srcId, | |
4243 T_ACI_RX_FLOW_CTRL *DCE_by_DTE, | |
4244 T_ACI_RX_FLOW_CTRL *DTE_by_DCE ); | |
4245 EXTERN T_ACI_RETURN sAT_AndD ( T_ACI_CMD_SRC srcId, | |
4246 UBYTE value); | |
4247 EXTERN T_ACI_RETURN qAT_AndD ( T_ACI_CMD_SRC srcId, | |
4248 UBYTE *value); | |
4249 EXTERN T_ACI_RETURN qAT_PlusCEER ( T_ACI_CMD_SRC srcId, | |
4250 USHORT *cause); | |
4251 EXTERN T_ACI_RETURN qAT_PlusCPAS ( T_ACI_CMD_SRC srcId, | |
4252 T_ACI_CPAS_PAS *pas); | |
4253 | |
4254 EXTERN T_ACI_RETURN sAT_PlusCLAE ( T_ACI_CMD_SRC srcId, | |
4255 T_ACI_CLAE_MOD mode ); | |
4256 | |
4257 EXTERN T_ACI_RETURN qAT_PlusCLAE ( T_ACI_CMD_SRC srcId, | |
4258 T_ACI_CLAE_MOD * mode); | |
4259 | |
4260 EXTERN T_ACI_RETURN sAT_PlusCUSD ( T_ACI_CMD_SRC srcId, | |
4261 T_ACI_USSD_DATA *str, | |
4262 SHORT dcs); | |
4263 EXTERN T_ACI_RETURN qAT_PlusCAOC ( T_ACI_CMD_SRC srcId, | |
4264 LONG *ccm); | |
4265 EXTERN T_ACI_RETURN qAT_PlusCLCC ( T_ACI_CMD_SRC srcId, | |
4266 T_ACI_CLCC_CALDESC *calLst); | |
4267 EXTERN T_ACI_RETURN qAT_PercentCLCC ( T_ACI_CMD_SRC srcId, | |
4268 T_ACI_CLCC_CALDESC *calLst); | |
4269 EXTERN T_ACI_RETURN qAT_PlusCOPN ( T_ACI_CMD_SRC srcId, | |
4270 T_ACI_COPN_LID lstId, | |
4271 SHORT startIdx, | |
4272 SHORT *lastIdx, | |
4273 T_ACI_COPN_OPDESC *operLst); | |
4274 EXTERN T_ACI_RETURN qAT_PercentCOPN( T_ACI_CMD_SRC srcId, | |
4275 T_ACI_COPS_FRMT format, | |
4276 CHAR *opr, | |
4277 T_ACI_OPER_NTRY *oper_ntry); | |
4278 EXTERN T_ACI_RETURN sAT_PlusCACM ( T_ACI_CMD_SRC srcId, | |
4279 CHAR *passwd); | |
4280 EXTERN T_ACI_RETURN qAT_PlusCACM ( T_ACI_CMD_SRC srcId, | |
4281 LONG *acm); | |
4282 EXTERN T_ACI_RETURN sAT_PlusCAMM ( T_ACI_CMD_SRC srcId, | |
4283 LONG acmmax, | |
4284 CHAR *passwd); | |
4285 EXTERN T_ACI_RETURN qAT_PlusCAMM ( T_ACI_CMD_SRC srcId, | |
4286 LONG *acmmax); | |
4287 EXTERN T_ACI_RETURN sAT_PlusCPUC ( T_ACI_CMD_SRC srcId, | |
4288 CHAR *cur, | |
4289 CHAR *ppu, | |
4290 CHAR *passwd); | |
4291 EXTERN T_ACI_RETURN qAT_PlusCPUC ( T_ACI_CMD_SRC srcId, | |
4292 CHAR *cur, | |
4293 CHAR *ppu); | |
4294 EXTERN T_ACI_RETURN qAT_PlusCIMI ( T_ACI_CMD_SRC srcId, | |
4295 CHAR *imsi); | |
4296 EXTERN T_ACI_RETURN sAT_PlusCSNS ( T_ACI_CMD_SRC srcId, | |
4297 T_ACI_CSNS_MOD mode); | |
4298 EXTERN T_ACI_RETURN qAT_PlusCSNS ( T_ACI_CMD_SRC srcId, | |
4299 T_ACI_CSNS_MOD *mode); | |
4300 EXTERN T_ACI_RETURN sAT_PlusWS46 (T_ACI_CMD_SRC srcId, | |
4301 T_ACI_WS46_MOD mode ); | |
4302 EXTERN T_ACI_RETURN qAT_PlusWS46 (T_ACI_CMD_SRC srcId, | |
4303 T_ACI_WS46_MOD *mode ); | |
4304 EXTERN T_ACI_RETURN sAT_AndF ( T_ACI_CMD_SRC srcId, | |
4305 SHORT value); | |
4306 EXTERN T_ACI_RETURN sAT_AndC ( T_ACI_CMD_SRC srcId, | |
4307 T_ACI_DCD_MOD value); | |
4308 EXTERN T_ACI_RETURN qAT_AndC ( T_ACI_CMD_SRC srcId, | |
4309 T_ACI_DCD_MOD *value); | |
4310 EXTERN T_ACI_RETURN sAT_Z ( T_ACI_CMD_SRC srcId, | |
4311 SHORT value); | |
4312 EXTERN T_ACI_RETURN qAT_PlusCNUM ( T_ACI_CMD_SRC srcId, | |
4313 T_ACI_CNUM_MOD mode ); | |
4314 EXTERN T_ACI_RETURN sAT_PlusCRSM ( T_ACI_CMD_SRC srcId, | |
4315 T_ACI_CRSM_CMD cmd, | |
4316 SHORT fileId, | |
4317 SHORT p1, | |
4318 SHORT p2, | |
4319 SHORT p3, | |
4320 SHORT dataLen, | |
4321 UBYTE *data ); | |
4322 EXTERN T_ACI_RETURN sAT_PlusCSIM ( T_ACI_CMD_SRC srcId, | |
4323 USHORT dataLen, | |
4324 UBYTE *data ); | |
4325 EXTERN T_ACI_RETURN qAT_PercentATR( T_ACI_CMD_SRC srcId, | |
4326 UBYTE *phase, | |
4327 UBYTE *atr_len, | |
4328 UBYTE *atr_info); | |
4329 EXTERN T_ACI_RETURN sAT_PlusCMUX ( T_ACI_CMD_SRC srcId, | |
4330 UBYTE mode, | |
4331 UBYTE subset, | |
4332 UBYTE port_speed, | |
4333 USHORT N1, | |
4334 UBYTE T1, | |
4335 UBYTE N2, | |
4336 UBYTE T2, | |
4337 UBYTE T3 ); | |
4338 EXTERN T_ACI_RETURN qAT_PlusCMUX ( T_ACI_CMD_SRC srcId, | |
4339 UBYTE *mode, | |
4340 UBYTE *subset, | |
4341 UBYTE *port_speed, | |
4342 USHORT *N1, | |
4343 UBYTE *T1, | |
4344 UBYTE *N2, | |
4345 UBYTE *T2, | |
4346 UBYTE *T3 ); | |
4347 EXTERN T_ACI_RETURN qAT_PercentCAL( T_ACI_CMD_SRC srcId, | |
4348 T_ACI_CAL_ENTR *callTable ); | |
4349 EXTERN T_ACI_RETURN sAT_PercentNRG( T_ACI_CMD_SRC srcId, | |
4350 T_ACI_NRG_RGMD regMode, | |
4351 T_ACI_NRG_SVMD srvMode, | |
4352 T_ACI_NRG_FRMT oprFrmt, | |
4353 CHAR *opr ); | |
4354 EXTERN T_ACI_RETURN qAT_PercentNRG( T_ACI_CMD_SRC srcId, | |
4355 T_ACI_NRG_RGMD *regMode, | |
4356 T_ACI_NRG_SVMD *srvMode, | |
4357 T_ACI_NRG_FRMT *oprFrmt, | |
4358 T_ACI_NRG_SVMD *srvStat, | |
4359 CHAR *oper); | |
4360 | |
4361 EXTERN T_ACI_BD_RATE convert_mux_port_speed (UBYTE mux_port_speed); | |
4362 | |
4363 EXTERN T_ACI_RETURN tAT_PercentNRG( T_ACI_CMD_SRC srcId, | |
4364 T_ACI_NRG *NRG_options ); | |
4365 | |
4366 /*Added by Shen,Chao for PercentCSQ*/ | |
4367 EXTERN T_ACI_RETURN sAT_PercentCSQ( T_ACI_CMD_SRC srcId, | |
4368 T_ACI_CSQ_MODE CSQmode); | |
4369 EXTERN T_ACI_RETURN qAT_PercentCSQ( T_ACI_CMD_SRC srcId, | |
4370 UBYTE *rssi, | |
4371 UBYTE *ber, | |
4372 UBYTE *actlevel); | |
4373 EXTERN T_ACI_RETURN qAT_PercentDBGINFO(T_ACI_CMD_SRC srcId, | |
4374 ULONG param, | |
4375 USHORT stor, | |
4376 USHORT *free, | |
4377 USHORT *alloc); | |
4378 | |
4379 | |
4380 EXTERN T_ACI_RETURN sAT_PercentBAND(T_ACI_CMD_SRC srcId, | |
4381 T_ACI_BAND_MODE bandMode, | |
4382 UBYTE bandType); | |
4383 EXTERN T_ACI_RETURN tAT_PercentBAND(T_ACI_CMD_SRC srcId, | |
4384 T_ACI_BAND_MODE *MaxBandMode, | |
4385 UBYTE *AllowedBands); | |
4386 EXTERN T_ACI_RETURN qAT_PercentBAND(T_ACI_CMD_SRC srcId, | |
4387 T_ACI_BAND_MODE *bandMode, | |
4388 UBYTE *bandType); | |
4389 EXTERN T_ACI_RETURN qAT_PercentCOLR( T_ACI_CMD_SRC srcId ); | |
4390 EXTERN T_ACI_RETURN sAT_PercentPVRF( T_ACI_CMD_SRC srcId, | |
4391 T_ACI_PVRF_TYPE type, | |
4392 CHAR * pin, | |
4393 CHAR * newpin ); | |
4394 EXTERN T_ACI_RETURN qAT_PercentPVRF( T_ACI_CMD_SRC srcId, | |
4395 SHORT *pn1Cnt, | |
4396 SHORT *pn2Cnt, | |
4397 SHORT *pk1Cnt, | |
4398 SHORT *pk2Cnt, | |
4399 T_ACI_PVRF_STAT *ps1, | |
4400 T_ACI_PVRF_STAT *ps2 ); | |
4401 EXTERN T_ACI_RETURN sAT_PercentSATC( T_ACI_CMD_SRC srcId, | |
4402 SHORT len, | |
4403 UBYTE * satCnfg ); | |
4404 EXTERN T_ACI_RETURN qAT_PercentSATC( T_ACI_CMD_SRC srcId, | |
4405 SHORT * len, | |
4406 UBYTE * satCnfg ); | |
4407 EXTERN T_ACI_RETURN sAT_PercentSATR( T_ACI_CMD_SRC srcId, | |
4408 SHORT len, | |
4409 UBYTE * satCmd ); | |
4410 EXTERN T_ACI_RETURN sAT_PercentSATE( T_ACI_CMD_SRC srcId, | |
4411 SHORT len, | |
4412 UBYTE * satCmd ); | |
4413 EXTERN T_ACI_RETURN sAT_PercentSATT( T_ACI_CMD_SRC srcId, | |
4414 T_ACI_SATT_CS cause); | |
4415 EXTERN T_ACI_RETURN sAT_PercentSIMEF( T_ACI_CMD_SRC srcId, | |
4416 T_ACI_SIMEF_MODE mode); | |
4417 EXTERN T_ACI_RETURN qAT_PercentSIMEF( T_ACI_CMD_SRC srcId, | |
4418 T_ACI_SIMEF_MODE *mode); | |
4419 EXTERN T_ACI_RETURN sAT_PercentEFRSLT (T_ACI_CMD_SRC srcId, | |
4420 T_ACI_EFRSLT_RES result); | |
4421 EXTERN T_ACI_RETURN sAT_PercentPBCF( T_ACI_CMD_SRC srcId, | |
4422 T_ACI_PBCF_LDN ldn, | |
4423 T_ACI_PBCF_LRN lrn, | |
4424 T_ACI_PBCF_LMN lmn ); | |
4425 EXTERN T_ACI_RETURN qAT_PercentPBCF( T_ACI_CMD_SRC srcId, | |
4426 T_ACI_PBCF_LDN *ldn, | |
4427 T_ACI_PBCF_LRN *lrn, | |
4428 T_ACI_PBCF_LMN *lmn ); | |
4429 EXTERN T_ACI_RETURN qAT_PercentCTV ( T_ACI_CMD_SRC srcId, | |
4430 LONG *ctv); | |
4431 EXTERN T_ACI_RETURN qAT_PercentCAOC( T_ACI_CMD_SRC srcId, | |
4432 CHAR *cur, | |
4433 CHAR *val); | |
4434 EXTERN T_ACI_RETURN qAT_PercentCACM( T_ACI_CMD_SRC srcId, | |
4435 CHAR *cur, | |
4436 CHAR *val); | |
4437 EXTERN T_ACI_RETURN qAT_PercentRPCT( T_ACI_CMD_SRC srcId, | |
4438 T_ACI_RPCT_VAL *rpuct); | |
4439 EXTERN T_ACI_RETURN sAT_PercentCCBS( T_ACI_CMD_SRC srcId, | |
4440 SHORT idx ); | |
4441 EXTERN T_ACI_RETURN qAT_PercentCCBS( T_ACI_CMD_SRC srcId); | |
4442 | |
4443 EXTERN T_ACI_RETURN qAT_PercentCNAP( T_ACI_CMD_SRC srcId); | |
4444 | |
4445 EXTERN T_ACI_RETURN sAT_PercentRDL(T_ACI_CMD_SRC srcId, | |
4446 T_ACI_CC_REDIAL_MODE redial_mode, | |
4447 T_ACI_CC_REDIAL_NOTIF notification); | |
4448 EXTERN T_ACI_RETURN qAT_PercentRDL ( T_ACI_CMD_SRC srcId, | |
4449 T_ACI_CC_REDIAL_MODE* redial_mode, | |
4450 T_ACI_CC_REDIAL_NOTIF* notification); | |
4451 EXTERN T_ACI_RETURN sAT_PercentRDLB(T_ACI_CMD_SRC srcId, | |
4452 T_ACI_CC_REDIAL_BLMODE blacklist_mode, | |
4453 T_ACI_CC_REDIAL_NOTIF notification); | |
4454 EXTERN T_ACI_RETURN qAT_PercentRDLB ( T_ACI_CMD_SRC srcId, | |
4455 T_ACI_CC_REDIAL_BLACKL *blackl, | |
4456 T_ACI_CC_REDIAL_NOTIF* notification); | |
4457 | |
4458 EXTERN T_ACI_RETURN qAT_PercentCSSD ( T_ACI_CMD_SRC srcId, | |
4459 UBYTE *ss_diag); | |
4460 | |
4461 EXTERN T_ACI_RETURN sAT_PercentCUST( T_ACI_CMD_SRC srcId, | |
4462 T_CUST_MOD customisation_mode); | |
4463 EXTERN T_ACI_RETURN qAT_PercentCUST( T_ACI_CMD_SRC srcId, | |
4464 T_CUST_MOD *customisation_mode); | |
4465 EXTERN T_ACI_RETURN sAT_PercentSATCC( T_ACI_CMD_SRC srcId, | |
4466 T_SAT_CC_MOD sat_cc_mode); | |
4467 EXTERN T_ACI_RETURN qAT_PercentSATCC( T_ACI_CMD_SRC srcId, | |
4468 T_SAT_CC_MOD *sat_cc_mode); | |
4469 EXTERN void rdlPrm_init(void); | |
4470 EXTERN void rdlPrm_exit(void); | |
4471 | |
4472 #ifdef DTI | |
4473 #if defined(FF_WAP) || defined(FF_TCP_IP) || defined(FF_GPF_TCPIP) || defined (FF_SAT_E) | |
4474 /*----------- WAP prototypes -----------------------------------------*/ | |
4475 | |
4476 EXTERN T_ACI_RETURN sAT_PercentWAP ( T_ACI_CMD_SRC srcId, SHORT setflag ); | |
4477 | |
4478 EXTERN T_ACI_RETURN sAT_PercentPPP ( T_ACI_CMD_SRC srcId, | |
4479 T_ACI_PPP_PROT protocol, | |
4480 CHAR *login_name, | |
4481 CHAR *pwd, | |
4482 T_ACI_PPP_CON con_type); | |
4483 GLOBAL T_ACI_RETURN qAT_PercentPPP ( UBYTE srcId, ULONG *ipaddr, | |
4484 ULONG *dns1, ULONG * ns2) ; | |
4485 #endif /* WAP || FF_TCP_IP || FF_GPF_TCPIP || FF_SAT_E */ | |
4486 #endif /* DTI */ | |
4487 | |
4488 /*----------- SMS prototypes -----------------------------------------*/ | |
4489 | |
4490 EXTERN T_ACI_RETURN sAT_PlusCRES ( T_ACI_CMD_SRC srcId, | |
4491 SHORT profile ); | |
4492 EXTERN T_ACI_RETURN tAT_PlusCRES ( T_ACI_CMD_SRC srcId, | |
4493 T_ACI_CRES *values ); | |
4494 EXTERN T_ACI_RETURN sAT_PlusCSAS ( T_ACI_CMD_SRC srcId, | |
4495 SHORT profile ); | |
4496 EXTERN T_ACI_RETURN sAT_PlusCMGW_Old ( T_ACI_CMD_SRC srcId, | |
4497 SHORT index, | |
4498 CHAR *address, | |
4499 T_ACI_TOA *toa, | |
4500 T_ACI_SMS_STAT stat, | |
4501 UBYTE msg_ref, | |
4502 T_ACI_SM_DATA *data, | |
4503 CHAR *sca, | |
4504 T_ACI_TOA *tosca, | |
4505 SHORT isReply); | |
4506 EXTERN T_ACI_RETURN sAT_PlusCSMP ( T_ACI_CMD_SRC srcId, | |
4507 SHORT fo, | |
4508 SHORT vprel, | |
4509 T_ACI_VP_ABS *vpabs, | |
4510 T_ACI_VP_ENH *vpenh, | |
4511 SHORT pid, | |
4512 SHORT dcs ); | |
4513 EXTERN T_ACI_RETURN qAT_PlusCSMP ( T_ACI_CMD_SRC srcId, | |
4514 SHORT *fo, | |
4515 SHORT *vprel, | |
4516 T_ACI_VP_ABS *vpabs, | |
4517 T_ACI_VP_ENH *vpenh, | |
4518 SHORT *pid, | |
4519 SHORT *dcs ); | |
4520 EXTERN T_ACI_RETURN sAT_PlusCSCA ( T_ACI_CMD_SRC srcId, | |
4521 CHAR *sca, | |
4522 T_ACI_TOA *tosca ); | |
4523 EXTERN T_ACI_RETURN qAT_PlusCSCA ( T_ACI_CMD_SRC srcId, | |
4524 CHAR *sca, | |
4525 T_ACI_TOA *tosca ); | |
4526 EXTERN T_ACI_RETURN sAT_PlusCSMS ( T_ACI_CMD_SRC srcId, | |
4527 T_ACI_CSMS_SERV service); | |
4528 EXTERN T_ACI_RETURN qAT_PlusCSMS ( T_ACI_CMD_SRC srcId, | |
4529 T_ACI_CSMS_SERV *service, | |
4530 T_ACI_CSMS_SUPP *mt, | |
4531 T_ACI_CSMS_SUPP *mo, | |
4532 T_ACI_CSMS_SUPP *bm); | |
4533 EXTERN T_ACI_RETURN sAT_PlusCPMS ( T_ACI_CMD_SRC srcId, | |
4534 T_ACI_SMS_STOR mem1, | |
4535 T_ACI_SMS_STOR mem2, | |
4536 T_ACI_SMS_STOR mem3); | |
4537 EXTERN T_ACI_RETURN qAT_PlusCPMS ( T_ACI_CMD_SRC srcId); | |
4538 EXTERN T_ACI_RETURN sAT_PlusCMGF ( T_ACI_CMD_SRC srcId, | |
4539 T_ACI_CMGF_MOD mode); | |
4540 EXTERN T_ACI_RETURN qAT_PlusCMGF ( T_ACI_CMD_SRC srcId, | |
4541 T_ACI_CMGF_MOD * mode); | |
4542 #if defined FF_MMI_RIV | |
4543 EXTERN T_ACI_RETURN sAT_PercentSMBS( T_ACI_CMD_SRC srcId, | |
4544 T_ACI_PERC_SMBS_MOD mode); | |
4545 EXTERN T_ACI_RETURN qAT_PercentSMBS( T_ACI_CMD_SRC srcId, | |
4546 T_ACI_PERC_SMBS_MOD *mode); | |
4547 #endif /* #if defined FF_MMI_RIV */ | |
4548 EXTERN T_ACI_RETURN sAT_PlusCSCB ( T_ACI_CMD_SRC srcId, | |
4549 T_ACI_CSCB_MOD mode, | |
4550 USHORT * mids, | |
4551 UBYTE * dcss); | |
4552 EXTERN T_ACI_RETURN qAT_PlusCSCB ( T_ACI_CMD_SRC srcId, | |
4553 T_ACI_CSCB_MOD * mode, | |
4554 USHORT * mids, | |
4555 UBYTE * dcss); | |
4556 #ifdef FF_HOMEZONE | |
4557 EXTERN T_ACI_RETURN sAT_PercentCBHZ ( T_ACI_CMD_SRC srcId, | |
4558 T_ACI_CBHZ_MOD mode, | |
4559 T_ACI_CS dcs, | |
4560 UBYTE timeout); | |
4561 EXTERN T_ACI_RETURN qAT_PercentCBHZ ( T_ACI_CMD_SRC srcId, | |
4562 T_ACI_CBHZ_MOD* mode, | |
4563 T_ACI_CS* dcs, | |
4564 UBYTE* timeout); | |
4565 #endif /* FF_HOMEZONE */ | |
4566 | |
4567 EXTERN T_ACI_RETURN sAT_PlusCMGS_Old ( T_ACI_CMD_SRC srcId, | |
4568 CHAR * da, | |
4569 T_ACI_TOA * toda, | |
4570 T_ACI_SM_DATA * data, | |
4571 CHAR * sca, | |
4572 T_ACI_TOA * tosca, | |
4573 SHORT isReply); | |
4574 EXTERN T_ACI_RETURN sAT_PlusCNMI ( T_ACI_CMD_SRC srcId, | |
4575 T_ACI_CNMI_MT mt, | |
4576 T_ACI_CNMI_BM bm, | |
4577 T_ACI_CNMI_DS ds); | |
4578 EXTERN T_ACI_RETURN qAT_PlusCNMI ( T_ACI_CMD_SRC srcId, | |
4579 T_ACI_CNMI_MT * mt, | |
4580 T_ACI_CNMI_BM * bm, | |
4581 T_ACI_CNMI_DS * ds); | |
4582 EXTERN T_ACI_RETURN sAT_PlusCMGL ( T_ACI_CMD_SRC srcId, | |
4583 T_ACI_SMS_STAT state, | |
4584 SHORT startIdx, | |
4585 T_ACI_SMS_READ rdMode ); | |
4586 EXTERN T_ACI_RETURN sAT_PlusCNMA ( T_ACI_CMD_SRC srcId); | |
4587 | |
4588 | |
4589 EXTERN T_ACI_RETURN sAT_PercentCPRSM ( T_ACI_CMD_SRC srcId, | |
4590 T_ACI_CPRSM_MOD mode); | |
4591 | |
4592 EXTERN T_ACI_RETURN qAT_PercentCPRSM ( T_ACI_CMD_SRC srcId ); | |
4593 | |
4594 /*----------- New SMS prototypes for concatenated SMS --------------------*/ | |
4595 | |
4596 EXTERN T_ACI_RETURN sAT_PlusCMSS ( T_ACI_CMD_SRC srcId, | |
4597 UBYTE index, | |
4598 CHAR* da, | |
4599 T_ACI_TOA* toda ); | |
4600 EXTERN T_ACI_RETURN sAT_PlusCMSS_Gl ( T_ACI_CMD_SRC srcId, | |
4601 UBYTE index, | |
4602 CHAR* da, | |
4603 T_ACI_TOA* toda, | |
4604 T_CMSS_FCT rplyCB, | |
4605 T_ERROR_FCT errorCB ); | |
4606 | |
4607 #if (defined (MFW) AND !defined (FF_MMI_RIV)) OR defined (_CONC_TESTING_) | |
4608 EXTERN T_ACI_RETURN sAT_PlusCMGS ( T_ACI_CMD_SRC srcId, | |
4609 CHAR* da, | |
4610 T_ACI_TOA* toda, | |
4611 T_SM_DATA_EXT* src_data, | |
4612 CHAR* sca, | |
4613 T_ACI_TOA* tosca, | |
4614 SHORT isReply ); | |
4615 #else | |
4616 EXTERN T_ACI_RETURN sAT_PlusCMGS ( T_ACI_CMD_SRC srcId, | |
4617 CHAR* da, | |
4618 T_ACI_TOA* toda, | |
4619 T_ACI_SM_DATA* src_data, | |
4620 CHAR* sca, | |
4621 T_ACI_TOA* tosca, | |
4622 SHORT isReply ); | |
4623 #endif | |
4624 | |
4625 EXTERN T_ACI_RETURN sAT_PercentCMGS ( T_ACI_CMD_SRC srcId, | |
4626 CHAR* da, | |
4627 T_ACI_TOA* toda, | |
4628 T_ACI_SM_DATA* src_data, | |
4629 T_ACI_UDH_DATA* udh_data, | |
4630 CHAR* sca, | |
4631 T_ACI_TOA* tosca, | |
4632 SHORT isReply ); | |
4633 | |
4634 EXTERN T_ACI_RETURN sAT_PlusCMGS_Gl ( T_ACI_CMD_SRC srcId, | |
4635 CHAR* da, | |
4636 T_ACI_TOA* toda, | |
4637 T_ACI_SM_DATA* data, | |
4638 T_ACI_UDH_DATA* udh, | |
4639 CHAR* sca, | |
4640 T_ACI_TOA* tosca, | |
4641 SHORT isReply, | |
4642 T_CMGS_FCT rplyCB, | |
4643 T_ERROR_FCT errorCB ); | |
4644 EXTERN T_ACI_RETURN sAT_PlusCMGR ( T_ACI_CMD_SRC srcId, | |
4645 UBYTE index, | |
4646 T_ACI_SMS_READ rdMode ); | |
4647 EXTERN T_ACI_RETURN sAT_PlusCMGR_Gl ( T_ACI_CMD_SRC srcId, | |
4648 UBYTE index, | |
4649 T_ACI_SMS_READ rdMode, | |
4650 T_CMGR_FCT rplyCB ); | |
4651 | |
4652 #if (defined (MFW) AND !defined (FF_MMI_RIV)) OR defined (_CONC_TESTING_) | |
4653 EXTERN T_ACI_RETURN sAT_PlusCMGW ( T_ACI_CMD_SRC srcId, | |
4654 SHORT index, | |
4655 CHAR* address, | |
4656 T_ACI_TOA* toa, | |
4657 T_ACI_SMS_STAT stat, | |
4658 UBYTE msg_ref, | |
4659 T_SM_DATA_EXT* src_data, | |
4660 CHAR* sca, | |
4661 T_ACI_TOA* tosca, | |
4662 SHORT isReply ); | |
4663 #else | |
4664 EXTERN T_ACI_RETURN sAT_PlusCMGW ( T_ACI_CMD_SRC srcId, | |
4665 SHORT index, | |
4666 CHAR* address, | |
4667 T_ACI_TOA* toa, | |
4668 T_ACI_SMS_STAT stat, | |
4669 UBYTE msg_ref, | |
4670 T_ACI_SM_DATA* src_data, | |
4671 CHAR* sca, | |
4672 T_ACI_TOA* tosca, | |
4673 SHORT isReply ); | |
4674 #endif | |
4675 EXTERN T_ACI_RETURN sAT_PercentCMGW ( T_ACI_CMD_SRC srcId, | |
4676 SHORT index, | |
4677 CHAR* address, | |
4678 T_ACI_TOA* toa, | |
4679 T_ACI_SMS_STAT stat, | |
4680 UBYTE msg_ref, | |
4681 T_ACI_SM_DATA* src_data, | |
4682 T_ACI_UDH_DATA* udh_data, | |
4683 CHAR* sca, | |
4684 T_ACI_TOA* tosca, | |
4685 SHORT isReply ); | |
4686 | |
4687 EXTERN T_ACI_RETURN sAT_PlusCMGW_Gl ( T_ACI_CMD_SRC srcId, | |
4688 SHORT index, | |
4689 CHAR* address, | |
4690 T_ACI_TOA* toa, | |
4691 T_ACI_SMS_STAT stat, | |
4692 UBYTE msg_ref, | |
4693 T_ACI_SM_DATA* data, | |
4694 T_ACI_UDH_DATA* udh, | |
4695 CHAR* sca, | |
4696 T_ACI_TOA* tosca, | |
4697 SHORT isReply, | |
4698 T_CMGW_FCT rplyCB, | |
4699 T_ERROR_FCT errorCB ); | |
4700 EXTERN T_ACI_RETURN sAT_PlusCMGD ( T_ACI_CMD_SRC srcId, | |
4701 UBYTE index, | |
4702 UBYTE status ); | |
4703 EXTERN T_ACI_RETURN sAT_PlusCMGD_Gl ( T_ACI_CMD_SRC srcId, | |
4704 UBYTE index, | |
4705 UBYTE status, | |
4706 T_CMGD_FCT rplyCB, | |
4707 T_ERROR_FCT errorCB ); | |
4708 EXTERN T_ACI_RETURN sAT_PlusCMGC ( T_ACI_CMD_SRC srcId, | |
4709 SHORT fo, | |
4710 SHORT ct, | |
4711 SHORT pid, | |
4712 SHORT mn, | |
4713 CHAR* da, | |
4714 T_ACI_TOA* toda, | |
4715 T_ACI_CMD_DATA* data ); | |
4716 EXTERN T_ACI_RETURN sAT_PlusCMGC_Gl ( T_ACI_CMD_SRC srcId, | |
4717 SHORT fo, | |
4718 SHORT ct, | |
4719 SHORT pid, | |
4720 SHORT mn, | |
4721 CHAR* da, | |
4722 T_ACI_TOA* toda, | |
4723 T_ACI_CMD_DATA* data, | |
4724 T_CMGC_FCT rplyCB ); | |
4725 EXTERN T_ACI_RETURN sAT_PercentCMGMDU ( T_ACI_CMD_SRC srcId, | |
4726 UBYTE index ); | |
4727 EXTERN T_ACI_RETURN sAT_PercentCMGMDU_Gl ( T_ACI_CMD_SRC srcId, | |
4728 UBYTE index, | |
4729 T_CMGMDU_FCT rplyCB ); | |
4730 #if defined (SMS_PDU_SUPPORT) | |
4731 | |
4732 EXTERN void rCI_Plus_Percent_CMGLPdu ( T_MNSMS_READ_CNF *mnsms_read_cnf, | |
4733 T_ACI_AT_CMD cmd); | |
4734 EXTERN void rCI_Plus_Percent_CMGRPdu ( T_MNSMS_READ_CNF* mnsms_read_cnf, | |
4735 T_ACI_AT_CMD cmd); | |
4736 EXTERN void rCI_PlusCMTPdu ( T_MNSMS_MESSAGE_IND * mnsms_message_ind ); | |
4737 | |
4738 | |
4739 | |
4740 | |
4741 | |
4742 EXTERN void rCI_PlusCBMPdu ( T_MMI_CBCH_IND * mmi_cbch_ind ); | |
4743 EXTERN void rCI_PlusCDSPdu ( T_MNSMS_STATUS_IND * mnsms_status_ind ); | |
4744 EXTERN void rCI_PlusCMGSPdu ( T_MNSMS_SUBMIT_CNF * mnsms_submit_cnf); | |
4745 EXTERN void rCI_PlusCMSSPdu ( T_MNSMS_SUBMIT_CNF * mnsms_submit_cnf); | |
4746 EXTERN void rCI_PlusCMGCPdu ( T_MNSMS_COMMAND_CNF * mnsms_command_cnf); | |
4747 | |
4748 | |
4749 GLOBAL T_ACI_RETURN sAT_PlusCMGWPdu ( T_ACI_CMD_SRC srcId, | |
4750 UBYTE stat, | |
4751 T_ACI_SM_DATA *pdu); | |
4752 #endif | |
4753 | |
4754 #if defined (SMS_PDU_SUPPORT) || defined (SIM_TOOLKIT) | |
4755 EXTERN T_ACI_RETURN sAT_PlusCMGSPdu ( T_ACI_CMD_SRC srcId, | |
4756 T_ACI_SM_DATA *pdu ); | |
4757 EXTERN T_ACI_RETURN sAT_PlusCMGCPdu ( T_ACI_CMD_SRC srcId, | |
4758 T_ACI_SM_DATA *pdu ); | |
4759 EXTERN T_ACI_RETURN sAT_PlusCNMAPdu ( T_ACI_CMD_SRC srcId, | |
4760 SHORT n, | |
4761 T_ACI_SM_DATA *pdu); | |
4762 #endif | |
4763 | |
4764 /*----------- Phonebook managment prototypes -----------------------------------------*/ | |
4765 | |
4766 EXTERN T_ACI_RETURN sAT_PlusCPBS ( T_ACI_CMD_SRC srcId, | |
4767 T_ACI_PB_STOR mem, | |
4768 char* pin2 ); | |
4769 EXTERN T_ACI_RETURN qAT_PlusCPBS ( T_ACI_CMD_SRC srcId, | |
4770 T_ACI_PB_STOR* storage, | |
4771 SHORT* used, | |
4772 SHORT* total ); | |
4773 EXTERN T_ACI_RETURN qAT_PercentCPBS ( T_ACI_CMD_SRC srcId, | |
4774 T_ACI_PB_STOR* storage, | |
4775 SHORT* used, | |
4776 SHORT* total, | |
4777 SHORT* first ); | |
4778 EXTERN T_ACI_RETURN sAT_PlusCPBW ( T_ACI_CMD_SRC srcId, | |
4779 SHORT index, | |
4780 CHAR * number, | |
4781 T_ACI_TOA * type, | |
4782 T_ACI_PB_TEXT * text, | |
4783 T_ACI_VP_ABS * dateTime ); | |
4784 EXTERN T_ACI_RETURN tAT_PlusCPBW ( T_ACI_CMD_SRC srcId, | |
4785 SHORT* firstIdx, | |
4786 SHORT* lastIdx, | |
4787 UBYTE* nlength, | |
4788 UBYTE* tlength ); | |
4789 EXTERN T_ACI_RETURN sAT_PlusCPBR ( T_ACI_CMD_SRC srcId, | |
4790 SHORT startIdx, | |
4791 SHORT stopIdx, | |
4792 SHORT* lastIdx, | |
4793 T_ACI_PB_ENTR* pbLst); | |
4794 /** | |
4795 * sAT_PercentCPBR. | |
4796 * | |
4797 * @param srcId Parameter 1. | |
4798 * @param startIdx Parameter 2. | |
4799 * @param stopIdx Parameter 3. | |
4800 * @param searchMode Parameter 4. | |
4801 * @param lastIdx Parameter 5. | |
4802 * @param pbLst Parameter 6. | |
4803 * @return Type T_ACI_RETURN. | |
4804 | |
4805 ************************************************** | |
4806 Added by Shen,Chao March.18th.2003 | |
4807 ************************************************** | |
4808 */ | |
4809 | |
4810 EXTERN T_ACI_RETURN sAT_PercentCPBR ( T_ACI_CMD_SRC srcId, | |
4811 SHORT startIdx, | |
4812 SHORT stopIdx, | |
4813 T_ACI_SR_TYP searchMode, | |
4814 SHORT* lastIdx, | |
4815 T_ACI_PB_ENTR* pbLst ); | |
4816 | |
4817 /* PersentCPBF */ | |
4818 EXTERN T_ACI_RETURN sAT_PercentCPBF ( T_ACI_CMD_SRC srcId, | |
4819 T_ACI_PB_TEXT* findtext, | |
4820 T_ACI_CPBF_MOD mode, | |
4821 T_ACI_SR_TYP searchMode, | |
4822 U8 direction, | |
4823 SHORT* found, | |
4824 T_ACI_PB_ENTR* pbLst ); | |
4825 | |
4826 | |
4827 EXTERN T_ACI_RETURN tAT_PlusCPBR ( T_ACI_CMD_SRC srcId, | |
4828 SHORT* firstIdx, | |
4829 SHORT* lastIdx, | |
4830 UBYTE* nlength, | |
4831 UBYTE* tlength ); | |
4832 #ifdef NO_ASCIIZ | |
4833 EXTERN T_ACI_RETURN sAT_PlusCPBF ( T_ACI_CMD_SRC srcId, | |
4834 T_ACI_PB_TEXT *findtext, | |
4835 T_ACI_CPBF_MOD mode, | |
4836 SHORT *found, | |
4837 T_ACI_PB_ENTR *pbLst ); | |
4838 #else /* ifdef NO_ASCIIZ */ | |
4839 EXTERN T_ACI_RETURN sAT_PlusCPBF ( T_ACI_CMD_SRC srcId, | |
4840 CHAR *findtext, | |
4841 T_ACI_CPBF_MOD mode, | |
4842 SHORT *found, | |
4843 T_ACI_PB_ENTR *pbLst ); | |
4844 #endif /* ifdef NO_ASCIIZ */ | |
4845 EXTERN T_ACI_RETURN tAT_PlusCPBF ( T_ACI_CMD_SRC srcId, | |
4846 UBYTE* nlength, | |
4847 UBYTE* tlength ); | |
4848 | |
4849 /*----------- Engineering mode prototypes -----------------------------------------*/ | |
4850 EXTERN T_ACI_RETURN sAT_PlusCLAE ( T_ACI_CMD_SRC srcId, | |
4851 T_ACI_CLAE_MOD mode ); | |
4852 EXTERN T_ACI_RETURN qAT_PlusCLAE ( T_ACI_CMD_SRC srcId, | |
4853 T_ACI_CLAE_MOD * mode); | |
4854 #ifdef FF_EM_MODE | |
4855 | |
4856 EXTERN T_ACI_RETURN sAT_PercentEM ( T_ACI_CMD_SRC srcId, | |
4857 T_EM_AT_MODE mode, | |
4858 T_EM_AT_TYPE type); | |
4859 EXTERN T_ACI_RETURN sAT_PercentEMET( T_ACI_CMD_SRC srcId, | |
4860 UBYTE type); | |
4861 EXTERN T_ACI_RETURN sAT_PercentEMETS( T_ACI_CMD_SRC srcId, UBYTE subclass, | |
4862 ULONG bitm_h, ULONG bitm_l ); | |
4863 #endif /* FF_EM_MODE */ | |
4864 | |
4865 #ifdef MFW | |
4866 /* MMI TEST */ | |
4867 EXTERN T_ACI_RETURN sAT_PercentMMITEST ( T_ACI_CMD_SRC srcId, char *param); | |
4868 #endif | |
4869 | |
4870 EXTERN T_ACI_RETURN sAT_PlusCSVM ( T_ACI_CMD_SRC srcId, | |
4871 T_ACI_CSVM_MOD mode, | |
4872 CHAR *pnumber, | |
4873 UBYTE num_len, | |
4874 T_ACI_TOA *toa); | |
4875 | |
4876 EXTERN T_ACI_RETURN qAT_PlusCSVM ( T_ACI_CMD_SRC srcId, | |
4877 T_ACI_CSVM_MOD* mode, | |
4878 CHAR *number, | |
4879 UBYTE num_len, | |
4880 SHORT *toa_val); | |
4881 | |
4882 EXTERN T_ACI_RETURN sAT_PlusCLAN ( T_ACI_CMD_SRC srcId, | |
4883 T_ACI_LAN_SUP *lngCode); | |
4884 | |
4885 EXTERN T_ACI_RETURN qAT_PlusCLAN ( T_ACI_CMD_SRC srcId, | |
4886 T_ACI_LAN_SUP* lngCode ); | |
4887 | |
4888 EXTERN T_ACI_RETURN tAT_PlusCLAN (T_ACI_CMD_SRC srcId, | |
4889 SHORT *lastIdx, | |
4890 T_ACI_LAN_SUP *lanlst); | |
4891 | |
4892 EXTERN T_ACI_RETURN sAT_PercentCPRI( T_ACI_CMD_SRC srcId, | |
4893 UBYTE mode ); | |
4894 | |
4895 EXTERN T_ACI_RETURN qAT_PercentCPRI( T_ACI_CMD_SRC srcId, | |
4896 UBYTE *mode ); | |
4897 /* DTI managment */ | |
4898 EXTERN T_ACI_RETURN sAT_PercentDATA (T_ACI_CMD_SRC srcId, | |
4899 UBYTE redir_mode, | |
4900 CHAR *des_devname, | |
4901 UBYTE des_devno, | |
4902 UBYTE des_subno, | |
4903 CHAR *dev_cap, | |
4904 CHAR *src_devname, | |
4905 UBYTE src_devno, | |
4906 UBYTE src_subno, | |
4907 UBYTE pdp_cid); | |
4908 | |
4909 EXTERN T_ACI_RETURN qAT_PercentDATA (T_ACI_CMD_SRC srcId, | |
4910 UBYTE *mode, | |
4911 UBYTE *cid, | |
4912 T_DINF_PARAM *des_param, | |
4913 T_DINF_PARAM *src_param); | |
4914 | |
4915 EXTERN T_ACI_RETURN sAT_PercentDINF (T_ACI_CMD_SRC srcId, | |
4916 UBYTE mode, | |
4917 T_DINF_PARAM *device_param); | |
4918 | |
4919 EXTERN T_ACI_RETURN sAT_PercentCHPL (T_ACI_CMD_SRC srcId, | |
4920 T_ACI_OPER_NTRY *oper); | |
4921 | |
4922 EXTERN T_ACI_RETURN sAT_PlusCTZR ( T_ACI_CMD_SRC srcId, | |
4923 T_ACI_CTZR_MODE mode); | |
4924 | |
4925 EXTERN T_ACI_RETURN qAT_PlusCTZR ( T_ACI_CMD_SRC srcId, | |
4926 T_ACI_CTZR_MODE *mode); | |
4927 | |
4928 EXTERN T_ACI_RETURN sAT_PlusCTZU ( T_ACI_CMD_SRC srcId, | |
4929 T_ACI_CTZU_MODE mode); | |
4930 | |
4931 EXTERN T_ACI_RETURN sAT_PlusCCLK ( T_ACI_CMD_SRC srcId | |
4932 ,T_ACI_RTC_DATE *date_s | |
4933 ,T_ACI_RTC_TIME *time_s | |
4934 ,int timeZone | |
4935 ); | |
4936 | |
4937 EXTERN T_ACI_RETURN qAT_PlusCCLK ( T_ACI_CMD_SRC srcId | |
4938 ,T_ACI_RTC_DATE *date_s | |
4939 ,T_ACI_RTC_TIME *time_s | |
4940 ,int * timeZone | |
4941 ); | |
4942 | |
4943 EXTERN T_ACI_RETURN sAT_PercentCTZV ( T_ACI_CMD_SRC srcId, | |
4944 T_ACI_PCTZV_MODE mode); | |
4945 | |
4946 EXTERN T_ACI_RETURN sAT_PercentCNIV ( T_ACI_CMD_SRC srcId, | |
4947 T_ACI_CNIV_MODE mode); | |
4948 | |
4949 EXTERN T_ACI_RETURN qAT_PlusCTZU ( T_ACI_CMD_SRC srcId, | |
4950 T_ACI_CTZU_MODE *mode); | |
4951 | |
4952 EXTERN T_ACI_RETURN qAT_PercentCTZV ( T_ACI_CMD_SRC srcId, | |
4953 T_ACI_PCTZV_MODE *mode); | |
4954 | |
4955 EXTERN T_ACI_RETURN qAT_PercentCNIV ( T_ACI_CMD_SRC srcId, | |
4956 T_ACI_CNIV_MODE *mode); | |
4957 | |
4958 EXTERN T_ACI_RETURN sAT_PercentCWUP ( T_ACI_CMD_SRC srcId, | |
4959 T_ACI_CWUP_TYPE type); | |
4960 | |
4961 | |
4962 EXTERN T_ACI_RETURN sAT_PercentCSCN ( T_ACI_CMD_SRC srcId, | |
4963 T_ACI_SS_CSCN_MOD_STATE ss_switch, | |
4964 T_ACI_SS_CSCN_MOD_DIRECTION ss_direction, | |
4965 T_ACI_CC_CSCN_MOD_STATE cc_switch, | |
4966 T_ACI_CC_CSCN_MOD_DIRECTION cc_direction ); | |
4967 | |
4968 EXTERN T_ACI_RETURN qAT_PercentCSCN ( T_ACI_CMD_SRC srcId, | |
4969 T_ACI_SS_CSCN_MOD_STATE *ss_switch, | |
4970 T_ACI_SS_CSCN_MOD_DIRECTION *ss_direction, | |
4971 T_ACI_CC_CSCN_MOD_STATE *cc_switch, | |
4972 T_ACI_CC_CSCN_MOD_DIRECTION *cc_direction ); | |
4973 #if defined FF_EOTD | |
4974 EXTERN T_ACI_RETURN sAT_PlusCLSA ( T_ACI_CMD_SRC srcId, | |
4975 CHAR* mlcsc, | |
4976 CHAR* mlcda ); | |
4977 | |
4978 EXTERN T_ACI_RETURN qAT_PlusCLSA ( T_ACI_CMD_SRC srcId, | |
4979 CHAR* mlcsc, | |
4980 CHAR* mlcda); | |
4981 | |
4982 #endif /* FF_EOTD */ | |
4983 #ifdef FF_EOTD | |
4984 EXTERN T_ACI_RETURN sAT_PlusCLPS ( T_ACI_CMD_SRC srcId, | |
4985 CHAR clpsset, | |
4986 CHAR* lcclientId, | |
4987 USHORT cltimer); | |
4988 EXTERN T_ACI_RETURN sAT_PlusCLSR ( T_ACI_CMD_SRC srcId, | |
4989 CHAR lcnotify, | |
4990 CHAR lcconfirm, | |
4991 CHAR* lcclientId); | |
4992 EXTERN T_ACI_RETURN sAT_PlusCLOM ( T_ACI_CMD_SRC srcId, | |
4993 CHAR clomset, | |
4994 CHAR* lc_clientId ); | |
4995 EXTERN T_ACI_RETURN qAT_PlusCLOM ( T_ACI_CMD_SRC srcId, | |
4996 UBYTE * number_lc_clients, | |
4997 T_LOC_SERV_PARA ** client_list); | |
4998 EXTERN T_ACI_RETURN qAT_PlusCLPS ( T_ACI_CMD_SRC srcId, | |
4999 UBYTE * number_lc_clients, | |
5000 T_LOC_SERV_PARA ** client_list); | |
5001 | |
5002 #endif /* FF_EOTD */ | |
5003 | |
5004 EXTERN T_ACI_RETURN sAT_PlusCIND ( T_ACI_CMD_SRC srcId, | |
5005 T_ACI_CIND_SIGNAL_TYPE sCindSgnalSettings, | |
5006 T_ACI_CIND_SMSFULL_TYPE sCindSmsFullSettings ); | |
5007 | |
5008 EXTERN T_ACI_RETURN qAT_PlusCIND ( T_ACI_CMD_SRC srcId, | |
5009 T_ACI_CIND_SIGNAL_TYPE *sCindSgnalSettings, | |
5010 T_ACI_CIND_SMSFULL_TYPE *sCindSmsFullSettings ); | |
5011 | |
5012 EXTERN T_ACI_RETURN sAT_PlusCMER ( T_ACI_CMD_SRC srcId, | |
5013 T_ACI_CMER_MODE_TYPE sCmerModeSettings, | |
5014 T_ACI_CMER_IND_TYPE sCmerIndicationSettings, | |
5015 T_ACI_CMER_BFR_TYPE sCmerBfrSettings ); | |
5016 | |
5017 EXTERN T_ACI_RETURN qAT_PlusCMER ( T_ACI_CMD_SRC srcId, | |
5018 T_ACI_CMER_MODE_TYPE *sCmerModeSettings, | |
5019 T_ACI_CMER_IND_TYPE *sCmerIndicationSettings, | |
5020 T_ACI_CMER_BFR_TYPE *sCmerBfrSettings ); | |
5021 | |
5022 EXTERN T_ACI_RETURN sAT_PercentCUSCFG ( T_ACI_CMD_SRC srcId, | |
5023 T_ACI_CUSCFG_FAC facility, | |
5024 T_ACI_CUSCFG_MOD mode, | |
5025 CHAR * value); | |
5026 | |
5027 EXTERN T_ACI_RETURN qAT_PercentCUSCFG ( T_ACI_CMD_SRC srcId, | |
5028 T_ACI_CUSCFG_FAC facility, | |
5029 T_ACI_CUSCFG_STAT *status); | |
5030 | |
5031 EXTERN T_ACI_RETURN sAT_PercentCUSDR (T_ACI_CMD_SRC srcId, T_ACI_CUSDR_RES response); | |
5032 | |
5033 | |
5034 EXTERN void cmhMM_GetCmerSettings ( T_ACI_CMD_SRC srcId, | |
5035 T_ACI_MM_CMER_VAL_TYPE *sCmerSettings ); | |
5036 | |
5037 EXTERN T_ACI_RETURN sAT_PlusCMMS ( T_ACI_CMD_SRC srcId, | |
5038 UBYTE mode ); | |
5039 | |
5040 EXTERN T_ACI_RETURN qAT_PlusCMMS ( T_ACI_CMD_SRC srcId, | |
5041 UBYTE* mode); | |
5042 | |
5043 | |
5044 EXTERN T_ACI_RETURN qAT_PercentSTDR ( T_ACI_CMD_SRC srcId, | |
5045 UBYTE *rvstd); | |
5046 | |
5047 EXTERN T_ACI_RETURN sAT_PercentCMGL ( T_ACI_CMD_SRC srcId, | |
5048 T_ACI_SMS_STAT state, | |
5049 T_ACI_SMS_READ rdMode ); | |
5050 | |
5051 EXTERN T_ACI_RETURN sAT_PercentCMGR_Gl ( T_ACI_CMD_SRC srcId, | |
5052 UBYTE index, | |
5053 T_ACI_SMS_READ rdMode, | |
5054 T_CMGR_FCT rplyCB ); | |
5055 | |
5056 EXTERN T_ACI_RETURN sAT_PercentCMGR ( T_ACI_CMD_SRC srcId, | |
5057 UBYTE index, | |
5058 T_ACI_SMS_READ rdMode ); | |
5059 | |
5060 | |
5061 /*------- call-backs for MMI --------------------------------------*/ | |
5062 | |
5063 #if defined ACI OR defined SMI OR defined MFW OR defined FF_MMI_RIV OR defined _CONC_TESTING_ | |
5064 #if defined CMH_F_C /*lint -save -e18 */ /* Turn off Lint errors for this "construct" */ | |
5065 | |
5066 EXTERN void rAT_OK ( void ); | |
5067 EXTERN void rAT_NO_CARRIER ( void ); | |
5068 EXTERN void rAT_CONNECT ( void ); | |
5069 EXTERN void rAT_BUSY ( void ); | |
5070 EXTERN void rAT_NO_ANSWER ( void ); | |
5071 EXTERN void rAT_PlusCME ( void ); | |
5072 EXTERN void rAT_PlusCMS ( void ); | |
5073 | |
5074 EXTERN void rAT_PercentCOPS ( void ); | |
5075 EXTERN void rAT_PlusCPIN ( void ); | |
5076 EXTERN void rAT_PlusCREG ( void ); | |
5077 EXTERN void rAT_PercentCREG ( void ); | |
5078 EXTERN void rAT_PlusCRING ( void ); | |
5079 EXTERN void rAT_PlusCRING_OFF ( void ); | |
5080 EXTERN void rAT_PlusCLIP ( void ); | |
5081 EXTERN void rAT_PlusCDIP ( void ); | |
5082 EXTERN void rAT_PlusCLIR ( void ); | |
5083 EXTERN void rAT_PlusCOLP ( void ); | |
5084 EXTERN void rAT_PlusDR ( void ); | |
5085 EXTERN void rAT_PlusCR ( void ); | |
5086 EXTERN void rAT_PlusCLCK ( void ); | |
5087 EXTERN void rAT_PlusCCFC ( void ); | |
5088 EXTERN void rAT_PlusCCWA ( void ); | |
5089 EXTERN void rAT_PlusCSMS ( void ); | |
5090 EXTERN void rAT_PlusCPMS ( void ); | |
5091 EXTERN void rAT_PlusCMS ( void ); | |
5092 EXTERN void rAT_PlusCBMI ( void ); | |
5093 EXTERN void rAT_PlusCMT ( void ); | |
5094 EXTERN void rAT_PlusCMTI ( void ); | |
5095 EXTERN void rAT_PlusCMGS ( void ); | |
5096 EXTERN void rAT_PlusCMSS ( void ); | |
5097 EXTERN void rAT_PlusCMGW ( void ); | |
5098 EXTERN void rAT_PlusCMGC ( void ); | |
5099 EXTERN void rAT_PlusCDS ( void ); | |
5100 EXTERN void rAT_PlusCBM ( void ); | |
5101 EXTERN void rAT_PlusILRR ( void ); | |
5102 EXTERN void rAT_PlusCMGR ( void ); | |
5103 EXTERN void rAT_PlusCMGD ( void ); | |
5104 EXTERN void rAT_PlusCMGL ( void ); | |
5105 EXTERN void rAT_PlusCUSD ( void ); | |
5106 EXTERN void rAT_PlusCCCM ( void ); | |
5107 EXTERN void rAT_PlusCSSI ( void ); | |
5108 EXTERN void rAT_PlusCSSU ( void ); | |
5109 EXTERN void rAT_PercentCSSN ( void ); | |
5110 EXTERN void rAT_PercentCCCN ( void ); | |
5111 | |
5112 EXTERN void rAT_PlusCPOL ( void ); | |
5113 EXTERN void rAT_PlusCLAN ( void ); | |
5114 EXTERN void rAT_PlusCLAE ( void ); | |
5115 EXTERN void rAT_PercentCSQ ( void ); | |
5116 | |
5117 EXTERN void rAT_PlusCIMI ( void ); | |
5118 EXTERN void rAT_PlusCNUM ( void ); | |
5119 EXTERN void rAT_PlusCRSM ( void ); | |
5120 EXTERN void rAT_PlusCSIM ( void ); | |
5121 EXTERN void rAT_PercentRDL ( void ); | |
5122 EXTERN void rAT_PercentRDLB ( void ); | |
5123 EXTERN void rAT_PlusCCWV ( void ); | |
5124 EXTERN void rAT_PercentBC ( void ); | |
5125 EXTERN void rAT_PercentDRV ( void ); | |
5126 EXTERN void rAT_PercentSIMREM ( void ); | |
5127 EXTERN void rAT_PercentSIMINS ( void ); | |
5128 EXTERN void rAT_PercentCOLR ( void ); | |
5129 EXTERN void rAT_PercentKSIR ( void ); | |
5130 EXTERN void rAT_PercentCPI ( void ); | |
5131 EXTERN void rAT_PercentCSTAT ( void ); | |
5132 EXTERN void rAT_PercentCPRSM ( void ); | |
5133 | |
5134 EXTERN void rAT_PercentCTYI ( void ); | |
5135 EXTERN void rAT_PercentCTV ( void ); | |
5136 EXTERN void rAT_PercentALS ( void ); | |
5137 #ifdef SIM_TOOLKIT | |
5138 EXTERN void rAT_PercentSATI ( void ); | |
5139 EXTERN void rAT_PercentSATE ( void ); | |
5140 EXTERN void rAT_PercentSATN ( void ); | |
5141 EXTERN void rAT_PercentSATA ( void ); | |
5142 #endif /* SIM_TOOLKIT */ | |
5143 EXTERN void rAT_PercentCCBS ( void ); | |
5144 EXTERN void rAT_PercentCNAP ( void ); | |
5145 EXTERN void rAT_PlusCTZV ( void ); | |
5146 EXTERN void rAT_SignalSMS ( void ); | |
5147 /*#ifdef FF_MMI_RIV*/ | |
5148 EXTERN void rAT_PercentCTZV ( void ); | |
5149 EXTERN void rAT_PercentCNIV ( void); | |
5150 /*#endif*/ | |
5151 EXTERN void rAT_phb_status ( void ); | |
5152 EXTERN void rAT_sms_ready ( void ); /* indicates phonebook read ready */ | |
5153 | |
5154 #ifdef FF_EM_MODE | |
5155 EXTERN void rAT_PercentEM ( void ); | |
5156 EXTERN void rAT_PercentEMET ( void ); | |
5157 EXTERN void rAT_PercentEMETS ( void ); | |
5158 #endif /* FF_EM_MODE */ | |
5159 | |
5160 EXTERN void rAT_PlusCIEV ( void ); | |
5161 EXTERN void rAT_Z ( void ); | |
5162 EXTERN void rAT_PlusCOPS ( void ); | |
5163 | |
5164 #ifdef FF_WAP | |
5165 EXTERN void rAT_WAP_PPP_connected(SHORT cId,ULONG IPAddress); | |
5166 | |
5167 EXTERN void rAT_WAP_start_login(void); | |
5168 EXTERN void rAT_WAP_start_gprs_login(void); | |
5169 | |
5170 EXTERN void rAT_WAP_call_disconnected(SHORT cId); | |
5171 #endif /* WAP */ | |
5172 | |
5173 EXTERN void rAT_PercentCPRI(void); | |
5174 EXTERN void rAT_PercentSIMEF(void); | |
5175 EXTERN void rAT_PercentCMGR ( void ); | |
5176 | |
5177 #ifdef FF_BAT | |
5178 EXTERN void rBAT_OK (void); | |
5179 EXTERN void rBAT_CONNECT (void); | |
5180 EXTERN void rBAT_PlusCME (void); | |
5181 EXTERN void rBAT_NO_CARRIER (void); | |
5182 EXTERN void rBAT_PlusCRING (void); | |
5183 EXTERN void rBAT_PlusDR (void); | |
5184 EXTERN void rBAT_PlusCR (void); | |
5185 EXTERN void rBAT_PlusCPIN (void); | |
5186 EXTERN void rBAT_PlusCOPS (void); | |
5187 EXTERN void rBAT_PercentCOPS (void); | |
5188 EXTERN void rBAT_PlusCREG (void); | |
5189 EXTERN void rBAT_PlusCCWA (void); | |
5190 EXTERN void rBAT_PlusCLIP (void); | |
5191 EXTERN void rBAT_PlusCDIP (void); | |
5192 EXTERN void rBAT_PlusCOLP (void); | |
5193 EXTERN void rBAT_PlusCRING_OFF (void); | |
5194 EXTERN void rBAT_PlusFCO (void); | |
5195 EXTERN void rBAT_PlusFIS (void); | |
5196 EXTERN void rBAT_PlusFTI (void); | |
5197 EXTERN void rBAT_PlusFCS (void); | |
5198 EXTERN void rBAT_PlusFCI (void); | |
5199 EXTERN void rBAT_PlusCMS (void); | |
5200 EXTERN void rBAT_PlusCSMS (void); | |
5201 EXTERN void rBAT_PlusCMGS (void); | |
5202 EXTERN void rBAT_PlusCMSS (void); | |
5203 EXTERN void rBAT_PlusCMGW (void); | |
5204 EXTERN void rBAT_PlusCDS (void); | |
5205 EXTERN void rBAT_PlusCMGC (void); | |
5206 EXTERN void rBAT_PlusCMGD (void); | |
5207 EXTERN void rBAT_PlusCMGR (void); | |
5208 EXTERN void rBAT_PlusCMGL (void); | |
5209 EXTERN void rBAT_PlusCMTI (void); | |
5210 EXTERN void rBAT_PlusCMT (void); | |
5211 EXTERN void rBAT_PlusCMTI (void); | |
5212 EXTERN void rBAT_PlusCMT (void); | |
5213 EXTERN void rBAT_PlusCBM (void); | |
5214 EXTERN void rBAT_PlusCPMS (void); | |
5215 EXTERN void rBAT_PlusFHT (void); | |
5216 EXTERN void rBAT_PlusFHR (void); | |
5217 EXTERN void rBAT_PlusFSA (void); | |
5218 EXTERN void rBAT_PlusFPA (void); | |
5219 EXTERN void rBAT_PlusFPW (void); | |
5220 EXTERN void rBAT_PlusFET (void); | |
5221 EXTERN void rBAT_PlusFVO (void); | |
5222 EXTERN void rBAT_PlusFPO (void); | |
5223 EXTERN void rBAT_PlusFPI (void); | |
5224 EXTERN void rBAT_PlusFNF (void); | |
5225 EXTERN void rBAT_PlusFNS (void); | |
5226 EXTERN void rBAT_PlusFNC (void); | |
5227 EXTERN void rBAT_PlusFHS (void); | |
5228 EXTERN void rBAT_PlusFPS (void); | |
5229 EXTERN void rBAT_PlusFTC (void); | |
5230 EXTERN void rBAT_PlusILRR (void); | |
5231 EXTERN void rBAT_BUSY (void); | |
5232 EXTERN void rBAT_NO_ANSWER (void); | |
5233 EXTERN void rBAT_PercentSIMREM (void); | |
5234 EXTERN void rBAT_PlusCLIR (void); | |
5235 EXTERN void rBAT_PercentCOLR (void); | |
5236 EXTERN void rBAT_PlusCSSI (void); | |
5237 EXTERN void rBAT_PlusCSSU (void); | |
5238 EXTERN void rBAT_PlusCUSD (void); | |
5239 EXTERN void rBAT_PlusCCFC (void); | |
5240 EXTERN void rBAT_PlusCLCK (void); | |
5241 EXTERN void rBAT_PlusCIMI (void); | |
5242 #ifdef SIM_TOOLKIT | |
5243 EXTERN void rBAT_PercentSATI (void); | |
5244 EXTERN void rBAT_PercentSATE (void); | |
5245 #endif | |
5246 EXTERN void rBAT_PercentKSIR (void); | |
5247 EXTERN void rBAT_PercentCPI (void); | |
5248 EXTERN void rBAT_PercentCTYI (void); | |
5249 EXTERN void rBAT_PlusCNUM (void); | |
5250 EXTERN void rBAT_PlusCPOL (void); | |
5251 EXTERN void rBAT_PlusCCCM (void); | |
5252 EXTERN void rBAT_PercentCTV (void); | |
5253 #ifdef SIM_TOOLKIT | |
5254 EXTERN void rBAT_PercentSATN (void); | |
5255 EXTERN void rBAT_PercentSATA (void); | |
5256 #endif /* SIM_TOOLKIT */ | |
5257 EXTERN void rBAT_sms_ready (void); | |
5258 EXTERN void rBAT_phb_status (void); | |
5259 EXTERN void rBAT_PercentSIMINS (void); | |
5260 EXTERN void rBAT_PlusCRSM (void); | |
5261 EXTERN void rBAT_PlusCSIM (void); | |
5262 EXTERN void rBAT_PercentCCBS (void); | |
5263 EXTERN void rBAT_PlusCCWV (void); | |
5264 EXTERN void rBAT_PercentCNAP (void); | |
5265 EXTERN void rBAT_SignalSMS (void); | |
5266 EXTERN void rBAT_PlusCLAN (void); | |
5267 EXTERN void rBAT_PlusCLAE (void); | |
5268 EXTERN void rBAT_PercentCSQ (void); | |
5269 EXTERN void rBAT_PercentALS (void); | |
5270 EXTERN void rBAT_PlusCTZV (void); | |
5271 EXTERN void rBAT_PercentCREG (void); | |
5272 #ifdef GPRS | |
5273 EXTERN void rBAT_PlusCGACT (void); | |
5274 EXTERN void rBAT_PlusCGDATA (void); | |
5275 EXTERN void rBAT_PlusCGANS (void); | |
5276 EXTERN void rBAT_PlusCGEREP (void); | |
5277 EXTERN void rBAT_PlusCGREG (void); | |
5278 EXTERN void rBAT_changedQOS (void); | |
5279 EXTERN void rBAT_PercentSNCNT (void); | |
5280 EXTERN void rBAT_PercentCGREG (void); | |
5281 #endif /* GPRS */ | |
5282 EXTERN void rBAT_PercentEM (void); | |
5283 EXTERN void rBAT_PercentEMET (void); | |
5284 EXTERN void rBAT_PercentEMETS (void); | |
5285 EXTERN void rBAT_PercentCPNUMS (void); | |
5286 EXTERN void rBAT_PercentCPVWI (void); | |
5287 EXTERN void rBAT_PercentCPROAM (void); | |
5288 EXTERN void rBAT_PlusCIEV (void); | |
5289 EXTERN void rBAT_PercentRDL (void); | |
5290 EXTERN void rBAT_PercentRDLB (void); | |
5291 EXTERN void rBAT_PercentCCCN (void); | |
5292 EXTERN void rBAT_PercentCSSN (void); | |
5293 EXTERN void rBAT_PercentCSTAT (void); | |
5294 EXTERN void rBAT_Z (void); | |
5295 EXTERN void rBAT_PercentCPRSM (void); | |
5296 EXTERN void rBAT_PercentCTZV (void); | |
5297 EXTERN void rBAT_PercentCNIV (void); | |
5298 #ifdef GPRS | |
5299 EXTERN void rBAT_PercentCGEV (void); | |
5300 #endif /* GPRS */ | |
5301 EXTERN void rBAT_PercentCPRI (void); | |
5302 EXTERN void rBAT_PercentSIMEF (void); | |
5303 #endif /* FF_BAT */ | |
5304 | |
5305 EXTERN void rAT_PercentCMGL ( void ); | |
5306 EXTERN void rBAT_PercentCMGR (void); | |
5307 EXTERN void rBAT_PercentCMGL (void); | |
5308 | |
5309 /*lint -restore */ | |
5310 #else /* CMH_F_C */ | |
5311 | |
5312 EXTERN void rAT_OK ( T_ACI_AT_CMD ); | |
5313 EXTERN void rAT_NO_CARRIER( T_ACI_AT_CMD cmdId, | |
5314 SHORT cId ); | |
5315 EXTERN void rAT_CONNECT ( T_ACI_AT_CMD cmdId, | |
5316 T_ACI_BS_SPEED speed, | |
5317 SHORT cId ); | |
5318 EXTERN void rAT_BUSY ( T_ACI_AT_CMD cmdId, | |
5319 SHORT cId ); | |
5320 EXTERN void rAT_NO_ANSWER ( T_ACI_AT_CMD cmdId, | |
5321 SHORT cId ); | |
5322 EXTERN void rAT_PlusCME ( T_ACI_AT_CMD cmdId, | |
5323 T_ACI_CME_ERR err ); | |
5324 EXTERN void rAT_PlusCMS ( T_ACI_AT_CMD cmdId, | |
5325 T_ACI_CMS_ERR err, | |
5326 T_EXT_CMS_ERROR * conc_error); | |
5327 EXTERN void rAT_PlusCOPS ( SHORT lastIdx, | |
5328 T_ACI_COPS_OPDESC * operLst); | |
5329 EXTERN void rAT_PercentCOPS ( SHORT lastIdx, | |
5330 T_ACI_COPS_OPDESC * operLst); | |
5331 EXTERN void rAT_PlusCPIN ( T_ACI_CPIN_RSLT rslt ); | |
5332 EXTERN void rAT_PlusCREG ( T_ACI_CREG_STAT status , | |
5333 USHORT lac, | |
5334 USHORT cid ); | |
5335 EXTERN void rAT_PercentCREG ( T_ACI_CREG_STAT status , | |
5336 USHORT lac, | |
5337 USHORT cid, | |
5338 T_ACI_P_CREG_GPRS_IND gprs_ind); | |
5339 EXTERN void rAT_PlusCRING ( T_ACI_CRING_MOD mode, | |
5340 T_ACI_CRING_TYP type1, | |
5341 T_ACI_CRING_TYP type2 ); | |
5342 EXTERN void rAT_PlusCRING_OFF ( SHORT cId ); | |
5343 #ifdef NO_ASCIIZ | |
5344 EXTERN void rAT_PlusCLIP ( T_ACI_CLIP_STAT stat, | |
5345 CHAR * number, | |
5346 T_ACI_TOA * type, | |
5347 U8 validity, | |
5348 CHAR * subaddr, | |
5349 T_ACI_TOS * satype, | |
5350 T_ACI_PB_TEXT * alpha); | |
5351 #else /* ifdef NO_ASCIIZ */ | |
5352 EXTERN void rAT_PlusCLIP ( T_ACI_CLIP_STAT stat, | |
5353 CHAR * number, | |
5354 T_ACI_TOA * type, | |
5355 U8 validity, | |
5356 CHAR * subaddr, | |
5357 T_ACI_TOS * satype, | |
5358 CHAR * alpha); | |
5359 #endif /* ifdef NO_ASCIIZ */ | |
5360 | |
5361 EXTERN void rAT_PlusCDIP ( CHAR * number, | |
5362 T_ACI_TOA * type, | |
5363 CHAR * subaddr, | |
5364 T_ACI_TOS * satype); | |
5365 | |
5366 | |
5367 EXTERN void rAT_PlusCLIR ( T_ACI_CLIR_MOD mode, | |
5368 T_ACI_CLIR_STAT stat); | |
5369 #ifdef NO_ASCIIZ | |
5370 EXTERN void rAT_PlusCOLP ( T_ACI_COLP_STAT stat, | |
5371 CHAR * number, | |
5372 T_ACI_TOA * type, | |
5373 CHAR * subaddr, | |
5374 T_ACI_TOS * satype, | |
5375 T_ACI_PB_TEXT * alpha); | |
5376 #else /* ifdef NO_ASCIIZ */ | |
5377 EXTERN void rAT_PlusCOLP ( T_ACI_COLP_STAT stat, | |
5378 CHAR * number, | |
5379 T_ACI_TOA * type, | |
5380 CHAR * subaddr, | |
5381 T_ACI_TOS * satype, | |
5382 CHAR * alpha); | |
5383 #endif /* ifdef NO_ASCIIZ */ | |
5384 EXTERN void rAT_PlusDR ( T_ACI_DR_TYP type ); | |
5385 EXTERN void rAT_PlusCR ( T_ACI_CR_SERV service); | |
5386 EXTERN void rAT_PlusCLCK ( T_ACI_CLSSTAT * clsStat); | |
5387 EXTERN void rAT_PlusCCFC ( T_ACI_CCFC_SET* setting); | |
5388 #ifdef NO_ASCIIZ | |
5389 EXTERN void rAT_PlusCCWA ( T_ACI_CLSSTAT * clsStat, | |
5390 CHAR * number, | |
5391 T_ACI_TOA * type, | |
5392 U8 validity, | |
5393 T_ACI_CLASS class_type, | |
5394 T_ACI_PB_TEXT * alpha); | |
5395 #else /* ifdef NO_ASCIIZ */ | |
5396 EXTERN void rAT_PlusCCWA ( T_ACI_CLSSTAT * clsStat, | |
5397 CHAR * number, | |
5398 T_ACI_TOA * type, | |
5399 U8 validity, | |
5400 T_ACI_CLASS class_type, | |
5401 CHAR * alpha); | |
5402 #endif /* ifdef NO_ASCIIZ */ | |
5403 EXTERN void rAT_PlusCSMS ( T_ACI_CSMS_SERV service, | |
5404 T_ACI_CSMS_SUPP mt, | |
5405 T_ACI_CSMS_SUPP mo, | |
5406 T_ACI_CSMS_SUPP bm); | |
5407 EXTERN void rAT_PlusCPMS ( T_ACI_SMS_STOR_OCC * mem1, | |
5408 T_ACI_SMS_STOR_OCC * mem2, | |
5409 T_ACI_SMS_STOR_OCC * mem3); | |
5410 EXTERN void rAT_PlusCMS ( T_ACI_AT_CMD cmdId, | |
5411 T_ACI_CMS_ERR err, | |
5412 T_EXT_CMS_ERROR * conc_error); | |
5413 EXTERN void rAT_PlusCBMI ( T_ACI_SMS_STOR mem, | |
5414 UBYTE index); | |
5415 EXTERN void rAT_PlusCMT ( T_ACI_CMGL_SM* sm); | |
5416 | |
5417 EXTERN void rAT_PlusCMTI ( T_ACI_SMS_STOR mem, | |
5418 UBYTE index, | |
5419 T_ACI_CMGL_SM* sm); | |
5420 EXTERN void rAT_PlusCMGS ( UBYTE mr, | |
5421 UBYTE numSeg); | |
5422 EXTERN void rAT_PlusCMSS ( UBYTE mr, | |
5423 UBYTE numSeg); | |
5424 EXTERN void rAT_PlusCMGW ( UBYTE index, | |
5425 UBYTE numSeg); | |
5426 EXTERN void rAT_PlusCMGC ( UBYTE mr); | |
5427 EXTERN void rAT_PlusCDS ( T_ACI_CDS_SM* st); | |
5428 | |
5429 EXTERN void rAT_PlusCDSPdu(T_MNSMS_STATUS_IND * mnsms_status_ind); | |
5430 | |
5431 EXTERN void rAT_PlusCBM ( SHORT sn, | |
5432 SHORT mid, | |
5433 SHORT dcs, | |
5434 UBYTE page, | |
5435 UBYTE pages, | |
5436 T_ACI_CBM_DATA* data); | |
5437 EXTERN void rAT_PlusILRR ( T_ACI_BS_SPEED speed, | |
5438 T_ACI_BS_FRM format, | |
5439 T_ACI_BS_PAR parity); | |
5440 EXTERN void rAT_PlusCMGR ( T_ACI_CMGL_SM* sm, | |
5441 T_ACI_CMGR_CBM* cbm ); | |
5442 EXTERN void rAT_PlusCMGD ( ); | |
5443 EXTERN void rAT_PlusCMGL ( T_ACI_CMGL_SM *smLst); | |
5444 EXTERN void rAT_PlusCUSD ( T_ACI_CUSD_MOD m, | |
5445 T_ACI_USSD_DATA *ussd, | |
5446 SHORT dcs); | |
5447 EXTERN void rAT_PlusCCCM ( LONG *ccm); | |
5448 EXTERN void rAT_PlusCSSI ( T_ACI_CSSI_CODE code, | |
5449 SHORT index); | |
5450 EXTERN void rAT_PlusCSSU ( T_ACI_CSSU_CODE code, | |
5451 SHORT index, | |
5452 CHAR *number, | |
5453 T_ACI_TOA *type, | |
5454 CHAR *subaddr, | |
5455 T_ACI_TOS *satype); | |
5456 EXTERN void rAT_PercentCCCN ( T_ACI_FAC_DIR tDirection, | |
5457 SHORT cId, | |
5458 T_fac_inf *acFie ); | |
5459 EXTERN void rAT_PercentCSSN ( T_ACI_FAC_DIR tDirection, | |
5460 T_ACI_FAC_TRANS_TYPE tType, | |
5461 T_fac_inf *acFie ); | |
5462 | |
5463 EXTERN void rAT_PlusCPOL ( SHORT startIdx, | |
5464 SHORT lastIdx, | |
5465 T_ACI_CPOL_OPDESC *operLst, | |
5466 SHORT usdNtry ); | |
5467 | |
5468 EXTERN void rAT_PlusCLAN ( T_ACI_LAN_SUP *CLang); | |
5469 EXTERN void rAT_PlusCLAE ( T_ACI_LAN_SUP *CLang); | |
5470 | |
5471 EXTERN void rAT_PercentCSQ (UBYTE rssi, UBYTE ber, UBYTE actlevel); | |
5472 | |
5473 EXTERN void rAT_PlusCIMI ( CHAR *imsi); | |
5474 EXTERN void rAT_PlusCNUM ( T_ACI_CNUM_MSISDN *msisdn, | |
5475 UBYTE num ); | |
5476 EXTERN void rAT_PlusCRSM ( SHORT sw1, | |
5477 SHORT sw2, | |
5478 SHORT rspLen, | |
5479 UBYTE *rsp ); | |
5480 EXTERN void rAT_PlusCSIM ( SHORT rspLen, | |
5481 UBYTE *rsp ); | |
5482 EXTERN void rAT_PlusCCWV ( T_ACI_CCWV_CHRG charging ); | |
5483 EXTERN void rAT_PercentSQ ( BYTE segm); | |
5484 EXTERN void rAT_PercentBC ( BYTE segm); | |
5485 EXTERN void rAT_PercentDRV( T_ACI_DRV_DEV device, | |
5486 T_ACI_DRV_FCT function, | |
5487 UBYTE val1, | |
5488 UBYTE val2); | |
5489 EXTERN void rAT_PercentSIMREM( T_ACI_SIMREM_TYPE srType ); | |
5490 EXTERN void rAT_PercentSIMINS( T_ACI_CME_ERR err ); | |
5491 EXTERN void rAT_PercentCOLR ( T_ACI_COLR_STAT stat); | |
5492 EXTERN void rAT_PercentCLOG ( T_ACI_CLOG *cmd ); | |
5493 EXTERN void rAT_PercentKSIR ( T_ACI_KSIR *ksStat); | |
5494 EXTERN void rAT_PercentCPI ( SHORT cId, | |
5495 T_ACI_CPI_MSG msgType, | |
5496 T_ACI_CPI_IBT ibt, | |
5497 T_ACI_CPI_TCH tch, | |
5498 USHORT cause ); | |
5499 EXTERN void rAT_PercentCSTAT (T_ACI_STATE_MSG msgType); | |
5500 | |
5501 EXTERN void rAT_PercentCPRSM (T_ACI_CPRSM_MOD mode); | |
5502 | |
5503 EXTERN void rAT_PercentALS ( T_ACI_ALS_MOD ALSmode ); | |
5504 | |
5505 EXTERN void rAT_PercentCTYI ( T_ACI_CTTY_NEG neg, | |
5506 T_ACI_CTTY_TRX trx ); | |
5507 EXTERN void rAT_PercentCTV ( void ); | |
5508 | |
5509 #ifdef SIM_TOOLKIT | |
5510 EXTERN void rAT_PercentSATI ( SHORT len, | |
5511 UBYTE *satCmd); | |
5512 EXTERN void rAT_PercentSATE ( SHORT len, | |
5513 UBYTE *satCmd); | |
5514 EXTERN void rAT_PercentSATN ( SHORT len, | |
5515 UBYTE *satCmd, | |
5516 T_ACI_SATN_CNTRL_TYPE cntrl_type); | |
5517 #ifdef FF_SAT_E | |
5518 EXTERN void rAT_PercentSATA ( SHORT cId, | |
5519 LONG rdlTimeout_ms, | |
5520 T_ACI_SATA_ADD *addParm); | |
5521 #else | |
5522 EXTERN void rAT_PercentSATA ( SHORT cId, | |
5523 LONG rdlTimeout_ms); | |
5524 #endif /* FF_SAT_E */ | |
5525 | |
5526 EXTERN void rAT_SatFUN ( int ref, T_SIM_FILE_UPDATE_IND* mmi_insert_ind ); | |
5527 EXTERN void rAT_SatFRN ( int ref, T_SIM_FILE_UPDATE_IND* mmi_insert_ind ); | |
5528 | |
5529 #endif /* SIM_TOOLKIT */ | |
5530 EXTERN void rAT_PercentCCBS ( T_ACI_CCBS_IND indct, | |
5531 T_ACI_CCBS_STAT status, | |
5532 T_ACI_CCBS_SET *setting ); | |
5533 EXTERN void rAT_PercentCNAP ( T_callingName *NameId, T_ACI_CNAP_STATUS status ); | |
5534 #ifdef FF_TIMEZONE | |
5535 EXTERN void rAT_PlusCTZV ( S32 time_zone ); | |
5536 #else | |
5537 EXTERN void rAT_PlusCTZV ( UBYTE* time_zone ); | |
5538 #endif /*FF_TIMEZONE*/ | |
5539 /*#ifdef FF_MMI_RIV*/ | |
5540 EXTERN void rAT_PercentCTZV ( T_MMR_INFO_IND *mmr_info_ind, S32 timezone); | |
5541 EXTERN void rAT_PercentCNIV ( T_MMR_INFO_IND *mmr_info_ind); | |
5542 /*#endif*/ | |
5543 EXTERN void rAT_SignalSMS ( UBYTE state ); | |
5544 | |
5545 EXTERN void rAT_phb_status ( T_ACI_PB_STAT status ); | |
5546 EXTERN void rAT_sms_ready ( void ); | |
5547 | |
5548 EXTERN void rAT_PlusCIEV( T_ACI_MM_CIND_VAL_TYPE sCindValues, T_ACI_MM_CMER_VAL_TYPE sCmerSettings ); | |
5549 | |
5550 #ifdef FF_EM_MODE | |
5551 EXTERN void rAT_PercentEM ( T_EM_VAL *val_tmp ); | |
5552 EXTERN void rAT_PercentEMET ( T_EM_VAL val_tmp ); | |
5553 EXTERN void rAT_PercentEMETS ( UBYTE entity ); | |
5554 #endif /* FF_EM_MODE */ | |
5555 | |
5556 EXTERN void rAT_PercentRDL(T_ACI_CC_REDIAL_STATE state); | |
5557 EXTERN void rAT_PercentRDLB(T_ACI_CC_RDL_BLACKL_STATE state); | |
5558 | |
5559 EXTERN void rAT_Z ( void ); | |
5560 | |
5561 EXTERN void rAT_PercentCPRI ( UBYTE gsm_ciph, | |
5562 UBYTE gprs_ciph ); | |
5563 | |
5564 EXTERN void rAT_PercentSIMEF( SHORT *ef, | |
5565 UBYTE count); | |
5566 | |
5567 EXTERN void rAT_PercentCMGR ( T_ACI_CMGL_SM* sm, | |
5568 T_ACI_CMGR_CBM* cbm ); | |
5569 | |
5570 EXTERN void rAT_PercentCMGL ( T_ACI_CMGL_SM *smLst); | |
5571 | |
5572 #endif /* CMH_F_C */ | |
5573 | |
5574 EXTERN void rAT_PercentRLOG ( T_ACI_RLOG *rslt ); | |
5575 #ifdef FF_WAP | |
5576 EXTERN void rAT_WAP_PPP_connected(SHORT cId,ULONG IPAddress); | |
5577 | |
5578 EXTERN void rAT_WAP_start_login(void); | |
5579 EXTERN void rAT_WAP_start_gprs_login(void); | |
5580 | |
5581 EXTERN void rAT_WAP_call_disconnected(SHORT cId); | |
5582 #endif /* WAP */ | |
5583 | |
5584 #endif /*#if defined SMI OR defined MFW OR FF_MMI_RIV*/ | |
5585 | |
5586 #ifdef MFW | |
5587 /* MMI TEST */ | |
5588 EXTERN void rAT_PercentMMITEST(char *param); | |
5589 #endif | |
5590 | |
5591 /*--------------- call-backs for AT CI ----------------------------*/ | |
5592 | |
5593 #ifdef CMH_F_C /*lint -save -e18 */ /* Turn off Lint errors for this "construct" */ | |
5594 | |
5595 EXTERN void rCI_OK ( void ); | |
5596 EXTERN void rCI_NO_CARRIER ( void ); | |
5597 EXTERN void rCI_CONNECT ( void ); | |
5598 EXTERN void rCI_BUSY ( void ); | |
5599 EXTERN void rCI_NO_ANSWER ( void ); | |
5600 EXTERN void rCI_PlusCME ( void ); | |
5601 EXTERN void rCI_PlusCOPS ( void ); | |
5602 EXTERN void rCI_PercentCOPS ( void ); | |
5603 EXTERN void rCI_PlusCPIN ( void ); | |
5604 EXTERN void rCI_PlusCREG ( void ); | |
5605 EXTERN void rCI_PercentCREG ( void ); | |
5606 EXTERN void rCI_PlusCRING ( void ); | |
5607 EXTERN void rCI_PlusCRING_OFF ( void ); | |
5608 EXTERN void rCI_PlusCLIP ( void ); | |
5609 EXTERN void rCI_PlusCDIP ( void ); | |
5610 EXTERN void rCI_PlusCLIR ( void ); | |
5611 EXTERN void rCI_PercentCSQ ( void ); | |
5612 EXTERN void rCI_PlusCOLP ( void ); | |
5613 EXTERN void rCI_PlusDR ( void ); | |
5614 EXTERN void rCI_PlusCR ( void ); | |
5615 EXTERN void rCI_PlusCLCK ( void ); | |
5616 EXTERN void rCI_PlusCCFC ( void ); | |
5617 EXTERN void rCI_PlusCCWA ( void ); | |
5618 EXTERN void rCI_PlusCSMS ( void ); | |
5619 EXTERN void rCI_PlusCPMS ( void ); | |
5620 EXTERN void rCI_PlusCMS ( void ); | |
5621 EXTERN void rCI_PlusCBMI ( void ); | |
5622 EXTERN void rCI_PlusCMT ( void ); | |
5623 EXTERN void rCI_PlusCMTI ( void ); | |
5624 EXTERN void rCI_PlusCMGS ( void ); | |
5625 EXTERN void rCI_PlusCMSS ( void ); | |
5626 EXTERN void rCI_PlusCMGW ( void ); | |
5627 EXTERN void rCI_PlusCMGC ( void ); | |
5628 EXTERN void rCI_PlusCMGD ( void ); | |
5629 EXTERN void rCI_PlusCDS ( void ); | |
5630 EXTERN void rCI_PlusCBM ( void ); | |
5631 EXTERN void rCI_PlusILRR ( void ); | |
5632 EXTERN void rCI_PlusCMGR ( void ); | |
5633 EXTERN void rCI_PlusCMGL ( void ); | |
5634 EXTERN void rCI_PlusCUSD ( void ); | |
5635 EXTERN void rCI_PlusCCCM ( void ); | |
5636 EXTERN void rCI_PlusCSSI ( void ); | |
5637 EXTERN void rCI_PlusCSSU ( void ); | |
5638 EXTERN void rCI_PlusCPOL ( void ); | |
5639 | |
5640 EXTERN void rCI_PlusCLAN ( void ); | |
5641 EXTERN void rCI_PlusCLAE ( void ); | |
5642 | |
5643 EXTERN void rCI_PlusCIMI ( void ); | |
5644 EXTERN void rCI_PlusCNUM ( void ); | |
5645 EXTERN void rCI_PlusCRSM ( void ); | |
5646 EXTERN void rCI_PlusCSIM ( void ); | |
5647 EXTERN void rCI_PlusCCWV ( void ); | |
5648 EXTERN void rCI_PercentSQ ( void ); | |
5649 EXTERN void rCI_PercentBC ( void ); | |
5650 EXTERN void rCI_PercentDRV ( void ); | |
5651 EXTERN void rCI_PercentSIMREM ( void ); | |
5652 EXTERN void rCI_PercentSIMINS ( void ); | |
5653 EXTERN void rCI_PercentCOLR ( void ); | |
5654 EXTERN void rCI_PercentKSIR ( void ); | |
5655 EXTERN void rCI_PercentCPI ( void ); | |
5656 EXTERN void rCI_PercentCSTAT ( void ); | |
5657 | |
5658 EXTERN void rCI_PercentCTYI ( void ); | |
5659 EXTERN void rCI_PercentCTV ( void ); | |
5660 EXTERN void rCI_PercentCCCN ( void ); | |
5661 EXTERN void rCI_PercentCSSN ( void ); | |
5662 #ifdef SIM_TOOLKIT | |
5663 EXTERN void rCI_PercentSATI ( void ); | |
5664 EXTERN void rCI_PercentSATE ( void ); | |
5665 EXTERN void rCI_PercentSATN ( void ); | |
5666 EXTERN void rCI_PercentSATA ( void ); | |
5667 #endif /* SIM_TOOLKIT */ | |
5668 EXTERN void rCI_PercentCCBS ( void ); | |
5669 EXTERN void rCI_PercentCNAP ( void ); | |
5670 EXTERN void rCI_PlusCTZV ( void ); | |
5671 EXTERN void rCI_PercentCTZV ( void ); | |
5672 EXTERN void rCI_PercentCNIV ( void ); | |
5673 | |
5674 EXTERN void rCI_SignalSMS ( void ); | |
5675 EXTERN void rCI_PercentCPRSM ( void ); | |
5676 | |
5677 EXTERN void rCI_phb_status ( void ); | |
5678 EXTERN void rCI_sms_ready ( void ); | |
5679 #ifdef FF_EM_MODE | |
5680 EXTERN void rCI_PercentEM ( void ); | |
5681 EXTERN void rCI_PercentEMET ( void ); | |
5682 EXTERN void rCI_PercentEMETS ( void ); | |
5683 #endif /* FF_EM_MODE */ | |
5684 #if defined FF_EOTD | |
5685 EXTERN void rCI_PlusCLPS ( void ); | |
5686 #endif | |
5687 EXTERN void rCI_PercentALS ( void ); | |
5688 EXTERN void rCI_PercentRDL ( void ); | |
5689 EXTERN void rCI_PercentRDLB ( void ); | |
5690 EXTERN void rCI_PlusCIEV ( void ); | |
5691 EXTERN void rCI_PercentCSTAT ( void ); | |
5692 EXTERN void rCI_Z ( void ); | |
5693 EXTERN void rCI_PercentCPRI ( void ); | |
5694 EXTERN void rCI_PercentSIMEF ( void ); | |
5695 | |
5696 EXTERN void rCI_PercentCMGR ( void ); | |
5697 EXTERN void rCI_PercentCMGL ( void ); | |
5698 | |
5699 /*lint -restore */ | |
5700 #else | |
5701 | |
5702 EXTERN void rCI_OK ( T_ACI_AT_CMD cmdId ); | |
5703 EXTERN void rCI_NO_CARRIER( T_ACI_AT_CMD cmdId, | |
5704 SHORT cId ); | |
5705 EXTERN void rCI_CONNECT ( T_ACI_AT_CMD cmdId, | |
5706 T_ACI_BS_SPEED speed, | |
5707 SHORT cId, | |
5708 BOOL flow_cntr); | |
5709 EXTERN void rCI_BUSY ( T_ACI_AT_CMD cmdId, | |
5710 SHORT cId ); | |
5711 EXTERN void rCI_NO_ANSWER ( T_ACI_AT_CMD cmdId, | |
5712 SHORT cId ); | |
5713 EXTERN void rCI_PlusCME ( T_ACI_AT_CMD cmdId, | |
5714 T_ACI_CME_ERR err ); | |
5715 EXTERN void rCI_PlusCOPS ( SHORT lastIdx, | |
5716 T_ACI_COPS_OPDESC * operLst); | |
5717 EXTERN void rCI_PercentCOPS ( SHORT lastIdx, | |
5718 T_ACI_COPS_OPDESC * operLst); | |
5719 EXTERN void rCI_PlusCPIN ( T_ACI_CPIN_RSLT rslt ); | |
5720 EXTERN void rCI_PlusCREG ( T_ACI_CREG_STAT status, | |
5721 USHORT lac, | |
5722 USHORT cid ); | |
5723 EXTERN void rCI_PercentCREG ( T_ACI_CREG_STAT status, | |
5724 USHORT lac, | |
5725 USHORT cid, | |
5726 T_ACI_P_CREG_GPRS_IND gprs_ind); | |
5727 EXTERN void rCI_PlusCRING ( T_ACI_CRING_MOD mode, | |
5728 T_ACI_CRING_TYP type1, | |
5729 T_ACI_CRING_TYP type2 ); | |
5730 EXTERN void rCI_PlusCRING_OFF ( SHORT cId ); | |
5731 | |
5732 EXTERN void rCI_PercentCSQ(UBYTE rssi, UBYTE ber, UBYTE actlevel); | |
5733 | |
5734 #ifdef NO_ASCIIZ | |
5735 EXTERN void rCI_PlusCLIP ( T_ACI_CLIP_STAT stat, | |
5736 CHAR * number, | |
5737 T_ACI_TOA * type, | |
5738 U8 validity, | |
5739 CHAR * subaddr, | |
5740 T_ACI_TOS * satype, | |
5741 T_ACI_PB_TEXT * alpha); | |
5742 #else /* ifdef NO_ASCIIZ */ | |
5743 EXTERN void rCI_PlusCLIP ( T_ACI_CLIP_STAT stat, | |
5744 CHAR * number, | |
5745 T_ACI_TOA * type, | |
5746 U8 validity, | |
5747 CHAR * subaddr, | |
5748 T_ACI_TOS * satype, | |
5749 CHAR * alpha); | |
5750 #endif /* ifdef NO_ASCIIZ */ | |
5751 | |
5752 EXTERN void rCI_PlusCDIP ( CHAR * number, | |
5753 T_ACI_TOA * type, | |
5754 CHAR * subaddr, | |
5755 T_ACI_TOS * satype); | |
5756 | |
5757 | |
5758 EXTERN void rCI_PlusCLIR ( T_ACI_CLIR_MOD mode, | |
5759 T_ACI_CLIR_STAT stat); | |
5760 #ifdef NO_ASCIIZ | |
5761 EXTERN void rCI_PlusCOLP ( T_ACI_COLP_STAT stat, | |
5762 CHAR * number, | |
5763 T_ACI_TOA * type, | |
5764 CHAR * subaddr, | |
5765 T_ACI_TOS * satype, | |
5766 T_ACI_PB_TEXT * alpha); | |
5767 #else /* ifdef NO_ASCIIZ */ | |
5768 EXTERN void rCI_PlusCOLP ( T_ACI_COLP_STAT stat, | |
5769 CHAR * number, | |
5770 T_ACI_TOA * type, | |
5771 CHAR * subaddr, | |
5772 T_ACI_TOS * satype, | |
5773 CHAR * alpha); | |
5774 #endif /* ifdef NO_ASCIIZ */ | |
5775 EXTERN void rCI_PlusDR ( T_ACI_DR_TYP type ); | |
5776 EXTERN void rCI_PlusCR ( T_ACI_CR_SERV service); | |
5777 EXTERN void rCI_PlusCLCK ( T_ACI_CLSSTAT * clsStat); | |
5778 EXTERN void rCI_PlusCCFC ( T_ACI_CCFC_SET* setting); | |
5779 #ifdef NO_ASCIIZ | |
5780 EXTERN void rCI_PlusCCWA ( T_ACI_CLSSTAT * clsStatLst, | |
5781 CHAR * number, | |
5782 T_ACI_TOA * type, | |
5783 U8 validity, | |
5784 T_ACI_CLASS class_type, | |
5785 T_ACI_PB_TEXT * alpha); | |
5786 #else /* ifdef NO_ASCIIZ */ | |
5787 EXTERN void rCI_PlusCCWA ( T_ACI_CLSSTAT * clsStatLst, | |
5788 CHAR * number, | |
5789 T_ACI_TOA * type, | |
5790 U8 validity, | |
5791 T_ACI_CLASS class_type, | |
5792 CHAR * alpha); | |
5793 #endif /* ifdef NO_ASCIIZ */ | |
5794 EXTERN void rCI_PlusCSMS ( T_ACI_CSMS_SERV service, | |
5795 T_ACI_CSMS_SUPP mt, | |
5796 T_ACI_CSMS_SUPP mo, | |
5797 T_ACI_CSMS_SUPP bm); | |
5798 EXTERN void rCI_PlusCPMS ( T_ACI_SMS_STOR_OCC * mem1, | |
5799 T_ACI_SMS_STOR_OCC * mem2, | |
5800 T_ACI_SMS_STOR_OCC * mem3); | |
5801 EXTERN void rCI_PlusCMS ( T_ACI_AT_CMD cmdId, | |
5802 T_ACI_CMS_ERR err, | |
5803 T_EXT_CMS_ERROR * conc_error); | |
5804 EXTERN void rCI_PlusCBMI ( T_ACI_SMS_STOR mem, | |
5805 UBYTE index); | |
5806 EXTERN void rCI_PlusCMT ( T_MNSMS_MESSAGE_IND * mnsms_message_ind); | |
5807 EXTERN void rCI_PlusCMTI ( T_ACI_SMS_STOR mem, | |
5808 UBYTE index); | |
5809 EXTERN void rCI_PlusCMGS ( T_MNSMS_SUBMIT_CNF * mnsms_submit_cnf); | |
5810 EXTERN void rCI_PlusCMSS ( T_MNSMS_SUBMIT_CNF * mnsms_submit_cnf); | |
5811 EXTERN void rCI_PlusCMGW ( UBYTE index); | |
5812 EXTERN void rCI_PlusCMGC ( T_MNSMS_COMMAND_CNF * mnsms_command_cnf); | |
5813 EXTERN void rCI_PlusCMGD ( ); | |
5814 #ifndef CST_EXTS_C | |
5815 EXTERN void rCI_PlusCBM ( T_MMI_CBCH_IND * mmi_cbch_ind); | |
5816 #endif | |
5817 EXTERN void rCI_PlusCDS ( T_MNSMS_STATUS_IND * mnsms_status_ind); | |
5818 EXTERN void rCI_PlusILRR ( T_ACI_BS_SPEED speed, | |
5819 T_ACI_BS_FRM format, | |
5820 T_ACI_BS_PAR parity); | |
5821 EXTERN void rCI_PlusCMGR ( T_MNSMS_READ_CNF* mnsms_read_cnf, | |
5822 T_ACI_CMGR_CBM * cbm); | |
5823 EXTERN void rCI_PlusCMGL ( T_MNSMS_READ_CNF *mnsms_read_cnf); | |
5824 EXTERN void rCI_PlusCUSD ( T_ACI_CUSD_MOD m, | |
5825 T_ACI_USSD_DATA *ussd, | |
5826 SHORT dcs); | |
5827 EXTERN void rCI_PlusCCCM ( LONG *ccm); | |
5828 EXTERN void rCI_PlusCSSI ( T_ACI_CSSI_CODE code, | |
5829 SHORT index); | |
5830 EXTERN void rCI_PlusCSSU ( T_ACI_CSSU_CODE code, | |
5831 SHORT index, | |
5832 CHAR *number, | |
5833 T_ACI_TOA *type, | |
5834 CHAR *subaddr, | |
5835 T_ACI_TOS *satype); | |
5836 EXTERN void rCI_PlusCPOL ( SHORT startIdx, | |
5837 SHORT lastIdx, | |
5838 T_ACI_CPOL_OPDESC *operLst, | |
5839 SHORT usdNtry ); | |
5840 | |
5841 EXTERN void rCI_PlusCLAN ( T_ACI_LAN_SUP *CLang); | |
5842 EXTERN void rCI_PlusCLAE ( T_ACI_LAN_SUP *CLang); | |
5843 | |
5844 EXTERN void rCI_PlusCIMI ( CHAR *imsi); | |
5845 EXTERN void rCI_PlusCNUM ( T_ACI_CNUM_MSISDN *msisdn, | |
5846 UBYTE num ); | |
5847 EXTERN void rCI_PlusCRSM ( SHORT sw1, | |
5848 SHORT sw2, | |
5849 SHORT rspLen, | |
5850 UBYTE *rsp ); | |
5851 EXTERN void rCI_PlusCSIM ( SHORT rspLen, | |
5852 UBYTE *rsp ); | |
5853 EXTERN void rCI_PlusCCWV ( T_ACI_CCWV_CHRG charging ); | |
5854 EXTERN void rCI_PercentSQ ( BYTE segm); | |
5855 EXTERN void rCI_PercentBC ( BYTE segm); | |
5856 EXTERN void rCI_PercentDRV( T_ACI_DRV_DEV device, | |
5857 T_ACI_DRV_FCT function, | |
5858 UBYTE val1, | |
5859 UBYTE val2); | |
5860 EXTERN void rCI_PercentSIMREM( T_ACI_SIMREM_TYPE srType ); | |
5861 EXTERN void rCI_PercentSIMINS( T_ACI_CME_ERR err ); | |
5862 EXTERN void rCI_PercentCOLR ( T_ACI_COLR_STAT stat); | |
5863 EXTERN void rCI_PercentKSIR ( T_ACI_KSIR *ksStat); | |
5864 EXTERN void rCI_PercentCPI ( SHORT cId, | |
5865 T_ACI_CPI_MSG msgType, | |
5866 T_ACI_CPI_IBT ibt, | |
5867 T_ACI_CPI_TCH tch, | |
5868 USHORT cause); | |
5869 EXTERN void rCI_PercentCSTAT (T_ACI_STATE_MSG msgType); | |
5870 | |
5871 EXTERN void rCI_PercentCTYI ( T_ACI_CTTY_NEG neg, | |
5872 T_ACI_CTTY_TRX trx ); | |
5873 | |
5874 EXTERN void rCI_PercentCSSN (T_ACI_FAC_DIR tDirection, | |
5875 T_ACI_FAC_TRANS_TYPE tType, | |
5876 T_fac_inf *fie); | |
5877 #ifdef SIM_TOOLKIT | |
5878 EXTERN void rCI_PercentSATN ( SHORT len, | |
5879 UBYTE *satCmd, | |
5880 T_ACI_SATN_CNTRL_TYPE cntrl_type); | |
5881 #ifdef FF_SAT_E | |
5882 EXTERN void rCI_PercentSATA ( SHORT cId, | |
5883 LONG rdlTimeout_ms, | |
5884 T_ACI_SATA_ADD *addParm); | |
5885 #else | |
5886 EXTERN void rCI_PercentSATA ( SHORT cId, | |
5887 LONG rdlTimeout_ms); | |
5888 #endif /* FF_SAT_E */ | |
5889 EXTERN void rCI_PercentSATI ( SHORT len, | |
5890 UBYTE *satCmd); | |
5891 EXTERN void rCI_PercentSATE ( SHORT len, | |
5892 UBYTE *satCmd); | |
5893 #endif /* SIM_TOOLKIT */ | |
5894 EXTERN void rCI_PercentCCBS ( T_ACI_CCBS_IND indct, | |
5895 T_ACI_CCBS_STAT status, | |
5896 T_ACI_CCBS_SET *setting, | |
5897 BOOL internediate_result); | |
5898 EXTERN void rCI_PercentCNAP ( T_callingName *NameId, T_ACI_CNAP_STATUS status ); | |
5899 #ifdef FF_TIMEZONE | |
5900 EXTERN void rCI_PlusCTZV ( S32 timezone ); | |
5901 #else | |
5902 EXTERN void rCI_PlusCTZV ( UBYTE* timezone ); | |
5903 #endif | |
5904 EXTERN void rCI_PercentCTZV ( T_MMR_INFO_IND *mmr_info_ind, S32 timezone ); | |
5905 EXTERN void rCI_PercentCNIV ( T_MMR_INFO_IND *mmr_info_ind); | |
5906 | |
5907 EXTERN void rCI_PlusCMS_Conc ( T_ACI_AT_CMD cmdId, | |
5908 T_ACI_CMS_ERR err, | |
5909 T_EXT_CMS_ERROR *conc_error ); | |
5910 EXTERN void rCI_SignalSMS ( UBYTE state ); | |
5911 | |
5912 EXTERN void rCI_PercentCPRSM ( T_ACI_CPRSM_MOD mode ); | |
5913 | |
5914 EXTERN void rCI_PercentCTV ( void ); | |
5915 /*EXTERN void rAT_phb_status ( T_ACI_PB_STAT status );*/ | |
5916 EXTERN void rCI_phb_status ( T_ACI_PB_STAT status ); | |
5917 EXTERN void rCI_sms_ready ( void ); | |
5918 #ifdef FF_EM_MODE | |
5919 EXTERN void rCI_PercentEM ( T_EM_VAL * val_tmp ); | |
5920 EXTERN void rCI_PercentEMET ( T_DRV_SIGNAL_EM_EVENT * Signal ); | |
5921 EXTERN void rCI_PercentEMETS ( UBYTE entity ); | |
5922 #endif /* FF_EM_MODE */ | |
5923 | |
5924 | |
5925 EXTERN void rCI_PercentCPRI ( UBYTE gsm_ciph, | |
5926 UBYTE gprs_ciph ); | |
5927 | |
5928 EXTERN void rCI_PercentSIMEF ( SHORT *ef, | |
5929 UBYTE count); | |
5930 #if defined FF_EOTD | |
5931 EXTERN void rCI_PlusCLPS ( UBYTE srcId, T_LOC_POS_DATA * lc_data ); | |
5932 #endif | |
5933 EXTERN void rCI_PercentALS ( T_ACI_ALS_MOD ALSmode ); | |
5934 EXTERN void rCI_PlusCIEV ( T_ACI_MM_CIND_VAL_TYPE sCindValues, | |
5935 T_ACI_MM_CMER_VAL_TYPE sCmerSettings ); | |
5936 EXTERN void rCI_PercentRDL ( T_ACI_CC_REDIAL_STATE state ); | |
5937 EXTERN void rCI_PercentRDLB( T_ACI_CC_RDL_BLACKL_STATE state ); | |
5938 EXTERN void rCI_PercenCCCN ( char *sFieString, T_ACI_FAC_DIR uiDir, short cId ); | |
5939 EXTERN void rCI_PercenCSSN ( char *sFieString, T_ACI_FAC_DIR uiDir, T_ACI_FAC_TRANS_TYPE uiFacTransType ); | |
5940 EXTERN void rCI_Z ( void ); | |
5941 | |
5942 EXTERN void rCI_PercentCMGR ( T_MNSMS_READ_CNF* mnsms_read_cnf, | |
5943 T_ACI_CMGR_CBM * cbm); | |
5944 | |
5945 EXTERN void rCI_PercentCMGL ( T_MNSMS_READ_CNF *mnsms_read_cnf); | |
5946 | |
5947 #endif | |
5948 | |
5949 /*--------------- extension mechansim ----------------------------*/ | |
5950 | |
5951 /*--------------- constants --------------------------------------*/ | |
5952 | |
5953 #define ACI_EXT_STRG_END 0xFF | |
5954 | |
5955 /*--------------- configuration ----------------------------------*/ | |
5956 | |
5957 EXTERN T_ACI_RETURN sAT_CfgEXT ( CHAR** fwrdLst ); | |
5958 | |
5959 /*--------------- Extension Handler -> AT Interpreter ------------*/ | |
5960 | |
5961 EXTERN T_ACI_RETURN sAT_FRI ( USHORT cmdLen ); | |
5962 EXTERN T_ACI_RETURN sAT_URC ( CHAR* out ); | |
5963 | |
5964 /*--------------- AT Interpreter -> Extension Handler ------------*/ | |
5965 | |
5966 EXTERN T_ACI_RETURN rAT_EXT ( CHAR* cmd, | |
5967 USHORT* cmdLen, | |
5968 CHAR* out, | |
5969 USHORT outLen ); | |
5970 EXTERN T_ACI_RETURN rAT_ACP ( CHAR* out, | |
5971 USHORT outLen ); | |
5972 | |
5973 #endif /* ACI_CMH_H */ | |
5974 | |
5975 /*==== EOF ========================================================*/ |