annotate src/g23m-aci/ati_ext/ati_ext_mech.c @ 541:5019764a0e9f

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