FreeCalypso > hg > fc-tourmaline
comparison src/g23m-aci/aci/aci_mfw.c @ 1:fa8dc04885d8
src/g23m-*: import from Magnetite
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 16 Oct 2020 06:25:50 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
0:4e78acac3d88 | 1:fa8dc04885d8 |
---|---|
1 /* | |
2 +----------------------------------------------------------------------------- | |
3 | Project : GSM-F&D (8411) | |
4 | Modul : ACI_MFW | |
5 +----------------------------------------------------------------------------- | |
6 | Copyright 2002 Texas Instruments Berlin, AG | |
7 | All rights reserved. | |
8 | | |
9 | This file is confidential and a trade secret of Texas | |
10 | Instruments Berlin, AG | |
11 | The receipt of or possession of this file does not convey | |
12 | any rights to reproduce or disclose its contents or to | |
13 | manufacture, use, or sell anything it may describe, in | |
14 | whole, or in part, without the specific written consent of | |
15 | Texas Instruments Berlin, AG. | |
16 +----------------------------------------------------------------------------- | |
17 | Purpose : Only for testing of Conc SMS via the ATI. | |
18 +----------------------------------------------------------------------------- | |
19 */ | |
20 | |
21 | |
22 #ifndef ACI_MFW_C | |
23 #define ACI_MFW_C | |
24 #endif | |
25 | |
26 #include "aci_all.h" | |
27 | |
28 #include "aci_cmh.h" | |
29 #include "ati_cmd.h" | |
30 #include "aci_io.h" | |
31 #include "aci_cmd.h" | |
32 | |
33 #include "aci_fd.h" | |
34 #include "aci_mem.h" | |
35 | |
36 #include "psa.h" | |
37 #include "psa_sms.h" | |
38 | |
39 #include "cmh.h" | |
40 #include "cmh_sms.h" | |
41 | |
42 #include "psa_cc.h" | |
43 | |
44 #include "aci_lst.h" | |
45 | |
46 | |
47 #if defined _CONC_TESTING_ AND defined TI_PS_FF_CONC_SMS | |
48 | |
49 #include "conc_sms.h" | |
50 | |
51 | |
52 #include "aci_mfw.h" | |
53 | |
54 | |
55 | |
56 | |
57 //#define TRACE_CCD /* for CCD Debugging */ | |
58 | |
59 | |
60 /********************************************************************** | |
61 * TEMPORARY ADAPTION FUNCTIONS * | |
62 *********************************************************************/ | |
63 //ALL THE FUNCTIONS BELOW ARE COMMENTED OUT AS THEY WERE FOR TESITNG ONLY | |
64 | |
65 | |
66 GLOBAL void rAT_PlusCMTI_Ext( T_ACI_SMS_STOR mem, | |
67 UBYTE index, | |
68 T_ACI_CMGL_SM* sm) | |
69 { | |
70 | |
71 T_SMS_TYPE smsType; | |
72 T_CONC_ASSEMBLY_RETURN ret; | |
73 T_SM_DATA_EXT data_conc; | |
74 | |
75 TRACE_FUNCTION ("rAT_PlusCMTI_Ext"); | |
76 | |
77 smsType = SMS_getSMSType ( &sm->udh, sm->adress, MODE2); | |
78 | |
79 if (smsType EQ CONCATE) | |
80 { | |
81 ret = concSMS_Collect ( &data_conc, sm, 1, mem); | |
82 | |
83 if (ret EQ CONC_COMPLETED) | |
84 { | |
85 UBYTE i; | |
86 for (i=0; i<CMD_SRC_MAX; i++) | |
87 io_sendMessage(i, (CHAR*)data_conc.data, ATI_NORMAL_OUTPUT); | |
88 ACI_MFREE(data_conc.data); | |
89 } | |
90 | |
91 } | |
92 TRACE_EVENT_P1("smsType: %d", smsType); | |
93 rAT_PlusCMTI( mem, index, sm ); | |
94 } | |
95 | |
96 | |
97 | |
98 GLOBAL void rAT_PlusCMT_Ext (T_ACI_CMGL_SM* sm) | |
99 { | |
100 | |
101 T_SMS_TYPE smsType; | |
102 T_CONC_ASSEMBLY_RETURN ret; | |
103 T_SM_DATA_EXT data_conc; | |
104 | |
105 TRACE_FUNCTION ("rAT_PlusCMT_Ext"); | |
106 | |
107 | |
108 smsType = SMS_getSMSType ( &sm->udh, sm->adress, MODE1); | |
109 | |
110 if (smsType EQ CONCATE) | |
111 { | |
112 ret = concSMS_Collect ( &data_conc, sm, 0, SMS_STOR_NotPresent); | |
113 | |
114 if (ret EQ CONC_COMPLETED) | |
115 { | |
116 UBYTE i; | |
117 for (i=0; i<CMD_SRC_MAX; i++) | |
118 io_sendMessage(i, (CHAR*)data_conc.data, ATI_NORMAL_OUTPUT); | |
119 ACI_MFREE(data_conc.data); | |
120 } | |
121 } | |
122 rAT_PlusCMT(sm); | |
123 } | |
124 | |
125 | |
126 GLOBAL void rAT_PlusCMGR_Ext (T_ACI_CMGL_SM* sm, | |
127 T_ACI_CMGR_CBM* cbm) | |
128 { | |
129 | |
130 T_SMS_TYPE smsType; | |
131 T_CONC_ASSEMBLY_RETURN ret; | |
132 T_SM_DATA_EXT data_conc; | |
133 | |
134 TRACE_FUNCTION ("rAT_PlusCMGR_Ext"); | |
135 | |
136 smsType = SMS_getSMSType ( &sm->udh, sm->adress, MODE3); | |
137 | |
138 if (smsType EQ CONCATE) | |
139 { | |
140 ret = concSMS_Collect ( &data_conc, sm, 0, SMS_STOR_NotPresent); | |
141 | |
142 if (ret EQ CONC_COMPLETED) | |
143 { | |
144 UBYTE i; | |
145 for (i=0; i<CMD_SRC_MAX; i++) | |
146 io_sendMessage(i, (CHAR*)data_conc.data, ATI_NORMAL_OUTPUT); | |
147 ACI_MFREE(data_conc.data); | |
148 } | |
149 } | |
150 rAT_PlusCMGR ( sm, NULL ); | |
151 } | |
152 | |
153 GLOBAL void rAT_PercentCMGR_Ext (T_ACI_CMGL_SM* sm, | |
154 T_ACI_CMGR_CBM* cbm) | |
155 { | |
156 | |
157 T_SMS_TYPE smsType; | |
158 T_CONC_ASSEMBLY_RETURN ret; | |
159 T_SM_DATA_EXT data_conc; | |
160 | |
161 TRACE_FUNCTION ("rAT_PercentCMGR_Ext"); | |
162 | |
163 smsType = SMS_getSMSType ( &sm->udh, sm->adress, MODE3); | |
164 | |
165 if (smsType EQ CONCATE) | |
166 { | |
167 ret = concSMS_Collect ( &data_conc, sm, 0, SMS_STOR_NotPresent); | |
168 | |
169 if (ret EQ CONC_COMPLETED) | |
170 { | |
171 UBYTE i; | |
172 for (i=0; i<CMD_SRC_MAX; i++) | |
173 io_sendMessage(i, (CHAR*)data_conc.data, ATI_NORMAL_OUTPUT); | |
174 ACI_MFREE(data_conc.data); | |
175 } | |
176 } | |
177 rAT_PercentCMGR ( sm, NULL ); | |
178 } | |
179 | |
180 #if !defined _SIMULATION_ AND !defined SMI AND !defined MFW AND !defined FF_MMI_RIV | |
181 | |
182 /* This is for conc. testing when compiling for ACI only */ | |
183 | |
184 GLOBAL void rAT_PlusCMGS ( UBYTE mr, | |
185 UBYTE numSeg) {} | |
186 | |
187 GLOBAL void rAT_PlusCMS ( T_ACI_AT_CMD cmdId, | |
188 T_ACI_CMS_ERR err, | |
189 T_EXT_CMS_ERROR* conc_error) {} | |
190 | |
191 GLOBAL void rAT_PlusCMSS ( UBYTE mr, | |
192 UBYTE numSeg) {} | |
193 | |
194 GLOBAL void rAT_PlusCMGD ( ) {} | |
195 | |
196 GLOBAL void rAT_PlusCMGW ( UBYTE index, | |
197 UBYTE numSeg, | |
198 UBYTE mem) {} | |
199 | |
200 GLOBAL void rAT_PlusCMGC ( UBYTE mr) {} | |
201 | |
202 GLOBAL void rAT_PlusCMGR ( T_ACI_CMGL_SM* sm, | |
203 T_ACI_CMGR_CBM* cbm ) {} | |
204 | |
205 GLOBAL void rAT_PlusCMTI ( T_ACI_SMS_STOR mem, | |
206 UBYTE index, | |
207 T_ACI_CMGL_SM* sm) {} | |
208 | |
209 GLOBAL void rAT_PlusCMT ( T_ACI_CMGL_SM* sm) {} | |
210 | |
211 | |
212 #endif /* #if !defined _SIMULATION_ AND !defined SMI AND !defined MFW AND !defined FF_MMI_RIV */ | |
213 | |
214 #endif /* #ifdef _CONC_TESTING_ */ |