FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/g23m-aci/ati_ext/ati_ext_mech.c @ 812:b522307de6f2
aci: psa_ss?.c done
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Sun, 05 Apr 2015 07:58:27 +0000 |
parents | 8eea89c37047 |
children | 1e4dbee8dcfd |
rev | line source |
---|---|
781
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 +----------------------------------------------------------------------------- |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 | Project : |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 | Modul : J:\g23m-aci\aci_ext\ati_ext_mech.c |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 +----------------------------------------------------------------------------- |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 | Copyright 2002 Texas Instruments Berlin, AG |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 | All rights reserved. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 | This file is confidential and a trade secret of Texas |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 | Instruments Berlin, AG |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 | The receipt of or possession of this file does not convey |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 | any rights to reproduce or disclose its contents or to |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 | manufacture, use, or sell anything it may describe, in |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 | whole, or in part, without the specific written consent of |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 | Texas Instruments Berlin, AG. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 +----------------------------------------------------------------------------- |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 | Purpose : This is the implementation of the AT command extension mechanism. Customers |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 | can implement their own handling of extension AT comannds here. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 +----------------------------------------------------------------------------- |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 #ifndef ATI_EXT_MECH_C |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
22 #define ATI_EXT_MECH_C |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
23 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 #include "aci_all.h" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 #include "aci_cmh.h" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 #include "ati_cmd.h" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 #include "aci_cmd.h" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 #include "aci_lst.h" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 #include "ati_int.h" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 #include "ati_ext_mech.h" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
31 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
32 #ifdef FF_BAT |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
33 #include "aci_bat_ext.h" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
34 #endif |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
35 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
36 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
37 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
38 /*==== CONSTANTS ==================================================*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
39 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
40 #define EXT_ATD "EXT: D, I" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
41 #define EXT_ATCFUN "EXT: +CFUN, I" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
42 #define EXT_ATCOPS_START "EXT: +COPS, I" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
43 #define EXT_ATCOPS_STOP "EXT: +COPS, O" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
44 #define EXT_ENTER "EXT: I" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
45 #define EXT_LEAVE "EXT: O" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
46 #define EXT_UNEXPCTD "EXT: E" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
47 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
48 #define EXT_DIAL_VOICE_PASS "DVCP" |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
49 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
50 #define EXT_MAX_BUF_LEN 41 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
51 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
52 #define EXT_VOICE_DELIMITER ';' |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
53 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
54 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
55 /*==== EXTERNALS ======================================================*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
56 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
57 /*==== LOCALS =========================================================*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
58 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
59 /*==== EXPORT ======================================================*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
60 EXTERN UBYTE src_id_ext; /* this source runs currently an extension command */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
61 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
62 /*==== TYPES ======================================================*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
63 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
64 #ifndef WIN32 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
65 extern USHORT IQ_GetBuild(void); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
66 #ifndef ALR |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
67 extern USHORT IQ_GetPoleStarVersion(void); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
68 #endif |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
69 extern USHORT IQ_GetJtagId(void); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
70 extern USHORT IQ_GetRevision(void); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
71 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
72 #endif*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
73 /*==== VARIABLES ==================================================*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
74 LOCAL CHAR extDialNum[MAX_CC_ORIG_NUM_LEN]; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
75 /* number to be dialled during testing */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
76 LOCAL T_ACI_AT_CMD currAbrtCmd = AT_CMD_NONE; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
77 /* used for indicating abort of */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
78 /* asynchronous command handling */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
79 LOCAL T_ACI_AT_CMD currExtCmd_v2 = AT_CMD_NONE; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
80 /* used for indicating asynchronous */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
81 /* command handling */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
82 /* identifier of the call which was */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
83 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
84 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
85 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
86 | PROJECT : GSM-PS (8403) MODULE : TIL_CSF | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
87 | STATE : code ROUTINE : cmh_show_version | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
88 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
89 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
90 PURPOSE : Trace Layer 1 DSP version numbers |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
91 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
92 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
93 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
94 #ifndef WIN32 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
95 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
96 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
97 static void jtagid_to_chipset (USHORT jtagid, CHAR *chipset) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
98 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
99 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
100 switch (jtagid) { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
101 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
102 case 0xB268: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
103 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
104 strcpy (chipset, "Hercules"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
105 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
106 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
107 case 0xB2B5: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
108 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
109 strcpy (chipset, "Ulysse 1Mbits rev. B"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
110 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
111 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
112 case 0xB335: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
113 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
114 strcpy (chipset, "Ulysse 1Mbits rev. A"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
115 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
116 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
117 case 0xB334: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
118 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
119 strcpy (chipset, "Ulysse 2Mbits"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
120 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
121 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
122 case 0xB393: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
123 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
124 strcpy (chipset, "Ulysse G1"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
125 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
126 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
127 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
128 case 0xB396: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
129 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
130 strcpy (chipset, "Calypso rev. B"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
131 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
132 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
133 case 0xB2AC: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
134 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
135 // Samson and Calypso rev. A share the same JTAG ID. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
136 #if (CHIPSET != 7) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
137 strcpy (chipset, "Samson"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
138 #else |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
139 strcpy (chipset, "Calypso rev. A"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
140 #endif |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
141 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
142 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
143 default: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
144 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
145 strcpy (chipset, "Unknown"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
146 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
147 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
148 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
149 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
150 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
151 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
152 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
153 GLOBAL void cmh_show_version (UBYTE src_id ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
154 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
155 #ifndef ALR |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
156 CHAR buf[80]; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
157 USHORT build, hw, rev; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
158 #else |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
159 CHAR buf[160]; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
160 CHAR chipset[25]; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
161 #endif |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
162 USHORT jtag; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
163 UCHAR size; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
164 CHAR *output;*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
165 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
166 * Retrieve hardware JTAG ID info |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
167 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
168 /* jtag = IQ_GetJtagId(); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
169 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
170 #ifndef ALR |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
171 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
172 build = IQ_GetBuild(); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
173 hw = IQ_GetPoleStarVersion(); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
174 rev = IQ_GetRevision(); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
175 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
176 sprintf (buf, "Build %d, Silicon Revision %04X/%04X/%04X", |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
177 build, hw, jtag, rev); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
178 #else |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
179 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
180 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
181 jtagid_to_chipset (jtag, chipset); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
182 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
183 sprintf (buf, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
184 "Chipset Version:\n\r\t%s\n\rS/W Versions:\n\n\r\tTI Layer1\t\t%4X\n\r\tCondat G.2-3\t\t %3X\n\r\tTI Ref. Design Release\t %3X", |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
185 chipset, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
186 SOFTWAREVERSION, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
187 G23VERSION, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
188 SYSTEMVERSION); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
189 #endif |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
190 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
191 // Format output as a list of Pascal-like strings |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
192 size = strlen(buf); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
193 output[0] = size; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
194 strcpy(&(output[1]), buf); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
195 output[size+1] = (CHAR) 0xFF; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
196 sEXT_Output (src_id, ATI_EXT_CMPL_LINE, output); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
197 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
198 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
199 #endif |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
200 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
201 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
202 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
203 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
204 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
205 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
206 | PROJECT : GSM-PS (6147) MODULE : ATI_EXT_MECH | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
207 | STATE : code ROUTINE : aci_to_ext_return_map | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
208 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
209 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
210 PURPOSE : This function is used to map the ACI return values to the EXT return values |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
211 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
212 LOCAL T_ATI_EXT_RETURN aci_to_ext_return_map (T_ACI_RETURN aci_return) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
213 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
214 TRACE_FUNCTION ("aci_to_ext_return_map ()"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
215 switch (aci_return) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
216 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
217 case AT_FAIL: return ATI_EXT_FAIL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
218 case AT_CMPL: return ATI_EXT_CMPL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
219 case AT_EXCT: return ATI_EXT_EXCT; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
220 case AT_BUSY: return ATI_EXT_BUSY; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
221 default: return ATI_EXT_FAIL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
222 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
223 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
224 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
225 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
226 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
227 | PROJECT : GSM-PS (6147) MODULE : ATI_EXT_MECH | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
228 | STATE : code ROUTINE : aci_to_ext_return_map | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
229 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
230 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
231 PURPOSE : This function is used to map the ATI return values to the EXT return values |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
232 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
233 LOCAL T_ATI_EXT_RETURN ati_to_ext_return_map (T_ATI_RSLT ati_return) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
234 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
235 TRACE_FUNCTION ("ati_to_ext_return_map ()"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
236 switch (ati_return) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
237 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
238 case ATI_FAIL: return ATI_EXT_FAIL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
239 case ATI_CMPL: return ATI_EXT_CMPL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
240 case ATI_EXCT: return ATI_EXT_EXCT; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
241 case ATI_BUSY: return ATI_EXT_BUSY; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
242 default: return ATI_EXT_FAIL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
243 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
244 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
245 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
246 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
247 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
248 | PROJECT : GSM-PS (6147) MODULE : ATI_EXT_MECH | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
249 | STATE : code ROUTINE : ext_LeaveEXT_v2 | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
250 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
251 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
252 PURPOSE : This function is called in case the extensin mechansim |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
253 should be left finally. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
254 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
255 LOCAL void ext_LeaveEXT_v2 ( ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
256 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
257 /*indicating that no extended AT command is still in progress*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
258 currExtCmd_v2 = AT_CMD_NONE; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
259 /*indicate end of extended command handling to the AT interpreter*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
260 /* sEXT_Finit();*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
261 sEXT_Indication (src_id_ext, EXT_LEAVE ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
262 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
263 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
264 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
265 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
266 | PROJECT : GSM-PS (6147) MODULE : CMH_EXTS | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
267 | STATE : code ROUTINE : ext_ContinueTest_v2 | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
268 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
269 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
270 PURPOSE : This function is called in case the AT extension |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
271 procedure should be continued. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
272 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
273 <id>: identifies the specific procedure to be continued |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
274 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
275 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
276 LOCAL void ext_ContinueTest_v2 ( CHAR* id ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
277 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
278 T_ACI_RETURN rslt; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
279 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
280 if ( strcmp ( id, EXT_DIAL_VOICE_PASS ) EQ 0 ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
281 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
282 T_ACI_D_TOC callType = D_TOC_Data; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
283 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
284 if ( extDialNum [strlen ( extDialNum ) - 1] EQ EXT_VOICE_DELIMITER ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
285 callType = D_TOC_Voice; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
286 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
287 extDialNum[strlen ( extDialNum ) - 1] = '\0'; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
288 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
289 rslt = sAT_Dn ( CMD_SRC_LCL, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
290 extDialNum, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
291 D_CLIR_OVRD_Default, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
292 D_CUG_CTRL_NotPresent, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
293 callType ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
294 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
295 if ( rslt EQ AT_EXCT ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
296 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
297 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
298 * generate some output at the AT interface |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
299 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
300 sEXT_Indication (src_id_ext, EXT_ATD); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
301 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
302 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
303 * indicating that an extended AT command is still in progress |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
304 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
305 currExtCmd_v2 = AT_CMD_D; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
306 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
307 else if (rslt EQ AT_CMPL) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
308 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
309 sEXT_Confirm (src_id_ext); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
310 ext_LeaveEXT_v2 (); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
311 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
312 else |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
313 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
314 rCI_PlusCME ( AT_CMD_EXT, CME_ERR_Unknown ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
315 ext_LeaveEXT_v2 (); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
316 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
317 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
318 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
319 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
320 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
321 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
322 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
323 | PROJECT : GSM-PS (6147) MODULE : CMH_EXTS | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
324 | STATE : code ROUTINE : ext_OK_v2 | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
325 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
326 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
327 PURPOSE : This function is called in case the positive |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
328 result of the asynchronous command handling is available. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
329 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
330 <cmdId>: command identity |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
331 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
332 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
333 GLOBAL void ext_OK_v2 ( T_ACI_AT_CMD cmdId ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
334 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
335 T_ACI_RETURN rslt; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
336 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
337 if ( cmdId EQ AT_CMD_CFUN AND currAbrtCmd EQ AT_CMD_NONE ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
338 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
339 rslt = sAT_PlusCOPS ( CMD_SRC_LCL, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
340 COPS_MOD_Auto, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
341 COPS_FRMT_NotPresent, |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
342 NULL ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
343 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
344 if ( rslt EQ AT_EXCT ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
345 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
346 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
347 * generate some output at the AT interface |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
348 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
349 sEXT_Output (src_id_ext, ATI_EXT_CMPL_LINE, EXT_ATCOPS_START); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
350 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
351 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
352 * indicating that an extended AT command is still in progress |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
353 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
354 currExtCmd_v2 = AT_CMD_COPS; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
355 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
356 else |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
357 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
358 ext_LeaveEXT_v2 (); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
359 sEXT_Error ( AT_CMD_EXT, CME_ERR_Unknown); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
360 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
361 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
362 else if ( cmdId EQ AT_CMD_COPS AND currAbrtCmd EQ AT_CMD_NONE ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
363 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
364 currExtCmd_v2 = AT_CMD_NONE; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
365 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
366 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
367 * generate some output at the AT interface |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
368 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
369 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
370 sEXT_Indication (AT_CMD_EXT, EXT_ATCOPS_STOP ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
371 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
372 #ifndef WIN32 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
373 ext_ContinueTest_v2 ( EXT_DIAL_VOICE_PASS ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
374 #endif |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
375 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
376 else if ( cmdId EQ AT_CMD_D AND currAbrtCmd EQ AT_CMD_NONE ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
377 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
378 ext_LeaveEXT_v2 (); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
379 sEXT_Confirm( AT_CMD_EXT ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
380 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
381 else if ( currAbrtCmd NEQ AT_CMD_NONE ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
382 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
383 currAbrtCmd = AT_CMD_NONE; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
384 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
385 ext_LeaveEXT_v2 (); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
386 sEXT_Confirm( AT_CMD_EXT ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
387 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
388 else |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
389 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
390 /*generate some output at the AT interface*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
391 sEXT_Output(src_id_ext, ATI_EXT_CMPL_LINE, EXT_UNEXPCTD); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
392 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
393 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
394 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
395 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
396 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
397 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
398 | PROJECT : GSM-PS (6147) MODULE : ATI_EXT_MECH | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
399 | STATE : code ROUTINE : rEXT_Init | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
400 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
401 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
402 PURPOSE : This function is called in the ATI initialization process. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
403 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
404 GLOBAL T_ATI_EXT_RETURN rEXT_Init () |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
405 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
406 #ifdef _SIMULATION_ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
407 static CHAR *cmd_list[] = {"$A", "$B", "%TA", NULL}; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
408 #else /*_SIMULATION_*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
409 static CHAR *cmd_list[] = {NULL}; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
410 //static CHAR *cmd_list[] = {"$A", "$B", "%TA", NULL}; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
411 #endif /*_SIMULATION_*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
412 TRACE_FUNCTION ("rEXT_Init ()"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
413 if (sEXT_Init (cmd_list) EQ ATI_CMPL) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
414 return ATI_EXT_CMPL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
415 else |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
416 return ATI_EXT_FAIL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
417 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
418 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
419 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
420 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
421 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
422 | PROJECT : GSM-PS (6147) MODULE : ATI_EXT_MECH | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
423 | STATE : code ROUTINE : rAT_EXT | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
424 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
425 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
426 PURPOSE : This function is called by ATI in case of the detection of an |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
427 unknown command. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
428 <src_id> : source Id |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
429 <cmd> : remaining unparsed command string. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
430 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
431 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
432 GLOBAL T_ATI_EXT_RETURN rEXT_Execute (UBYTE src_id, CHAR *cmd) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
433 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
434 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
435 TRACE_FUNCTION ("rEXT_Execute ()"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
436 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
437 /*example how to process the command AT$A*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
438 if (*cmd EQ '$') |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
439 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
440 cmd++; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
441 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
442 switch (*cmd++) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
443 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
444 T_ATI_RSLT output_rslt; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
445 case 'A': /*print out string "Hello World"*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
446 output_rslt = ATI_FAIL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
447 if (*cmd EQ '\0') |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
448 output_rslt = sEXT_Output (src_id, ATI_EXT_CMPL_LINE, "Hello World!"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
449 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
450 if (*cmd EQ '=' AND *(cmd+1) EQ '0') |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
451 output_rslt = sEXT_Output (src_id, ATI_EXT_CMPL_LINE, "AT$A is set to off."); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
452 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
453 if (*cmd EQ '=' AND *(cmd+1) EQ '1') |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
454 output_rslt = sEXT_Output (src_id, ATI_EXT_CMPL_LINE, "AT$A is set to on."); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
455 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
456 if (*cmd EQ '=' AND *(cmd+1) EQ '?') |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
457 output_rslt = sEXT_Output (src_id, ATI_EXT_CMPL_LINE, "$A: 0, 1"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
458 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
459 return (ati_to_ext_return_map (output_rslt)); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
460 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
461 case 'B': /*print out a complete string part by part*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
462 sEXT_Output(src_id, ATI_EXT_PART_BEGIN, "This is "); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
463 sEXT_Output(src_id, ATI_EXT_PART_LINE, "a complete "); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
464 sEXT_Output(src_id, ATI_EXT_PART_LAST, "line. "); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
465 return (ATI_EXT_CMPL); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
466 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
467 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
468 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
469 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
470 * example how to process the command AT% commands |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
471 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
472 if (*cmd EQ '%') |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
473 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
474 sEXT_Output (src_id, ATI_EXT_CMPL_LINE, EXT_ENTER); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
475 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
476 cmd++; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
477 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
478 switch (*cmd) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
479 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
480 case 'T': |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
481 case 't': |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
482 /*Enables RTC or AUDIO tests */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
483 cmd++; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
484 if (!strncmp(cmd, "A", 1) || !strncmp(cmd, "a", 1)) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
485 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
486 sEXT_Output (src_id, ATI_EXT_CMPL_LINE, "Performing Audio Tests"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
487 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
488 else |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
489 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
490 if (!strncmp(cmd, "R", 1) || !strncmp(cmd, "r", 1)) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
491 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
492 sEXT_Output (src_id, ATI_EXT_CMPL_LINE, "Performing RTC Tests"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
493 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
494 else |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
495 return( ATI_EXT_FAIL ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
496 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
497 return( ATI_EXT_CMPL ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
498 default: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
499 return ( ATI_EXT_FAIL ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
500 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
501 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
502 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
503 else if ( *cmd EQ 'D' ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
504 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
505 T_ACI_RETURN rslt; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
506 size_t sl1=strlen(cmd); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
507 TRACE_EVENT ("ATD in extension mechanism."); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
508 strncpy ( extDialNum, cmd + 1, MINIMUM ( (MAX_CC_ORIG_NUM_LEN - 1), (sl1 - 1) ) ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
509 extDialNum[MINIMUM ( (MAX_CC_ORIG_NUM_LEN - 1), (sl1 - 1) )] = '\0'; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
510 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
511 rslt = sAT_PlusCFUN ( CMD_SRC_LCL, CFUN_FUN_Full, CFUN_RST_NotPresent ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
512 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
513 if ( rslt EQ AT_EXCT ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
514 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
515 /*generate some output at the AT interface*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
516 sEXT_Output (src_id, ATI_EXT_CMPL_LINE, EXT_ATCFUN); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
517 /*indicating that an extended AT command is still in progress*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
518 currExtCmd_v2 = AT_CMD_CFUN; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
519 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
520 if (rslt EQ AT_FAIL) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
521 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
522 sEXT_Indication(src_id, EXT_LEAVE); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
523 sEXT_Error (src_id, CME_ERR_Unknown); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
524 return ATI_EXT_FAIL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
525 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
526 else if (rslt EQ AT_CMPL) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
527 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
528 ext_LeaveEXT_v2 (); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
529 return ATI_EXT_CMPL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
530 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
531 return ( aci_to_ext_return_map (rslt)); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
532 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
533 return ATI_EXT_FAIL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
534 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
535 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
536 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
537 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
538 | PROJECT : GSM-PS (6147) MODULE : ATI_EXT_MECH | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
539 | STATE : code ROUTINE : rEXT_Abort | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
540 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
541 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
542 PURPOSE : This function is called by the ATI in case of aborting a pending |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
543 extension command. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
544 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
545 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
546 GLOBAL T_ATI_EXT_RETURN rEXT_Abort (UBYTE src_id) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
547 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
548 T_ACI_RETURN rslt = AT_CMPL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
549 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
550 TRACE_FUNCTION ("rEXT_Abort ()"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
551 /* call the abort function if necessary */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
552 if ( currExtCmd_v2 NEQ AT_CMD_NONE ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
553 rslt = sAT_Abort ((T_ACI_CMD_SRC)src_id, currExtCmd_v2 ); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
554 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
555 switch ( rslt ) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
556 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
557 case ( AT_CMPL ): |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
558 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
559 currExtCmd_v2 = AT_CMD_NONE; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
560 sEXT_Indication(src_id, cmdAtError(atOk)); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
561 ext_LeaveEXT_v2(); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
562 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
563 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
564 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
565 case ( AT_EXCT ): |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
566 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
567 currExtCmd_v2 = AT_CMD_ABRT; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
568 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
569 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
570 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
571 default: |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
572 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
573 /* do nothing */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
574 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
575 break; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
576 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
577 return aci_to_ext_return_map (rslt); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
578 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
579 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
580 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
581 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
582 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
583 | PROJECT : GSM-PS (6147) MODULE : ATI_EXT_MECH | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
584 | STATE : code ROUTINE : rEXT_Signal | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
585 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
586 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
587 PURPOSE : This function is called by the ATI when an extension signal is received. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
588 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
589 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
590 GLOBAL T_ATI_EXT_RETURN rEXT_Signal (T_ACI_EXT_IND *aci_ext_ind) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
591 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
592 TRACE_FUNCTION ("rEXT_Signal ()"); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
593 /*The handling of the extension signal can be done here.*/ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
594 sEXT_Output (CMD_SRC_ATI_5, ATI_EXT_CMPL_LINE, "This is an extension signal."); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
595 return ATI_EXT_CMPL; |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
596 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
597 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
598 #ifdef FF_BAT |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
599 /* |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
600 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
601 | PROJECT : GSM-PS (6147) MODULE : ATI_EXT_MECH | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
602 | STATE : code ROUTINE : rEXT_Response_BAT | |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
603 +--------------------------------------------------------------------+ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
604 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
605 PURPOSE : This function is called by BAT Module when customer stuff |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
606 is asynchronously received. |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
607 */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
608 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
609 GLOBAL T_ATI_EXT_RETURN rEXT_Response_BAT (UBYTE src_id, T_BAT_cmd_response *resp) |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
610 { |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
611 return(ATI_EXT_CMPL); |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
612 } |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
613 #endif |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
614 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
615 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
616 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
617 #endif /* ATI_EXT_MECH_C */ |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
618 |
8eea89c37047
gsm-fw/g23m-aci/ati_ext: imported from LoCosto source
Michael Spacefalcon <falcon@ivan.Harhan.ORG>
parents:
diff
changeset
|
619 |