FreeCalypso > hg > freecalypso-citrine
comparison g23m-aci/aci/aci_mfw.c @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
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 "config.h" | |
27 #include "fixedconf.h" | |
28 #include "condat-features.h" | |
29 #include "aci_conf.h" | |
30 | |
31 #include "aci_all.h" | |
32 | |
33 #include "aci_cmh.h" | |
34 #include "ati_cmd.h" | |
35 #include "aci_io.h" | |
36 #include "aci_cmd.h" | |
37 | |
38 #include "aci_fd.h" | |
39 #include "aci_mem.h" | |
40 | |
41 #include "psa.h" | |
42 #include "psa_sms.h" | |
43 | |
44 #include "cmh.h" | |
45 #include "cmh_sms.h" | |
46 | |
47 #include "psa_cc.h" | |
48 | |
49 #include "aci_lst.h" | |
50 | |
51 | |
52 #if defined _CONC_TESTING_ AND defined TI_PS_FF_CONC_SMS | |
53 | |
54 #include "conc_sms.h" | |
55 | |
56 | |
57 #include "aci_mfw.h" | |
58 | |
59 | |
60 | |
61 | |
62 //#define TRACE_CCD /* for CCD Debugging */ | |
63 | |
64 | |
65 /********************************************************************** | |
66 * TEMPORARY ADAPTION FUNCTIONS * | |
67 *********************************************************************/ | |
68 //ALL THE FUNCTIONS BELOW ARE COMMENTED OUT AS THEY WERE FOR TESITNG ONLY | |
69 | |
70 | |
71 GLOBAL void rAT_PlusCMTI_Ext( T_ACI_SMS_STOR mem, | |
72 UBYTE index, | |
73 T_ACI_CMGL_SM* sm) | |
74 { | |
75 | |
76 T_SMS_TYPE smsType; | |
77 T_CONC_ASSEMBLY_RETURN ret; | |
78 T_SM_DATA_EXT data_conc; | |
79 | |
80 TRACE_FUNCTION ("rAT_PlusCMTI_Ext"); | |
81 | |
82 smsType = SMS_getSMSType ( &sm->udh, sm->adress, MODE2); | |
83 | |
84 if (smsType EQ CONCATE) | |
85 { | |
86 ret = concSMS_Collect ( &data_conc, sm, 1, mem); | |
87 | |
88 if (ret EQ CONC_COMPLETED) | |
89 { | |
90 UBYTE i; | |
91 for (i=0; i<CMD_SRC_MAX; i++) | |
92 io_sendMessage(i, (CHAR*)data_conc.data, ATI_NORMAL_OUTPUT); | |
93 ACI_MFREE(data_conc.data); | |
94 } | |
95 | |
96 } | |
97 TRACE_EVENT_P1("smsType: %d", smsType); | |
98 rAT_PlusCMTI( mem, index, sm ); | |
99 } | |
100 | |
101 | |
102 | |
103 GLOBAL void rAT_PlusCMT_Ext (T_ACI_CMGL_SM* sm) | |
104 { | |
105 | |
106 T_SMS_TYPE smsType; | |
107 T_CONC_ASSEMBLY_RETURN ret; | |
108 T_SM_DATA_EXT data_conc; | |
109 | |
110 TRACE_FUNCTION ("rAT_PlusCMT_Ext"); | |
111 | |
112 | |
113 smsType = SMS_getSMSType ( &sm->udh, sm->adress, MODE1); | |
114 | |
115 if (smsType EQ CONCATE) | |
116 { | |
117 ret = concSMS_Collect ( &data_conc, sm, 0, SMS_STOR_NotPresent); | |
118 | |
119 if (ret EQ CONC_COMPLETED) | |
120 { | |
121 UBYTE i; | |
122 for (i=0; i<CMD_SRC_MAX; i++) | |
123 io_sendMessage(i, (CHAR*)data_conc.data, ATI_NORMAL_OUTPUT); | |
124 ACI_MFREE(data_conc.data); | |
125 } | |
126 } | |
127 rAT_PlusCMT(sm); | |
128 } | |
129 | |
130 | |
131 GLOBAL void rAT_PlusCMGR_Ext (T_ACI_CMGL_SM* sm, | |
132 T_ACI_CMGR_CBM* cbm) | |
133 { | |
134 | |
135 T_SMS_TYPE smsType; | |
136 T_CONC_ASSEMBLY_RETURN ret; | |
137 T_SM_DATA_EXT data_conc; | |
138 | |
139 TRACE_FUNCTION ("rAT_PlusCMGR_Ext"); | |
140 | |
141 smsType = SMS_getSMSType ( &sm->udh, sm->adress, MODE3); | |
142 | |
143 if (smsType EQ CONCATE) | |
144 { | |
145 ret = concSMS_Collect ( &data_conc, sm, 0, SMS_STOR_NotPresent); | |
146 | |
147 if (ret EQ CONC_COMPLETED) | |
148 { | |
149 UBYTE i; | |
150 for (i=0; i<CMD_SRC_MAX; i++) | |
151 io_sendMessage(i, (CHAR*)data_conc.data, ATI_NORMAL_OUTPUT); | |
152 ACI_MFREE(data_conc.data); | |
153 } | |
154 } | |
155 rAT_PlusCMGR ( sm, NULL ); | |
156 } | |
157 | |
158 GLOBAL void rAT_PercentCMGR_Ext (T_ACI_CMGL_SM* sm, | |
159 T_ACI_CMGR_CBM* cbm) | |
160 { | |
161 | |
162 T_SMS_TYPE smsType; | |
163 T_CONC_ASSEMBLY_RETURN ret; | |
164 T_SM_DATA_EXT data_conc; | |
165 | |
166 TRACE_FUNCTION ("rAT_PercentCMGR_Ext"); | |
167 | |
168 smsType = SMS_getSMSType ( &sm->udh, sm->adress, MODE3); | |
169 | |
170 if (smsType EQ CONCATE) | |
171 { | |
172 ret = concSMS_Collect ( &data_conc, sm, 0, SMS_STOR_NotPresent); | |
173 | |
174 if (ret EQ CONC_COMPLETED) | |
175 { | |
176 UBYTE i; | |
177 for (i=0; i<CMD_SRC_MAX; i++) | |
178 io_sendMessage(i, (CHAR*)data_conc.data, ATI_NORMAL_OUTPUT); | |
179 ACI_MFREE(data_conc.data); | |
180 } | |
181 } | |
182 rAT_PercentCMGR ( sm, NULL ); | |
183 } | |
184 | |
185 #if !defined _SIMULATION_ AND !defined SMI AND !defined MFW AND !defined FF_MMI_RIV | |
186 | |
187 /* This is for conc. testing when compiling for ACI only */ | |
188 | |
189 GLOBAL void rAT_PlusCMGS ( UBYTE mr, | |
190 UBYTE numSeg) {} | |
191 | |
192 GLOBAL void rAT_PlusCMS ( T_ACI_AT_CMD cmdId, | |
193 T_ACI_CMS_ERR err, | |
194 T_EXT_CMS_ERROR* conc_error) {} | |
195 | |
196 GLOBAL void rAT_PlusCMSS ( UBYTE mr, | |
197 UBYTE numSeg) {} | |
198 | |
199 GLOBAL void rAT_PlusCMGD ( ) {} | |
200 | |
201 GLOBAL void rAT_PlusCMGW ( UBYTE index, | |
202 UBYTE numSeg, | |
203 UBYTE mem) {} | |
204 | |
205 GLOBAL void rAT_PlusCMGC ( UBYTE mr) {} | |
206 | |
207 GLOBAL void rAT_PlusCMGR ( T_ACI_CMGL_SM* sm, | |
208 T_ACI_CMGR_CBM* cbm ) {} | |
209 | |
210 GLOBAL void rAT_PlusCMTI ( T_ACI_SMS_STOR mem, | |
211 UBYTE index, | |
212 T_ACI_CMGL_SM* sm) {} | |
213 | |
214 GLOBAL void rAT_PlusCMT ( T_ACI_CMGL_SM* sm) {} | |
215 | |
216 | |
217 #endif /* #if !defined _SIMULATION_ AND !defined SMI AND !defined MFW AND !defined FF_MMI_RIV */ | |
218 | |
219 #endif /* #ifdef _CONC_TESTING_ */ |