comparison gsm-fw/g23m-aci/aci/aci_cmh.h @ 775:eedbf248bac0

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