|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the License "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Implementation of DMC MCE ISI utility functions. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include <pn_const.h> // PN constants |
|
22 #include <phonetisi.h> // ISI_HEADER_*** |
|
23 |
|
24 #ifdef USE_MTC_SERVER |
|
25 #include <mtcisi.h> // MTC related definitions. for testing only |
|
26 #else // USE_MTC_SERVER |
|
27 #include <mceisi.h> // MCE ISI stuff |
|
28 #endif // USE_MTC_SERVER |
|
29 |
|
30 #include <isikernel.h> // TIsiKernelSend |
|
31 #include "dmc_extension.h" // DMC extions pointer |
|
32 #include "dmc_mce_isi.h" |
|
33 #include "dmc_trace.h" |
|
34 |
|
35 #include "osttracedefinitions.h" |
|
36 #ifdef OST_TRACE_COMPILER_IN_USE |
|
37 #include "dmc_mce_isiTraces.h" |
|
38 #endif |
|
39 |
|
40 // EXTERNAL DATA STRUCTURES |
|
41 // EXTERNAL FUNCTION PROTOTYPES |
|
42 // FORWARD DECLARATIONS |
|
43 |
|
44 // CONSTANTS |
|
45 #define MAX_ISI_MSG_SIZE 32 |
|
46 |
|
47 /** |
|
48 * Move a pointer over the phonet-header(8 bytes) |
|
49 * This is used because a received ISI-message contains |
|
50 * a phonet header, 8 bytes, which we are not interested |
|
51 * in. |
|
52 */ |
|
53 #define ISI_MSG(a) (ISI_HEADER_SIZE + a) |
|
54 |
|
55 // MACROS |
|
56 // LOCAL CONSTANTS AND MACROS |
|
57 // MODULE DATA STRUCTURES |
|
58 DDmcExtension* MceIsi::iDmcExtPtr(NULL); |
|
59 |
|
60 // LOCAL FUNCTION PROTOTYPES |
|
61 |
|
62 // ==================== LOCAL FUNCTIONS ==================== |
|
63 // ================= OTHER EXPORTED FUNCTIONS ============== |
|
64 |
|
65 // ================= MEMBER FUNCTIONS ======================= |
|
66 void MceIsi::Init(DDmcExtension* const aDmcExtPtr) |
|
67 { |
|
68 OstTrace1(TRACE_ENTRY_EXIT, DMC_MCE_INIT_ENTRY, |
|
69 "DMC:MCE_ISIMSG: Init() # IN - aDmcExtPtr: 0x%x:", aDmcExtPtr); |
|
70 DMC_TRACE((("DMC:MCE_ISIMSG: Init() # IN - aDmcExtPtr: 0x%x"), aDmcExtPtr)); |
|
71 |
|
72 iDmcExtPtr = aDmcExtPtr; |
|
73 |
|
74 DMC_TRACE_ASSERT_RESET(aDmcExtPtr, "DMC:MCE_ISIMSG: NULL pointer", |
|
75 KErrNoMemory); |
|
76 |
|
77 #ifdef USE_MTC_SERVER |
|
78 // List of MCE indications to be subcribed |
|
79 TUint8 dmcIndArray[] = {PN_MTC, MTC_STATE_INFO_IND}; |
|
80 |
|
81 #else // USE_MTC_SERVER |
|
82 TUint8 dmcIndArray[] = {PN_MODEM_MCE, MCE_MODEM_STATE_IND}; |
|
83 |
|
84 #endif // USE_MTC_SERVER |
|
85 |
|
86 TPtr8 ptr(dmcIndArray, sizeof(dmcIndArray), sizeof(dmcIndArray)); |
|
87 |
|
88 TInt err = iDmcExtPtr->SubscribeIndications(ptr); |
|
89 DMC_TRACE_ASSERT_RESET(err == KErrNone , "Subscirbe ISI events failed", err); |
|
90 |
|
91 #ifdef _DEBUG |
|
92 DMC_TRACE(("DMC:EH_APE_CEN: Init() - Subscribe MCE Indications")); |
|
93 |
|
94 for (TUint32 i = 0; i < (sizeof(dmcIndArray) / 2); i++) |
|
95 { |
|
96 DMC_TRACE((("DMC:EH_APE_CEN: Init() - Resource ID: 0x%x"), dmcIndArray[i])); |
|
97 DMC_TRACE((("DMC:EH_APE_CEN: Init() - Indication ID: 0x%x"), dmcIndArray[i + 1])); |
|
98 } |
|
99 #endif // _DEBUG |
|
100 |
|
101 OstTrace1(TRACE_ENTRY_EXIT, DMC_MCE_INIT_RETURN, |
|
102 "DMC:MCE_ISIMSG: Init() # OUT - iDmcExtPtr: 0x%x:", iDmcExtPtr); |
|
103 DMC_TRACE((("DMC:MCE_ISIMSG: Init() # OUT - iDmcExtPtr: 0x%x"), iDmcExtPtr)); |
|
104 } |
|
105 |
|
106 |
|
107 // ----------------------------------------------------------------------------- |
|
108 // MceIsi::MceModemStatQueryReq |
|
109 // This function sends a state query req to Modem MCE-server. |
|
110 // ----------------------------------------------------------------------------- |
|
111 // |
|
112 void MceIsi::MceModemStateQueryReq() |
|
113 { |
|
114 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_MODEM_STATE_QUERY_REQ_ENTRY, |
|
115 "DMC:MCE_ISIMSG: MceModemStateQueryReq() # IN"); |
|
116 DMC_TRACE(("DMC:MCE_ISIMSG: MceModemStateQueryReq() # IN")); |
|
117 |
|
118 #ifdef USE_MTC_SERVER |
|
119 TIsiKernelSend sendMsg(iDmcExtPtr->AllocateMsgBlock(MAX_ISI_MSG_SIZE)); |
|
120 sendMsg.Set8bit(ISI_HEADER_OFFSET_RESOURCEID, PN_MTC); |
|
121 sendMsg.Set8bit(ISI_HEADER_OFFSET_TRANSID, 1); |
|
122 sendMsg.Set8bit(ISI_HEADER_OFFSET_MESSAGEID, MTC_STATE_QUERY_REQ); |
|
123 sendMsg.Set8bit(ISI_MSG(MTC_STATE_QUERY_REQ_OFFSET_FILLERBYTE1), 0); |
|
124 sendMsg.Set8bit(ISI_MSG(MTC_STATE_QUERY_REQ_OFFSET_FILLERBYTE2), 0); |
|
125 |
|
126 #else // USE_MTC_SERVER |
|
127 TIsiKernelSend sendMsg(iDmcExtPtr->AllocateMsgBlock(MAX_ISI_MSG_SIZE)); |
|
128 sendMsg.Set8bit(ISI_HEADER_OFFSET_RESOURCEID, PN_MODEM_MCE); |
|
129 sendMsg.Set8bit(ISI_HEADER_OFFSET_TRANSID, 1); |
|
130 sendMsg.Set8bit(ISI_HEADER_OFFSET_MESSAGEID, MCE_MODEM_STATE_QUERY_REQ); |
|
131 sendMsg.Set8bit(ISI_MSG(MCE_MODEM_STATE_QUERY_REQ_OFFSET_FILLERBYTE1), 0); |
|
132 sendMsg.Set8bit(ISI_MSG(MCE_MODEM_STATE_QUERY_REQ_OFFSET_FILLERBYTE2), 0); |
|
133 |
|
134 #endif // USE_MTC_SERVER |
|
135 |
|
136 // Send message to receiver |
|
137 TInt err = iDmcExtPtr->Send(sendMsg.Complete()); |
|
138 |
|
139 DMC_TRACE((("DMC:MCE_ISIMSG: MceModemStateQueryReq() - err: %d"), err)); |
|
140 |
|
141 DMC_TRACE_ASSERT_RESET(err == KErrNone, "Send failed", err); |
|
142 |
|
143 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_MODEM_STATE_QUERY_REQ_RETURN, |
|
144 "DMC:MCE_ISIMSG: MceModemStatQueryReq() # OUT"); |
|
145 DMC_TRACE(("DMC:MCE_ISIMSG: MceModemStateQueryReq() # OUT")); |
|
146 } |
|
147 |
|
148 |
|
149 //----------------------------------------------------------- |
|
150 // MceIsi::MceModemStateQueryResp |
|
151 //----------------------------------------------------------- |
|
152 TInt MceIsi::MceModemStateQueryResp(const TUint8* const aMsgPtr, TUint8& aModemCurrentState) |
|
153 { |
|
154 OstTrace1(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_STATE_QUERY_RESP_ENTRY, |
|
155 "DMC:MCE_ISIMSG: MceModemStateQueryResp() # IN - aMsgPtr: 0x%x", |
|
156 (TUint)aMsgPtr); |
|
157 DMC_TRACE((("DMC:EH_APE_CEN: MceModemStateQueryResp() # IN - aMsgPtr: 0x%x"), aMsgPtr)); |
|
158 |
|
159 TInt retVal(KErrNone); |
|
160 |
|
161 #ifdef USE_MTC_SERVER |
|
162 TUint8 trId(aMsgPtr[ISI_MSG(MTC_STATE_QUERY_RESP_OFFSET_TRANSID)]); |
|
163 TUint8 modemCurrentState(aMsgPtr[ISI_MSG(MTC_STATE_QUERY_RESP_OFFSET_CURRENT)]); |
|
164 TUint8 modemTargetState(aMsgPtr[ISI_MSG(MTC_STATE_QUERY_RESP_OFFSET_TARGET)]); |
|
165 |
|
166 DMC_TRACE((("DMC:MCE_ISIMSG: MceModemStateQueryResp() - trId: %d, modemCurrentState: 0x%x, modemTargetState: 0x%x:"), |
|
167 trId, modemCurrentState, modemTargetState)); |
|
168 |
|
169 #else // USE_MTC_SERVER |
|
170 TUint8 trId(aMsgPtr[ISI_MSG(MCE_MODEM_STATE_QUERY_RESP_OFFSET_TRANSID)]); |
|
171 TUint8 modemCurrentState(aMsgPtr[ISI_MSG(MCE_MODEM_STATE_QUERY_RESP_OFFSET_CURRENT)]); |
|
172 TUint8 modemTargetState(aMsgPtr[ISI_MSG(MCE_MODEM_STATE_QUERY_RESP_OFFSET_TARGET)]); |
|
173 |
|
174 OstTraceExt3(TRACE_FLOW, DMC_MCE_ISI_MCE_STATE_QUERY_RESP_1, |
|
175 "DMC:MCE_ISIMSG: MceModemStateQueryResp() - trId: %d, modemCurrentState: 0x%x, modemTargetState: 0x%x:", |
|
176 trId, modemCurrentState, modemTargetState); |
|
177 DMC_TRACE((("DMC:MCE_ISIMSG: MceModemStateQueryResp() - trId: %d, modemCurrentState: 0x%x, modemTargetState: 0x%x:"), |
|
178 trId, modemCurrentState, modemTargetState)); |
|
179 #endif // USE_MTC_SERVER |
|
180 |
|
181 // Check if Modem has already powered up. |
|
182 if (modemCurrentState == modemTargetState) |
|
183 { |
|
184 // Modem ready |
|
185 aModemCurrentState = modemTargetState; |
|
186 |
|
187 DMC_TRACE(("DMC:MCE_ISIMSG: MceModemStateQueryResp() - modem ready")); |
|
188 } |
|
189 else |
|
190 { |
|
191 /* Modem is not ready because current and target states |
|
192 are not the same. */ |
|
193 retVal = KErrNotReady; |
|
194 |
|
195 DMC_TRACE(("DMC:MCE_ISIMSG: MceModemStateQueryResp() - modem not ready")); |
|
196 } |
|
197 |
|
198 OstTrace1(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_STATE_QUERY_RESP_RETURN, |
|
199 "DMC:MCE_ISIMSG: MceModemStateQueryResp() # OUT - retVal: %d", retVal); |
|
200 DMC_TRACE((("DMC:MCE_ISIMSG: MceModemStateQueryResp() # OUT - retVal: %d"), retVal)); |
|
201 |
|
202 return retVal; |
|
203 } |
|
204 |
|
205 |
|
206 //----------------------------------------------------------- |
|
207 // MceIsi::McePowerOffReq |
|
208 //----------------------------------------------------------- |
|
209 void MceIsi::McePowerOffReq() |
|
210 { |
|
211 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_POWER_OFF_REQ_ENTRY, |
|
212 "DMC:MCE_ISIMSG: McePowerOffReq() # IN"); |
|
213 DMC_TRACE(("DMC:MCE_ISIMSG: McePowerOffReq() # IN")); |
|
214 |
|
215 #ifdef USE_MTC_SERVER |
|
216 TIsiKernelSend sendMsg(iDmcExtPtr->AllocateMsgBlock(MAX_ISI_MSG_SIZE)); |
|
217 sendMsg.Set8bit(ISI_HEADER_OFFSET_RESOURCEID, PN_MTC); |
|
218 sendMsg.Set8bit(ISI_HEADER_OFFSET_TRANSID, 3); |
|
219 sendMsg.Set8bit(ISI_HEADER_OFFSET_MESSAGEID, MTC_POWER_OFF_REQ); |
|
220 sendMsg.Set8bit(ISI_MSG(MTC_POWER_OFF_REQ_OFFSET_FILL1), MTC_NORMAL_POWER_OFF); |
|
221 sendMsg.Set8bit(ISI_MSG(MTC_POWER_OFF_REQ_OFFSET_FILLERBYTE1), 0); // filler |
|
222 |
|
223 #else // USE_MTC_SERVER |
|
224 TIsiKernelSend sendMsg(iDmcExtPtr->AllocateMsgBlock(MAX_ISI_MSG_SIZE)); |
|
225 sendMsg.Set8bit(ISI_HEADER_OFFSET_RESOURCEID, PN_MODEM_MCE); |
|
226 sendMsg.Set8bit(ISI_HEADER_OFFSET_TRANSID, 3); |
|
227 sendMsg.Set8bit(ISI_HEADER_OFFSET_MESSAGEID, MCE_POWER_OFF_REQ); |
|
228 sendMsg.Set8bit(ISI_MSG(MCE_POWER_OFF_REQ_OFFSET_FILLERBYTE1), 0); |
|
229 |
|
230 #endif // USE_MTC_SERVER |
|
231 |
|
232 // Send message to receiver |
|
233 TInt err = iDmcExtPtr->Send(sendMsg.Complete()); |
|
234 |
|
235 DMC_TRACE((("DMC:MCE_ISIMSG: McePowerOffReq() - err: %d"), err)); |
|
236 |
|
237 DMC_TRACE_ASSERT_RESET(err == KErrNone, "Send failed", err); |
|
238 |
|
239 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_POWER_OFF_REQ_RETURN, |
|
240 "DMC:MCE_ISIMSG: McePowerOffReq() # OUT"); |
|
241 DMC_TRACE(("DMC:MCE_ISIMSG: McePowerOffReq() # OUT")); |
|
242 } |
|
243 |
|
244 |
|
245 //----------------------------------------------------------- |
|
246 // MceIsi::McePowerOffResp |
|
247 //----------------------------------------------------------- |
|
248 void MceIsi::McePowerOffResp(const TUint8* const aMsgPtr) |
|
249 { |
|
250 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_POWER_OFF_RESP_ENTRY, |
|
251 "DMC:MCE_ISIMSG: MceResetResp() # IN"); |
|
252 DMC_TRACE(("DMC:MCE_ISIMSG: MceResetResp() # IN")); |
|
253 |
|
254 #if USE_MTC_SERVER |
|
255 TUint8 trId(aMsgPtr[ISI_MSG(MTC_POWER_OFF_RESP_OFFSET_TRANSID)]); |
|
256 TUint8 status(aMsgPtr[ISI_MSG(MTC_POWER_OFF_RESP_OFFSET_STATUS)]); |
|
257 #else // USE_MTC_SERVER |
|
258 TUint8 trId(aMsgPtr[ISI_MSG(MCE_RESET_RESP_OFFSET_TRANSID)]); |
|
259 TUint8 status(aMsgPtr[ISI_MSG(MCE_RESET_RESP_OFFSET_STATUS)]); |
|
260 #endif // USE_MTC_SERVER |
|
261 /* Modem reset cannot fail, thus just print out |
|
262 received information. */ |
|
263 OstTraceExt2(TRACE_FLOW, DMC_MCE_ISI_MCE_POWER_OFF_RESP_1, |
|
264 "DMC:MCE_ISIMSG: McePowerOff() - trId: %d, status: 0x%x", |
|
265 trId, status); |
|
266 DMC_TRACE((("DMC:MCE_ISIMSG: McePowerOff() - trId: %d, status: 0x%x"), |
|
267 trId, status)); |
|
268 |
|
269 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_POWER_OFF_RETURN, |
|
270 "DMC:MCE_ISIMSG: McePowerOff() # OUT"); |
|
271 DMC_TRACE(("DMC:MCE_ISIMSG: MceResetResp() # OUT")); |
|
272 } |
|
273 |
|
274 |
|
275 //----------------------------------------------------------- |
|
276 // MceIsi::MceResetReq |
|
277 //----------------------------------------------------------- |
|
278 void MceIsi::MceResetReq() |
|
279 { |
|
280 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_RESET_REQ_ENTRY, |
|
281 "DMC:MCE_ISIMSG: MceResetReq() # IN"); |
|
282 DMC_TRACE(("DMC:MCE_ISIMSG: MceResetReq() # IN")); |
|
283 |
|
284 #if USE_MTC_SERVER |
|
285 TIsiKernelSend sendMsg(iDmcExtPtr->AllocateMsgBlock(MAX_ISI_MSG_SIZE)); |
|
286 sendMsg.Set8bit(ISI_HEADER_OFFSET_RESOURCEID, PN_MTC); |
|
287 sendMsg.Set8bit(ISI_HEADER_OFFSET_TRANSID, 2); |
|
288 sendMsg.Set8bit(ISI_HEADER_OFFSET_MESSAGEID, MTC_RESET_GENERATE_REQ); |
|
289 sendMsg.Set8bit(ISI_MSG(MTC_RESET_GENERATE_REQ_OFFSET_TYPE), MTC_STATE_VIA_RESET); // type |
|
290 sendMsg.Set8bit(ISI_MSG(MTC_RESET_GENERATE_REQ_OFFSET_STATE), MTC_LOCAL); // state |
|
291 |
|
292 #else // USE_MTC_SERVER |
|
293 TIsiKernelSend sendMsg(iDmcExtPtr->AllocateMsgBlock(MAX_ISI_MSG_SIZE)); |
|
294 sendMsg.Set8bit(ISI_HEADER_OFFSET_RESOURCEID, PN_MODEM_MCE); |
|
295 sendMsg.Set8bit(ISI_HEADER_OFFSET_TRANSID, 2); |
|
296 sendMsg.Set8bit(ISI_HEADER_OFFSET_MESSAGEID, MCE_RESET_REQ_OFFSET_MESSAGEID); |
|
297 sendMsg.Set8bit(ISI_MSG(MCE_RESET_REQ_OFFSET_FILLERBYTE1), 0); |
|
298 |
|
299 #endif // USE_MTC_SERVER |
|
300 |
|
301 // Send message to receiver |
|
302 TInt err = iDmcExtPtr->Send(sendMsg.Complete()); |
|
303 |
|
304 DMC_TRACE((("DMC:MCE_ISIMSG: MceModemStateQueryReq() - err: %d"), err)); |
|
305 |
|
306 DMC_TRACE_ASSERT_RESET(err == KErrNone, "Send failed", err); |
|
307 |
|
308 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_RESET_REQ_RETURN, |
|
309 "DMC:MCE_ISIMSG: MceResetReq() # OUT"); |
|
310 DMC_TRACE(("DMC:MCE_ISIMSG: MceResetReq() # OUT")); |
|
311 } |
|
312 |
|
313 |
|
314 //----------------------------------------------------------- |
|
315 // MceIsi::MceResetResp |
|
316 //----------------------------------------------------------- |
|
317 void MceIsi::MceResetResp(const TUint8* const aMsgPtr) |
|
318 { |
|
319 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_RESET_RESP_ENTRY, |
|
320 "DMC:MCE_ISIMSG: MceResetResp() # IN"); |
|
321 DMC_TRACE(("DMC:MCE_ISIMSG: MceResetResp() # IN")); |
|
322 |
|
323 #if USE_MTC_SERVER |
|
324 TUint8 trId(aMsgPtr[ISI_MSG(MTC_RESET_GENERATE_RESP_OFFSET_TRANSID)]); |
|
325 TUint8 status(aMsgPtr[ISI_MSG(MTC_RESET_GENERATE_RESP_OFFSET_STATUS)]); |
|
326 |
|
327 #else // USE_MTC_SERVER |
|
328 TUint8 trId(aMsgPtr[ISI_MSG(MCE_RESET_RESP_OFFSET_TRANSID)]); |
|
329 TUint8 status(aMsgPtr[ISI_MSG(MCE_RESET_RESP_OFFSET_STATUS)]); |
|
330 |
|
331 |
|
332 #endif // USE_MTC_SERVER |
|
333 |
|
334 /* Modem reset cannot fail, thus just print out |
|
335 received information. */ |
|
336 OstTraceExt2(TRACE_FLOW, DMC_MCE_ISI_MCE_RESET_RESP_1, |
|
337 "DMC:MCE_ISIMSG: MceResetResp() - trId: %d, status: 0x%x", |
|
338 trId, status); |
|
339 DMC_TRACE((("DMC:MCE_ISIMSG: MceResetResp() - trId: %d, status: 0x%x"), |
|
340 trId, status)); |
|
341 |
|
342 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_RESET_RESP_RETURN, |
|
343 "DMC:MCE_ISIMSG: MceResetResp() # OUT"); |
|
344 DMC_TRACE(("DMC:MCE_ISIMSG: MceResetResp() # OUT")); |
|
345 } |
|
346 |
|
347 |
|
348 //----------------------------------------------------------- |
|
349 // MceIsi::MceModemStateInd |
|
350 //----------------------------------------------------------- |
|
351 void MceIsi::MceModemStateInd(const TUint8* const aMsgPtr, TUint8& aModemState, TUint8& aModemAction) |
|
352 { |
|
353 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_STATE_IND_ENTRY, |
|
354 "DMC:MCE_ISIMSG: MceModemStateInd() # IN"); |
|
355 DMC_TRACE(("DMC:MCE_ISIMSG: MceModemStateInd() # IN")); |
|
356 |
|
357 #if USE_MTC_SERVER |
|
358 TUint8 trId(aMsgPtr[ISI_MSG(MTC_STATE_INFO_IND_OFFSET_TRANSID)]); |
|
359 aModemState = aMsgPtr[ISI_MSG(MTC_STATE_INFO_IND_OFFSET_STATE)]; |
|
360 aModemAction = aMsgPtr[ISI_MSG(MTC_STATE_INFO_IND_OFFSET_ACTION)]; |
|
361 |
|
362 #else // USE_MTC_SERVER |
|
363 TUint8 trId(aMsgPtr[ISI_MSG(MCE_MODEM_STATE_IND_OFFSET_TRANSID)]); |
|
364 aModemState = aMsgPtr[ISI_MSG(MCE_MODEM_STATE_IND_OFFSET_STATE)]; |
|
365 aModemAction = aMsgPtr[ISI_MSG(MCE_MODEM_STATE_IND_OFFSET_ACTION)]; |
|
366 |
|
367 #endif // USE_MTC_SERVER |
|
368 |
|
369 OstTraceExt3(TRACE_FLOW, DMC_MCE_ISI_MCE_STATE_IND_1, |
|
370 "DMC:MCE_ISIMSG: MceModemStateInd() - trId: %d, aModemState: 0x%x, aModemAction: 0x%x", |
|
371 trId, aModemState, aModemAction); |
|
372 DMC_TRACE((("DMC:MCE_ISIMSG: MceModemStateInd() - trId: %d, aModemState: 0x%x, aModemAction: 0x%x"), |
|
373 trId, aModemState, aModemAction)); |
|
374 |
|
375 OstTrace0(TRACE_ENTRY_EXIT, DMC_MCE_ISI_MCE_STATE_IND_RETURN, |
|
376 "DMC:MCE_ISIMSG: MceModemStateInd() # OUT"); |
|
377 DMC_TRACE(("DMC:MCE_ISIMSG: MceModemStateInd() # OUT")); |
|
378 } |
|
379 |
|
380 // End of File |