comparison g23m/condat/ms/src/aci/aci_cmh.h @ 0:509db1a7b7b8

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