FreeCalypso > hg > tcs211-l1-reconst
comparison g23m/condat/ms/src/mfw/mfw_sat.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /* | |
2 +--------------------------------------------------------------------+ | |
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_sat.h $| | |
4 | $Author:: Xsp $ CONDAT GmbH $Revision:: 5 $| | |
5 | CREATED: 07.05.99 $Modtime:: 29/02/00 18:19 $| | |
6 | STATE : code | | |
7 +--------------------------------------------------------------------+ | |
8 | |
9 MODULE : MFW_SAT | |
10 | |
11 PURPOSE : SIM Application Toolkit Handling | |
12 | |
13 EXPORT : | |
14 | |
15 TO DO : | |
16 | |
17 $History:: mfw_sat.h $ | |
18 | |
19 Shashi Shekar B.S., a0876501, 16 Mar, 2006, OMAPS00061462 | |
20 Icon support for SetupMenu & Select item. | |
21 | |
22 Jan 16, 2006 DR: OMAPS00061460 - Shashi Shekar B.S. | |
23 Description: SAT Icon support | |
24 Solution : SAT icon support added. | |
25 | |
26 * | |
27 * Jun 16, 2005 REF: CRR 31543 x0021334 | |
28 * Issue: SATK: cannot get TR for send ussd command | |
29 * Solution: When the user presses "Hang up" key when | |
30 * the SAT USSD session is in progress,a call is | |
31 * made to function 'sAT_end_ussd()' to end the session. | |
32 * | |
33 ***************** Version 5 ***************** | |
34 * User: Xsp Date: 3/03/00 Time: 12:51 | |
35 * Updated in $/GSM/Condat/MS/SRC/MFW | |
36 * Changfed type of xxxWindow fields in MfwSat struct... | |
37 * | |
38 * ***************** Version 4 ***************** | |
39 * User: Xsp Date: 14/02/00 Time: 18:11 | |
40 * Updated in $/GSM/Condat/MS/SRC/MFW | |
41 * Solved compiler errors... | |
42 * | |
43 * ***************** Version 3 ***************** | |
44 * User: Xsp Date: 14/02/00 Time: 14:43 | |
45 * Updated in $/GSM/Condat/MS/SRC/MFW | |
46 * Added window pointers to sat structure... | |
47 * | |
48 * ***************** Version 2 ***************** | |
49 * User: Fk Date: 11.02.00 Time: 15:40 | |
50 * Updated in $/GSM/Condat/MS/SRC/MFW | |
51 * New event 'SAT Session End' derived from empty command | |
52 * | |
53 * ***************** Version 1 ***************** | |
54 * User: Es Date: 6.07.99 Time: 12:42 | |
55 * Created in $/GSM/DEV/MS/SRC/MFW | |
56 * SIM application toolkit handler | |
57 * Initial | |
58 */ | |
59 | |
60 #ifndef _DEF_MFW_SAT_H_ | |
61 #define _DEF_MFW_SAT_H_ | |
62 | |
63 | |
64 #include "mfw_win.h" | |
65 #include "mfw_phb.h" /* top get aci_cmh.h */ | |
66 #include "mfw_ss.h" // Jun 16, 2005 REF: CRR 31543 x0021334 | |
67 | |
68 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460 | |
69 #ifdef FF_MMI_SAT_ICON | |
70 #include "mfw_sima.h" | |
71 #endif | |
72 | |
73 #define MFW_MAX_NT_SIZE 6 /* save changed files notification */ | |
74 | |
75 #define MFW_MAX_PFP_ELEM 15 | |
76 | |
77 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460 | |
78 #ifdef FF_MMI_SAT_ICON | |
79 typedef struct | |
80 { /* SAT ICON DATA */ | |
81 U8 width; /* SAT Icon width */ | |
82 U8 height; /* SAT Icon height */ | |
83 char* dst; /* Icon data */ | |
84 } SatIconInfo; | |
85 #endif | |
86 | |
87 typedef struct | |
88 { /* SAT ICON IDENTIFIER */ | |
89 U8 qual; /* icon qualifier */ | |
90 U8 id; /* icon identifier */ | |
91 U8 pad1; | |
92 U8 pad2; | |
93 } SatIconId; | |
94 | |
95 typedef struct | |
96 { /* SAT TEXT STRING */ | |
97 SatIconId icon; /* icon identifier */ | |
98 U16 text; /* offset to text string */ | |
99 U8 responseFlag; /* immediate response */ | |
100 U8 code; /* data coding scheme */ | |
101 U8 len; /* length of text */ | |
102 U8 pad1; | |
103 U8 pad2; | |
104 U8 pad3; | |
105 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460 | |
106 #ifdef FF_MMI_SAT_ICON | |
107 SatIconInfo iconInfo; | |
108 #endif | |
109 } SatTxt; | |
110 | |
111 typedef struct | |
112 { /* SAT ADDRESS */ | |
113 U16 number; /* offset to dial number */ | |
114 U8 ton; /* type of number, npi */ | |
115 U8 len; /* length of dial number */ | |
116 } SatAddress; | |
117 | |
118 typedef struct | |
119 { /* SAT MISCELLEANEOUS DATA */ | |
120 U16 data; /* offset to data */ | |
121 U8 len; /* length of data */ | |
122 U8 pad; | |
123 } SatData; | |
124 | |
125 | |
126 typedef struct | |
127 { /* SAT LIST DATA */ | |
128 U8 len; /* number of bytes in list */ | |
129 U8 elem [1]; /* list elements */ | |
130 } SatList; | |
131 | |
132 typedef struct | |
133 { /* SAT SMS TPDU */ | |
134 U16 data; /* offset to pdu data */ | |
135 U8 len; /* pdu length */ | |
136 U8 pad; | |
137 } SatSmsPdu; | |
138 | |
139 typedef struct | |
140 { /* SAT MENU ITEM */ | |
141 U16 text; /* offset to text data */ | |
142 U8 id; /* item identifier */ | |
143 U8 action; /* next action id */ | |
144 U8 icon; /* items icon */ | |
145 U8 len; /* length of text */ | |
146 U8 pad1; | |
147 U8 pad2; | |
148 // Shashi Shekar B.S., a0876501, Feb 4, 2006, DR: OMAPS00061462 | |
149 #ifdef FF_MMI_SAT_ICON | |
150 SatIconInfo iconInfo; | |
151 #endif | |
152 } SatItem; | |
153 | |
154 typedef struct | |
155 { /* SAT INPUT USER STRING */ | |
156 SatTxt prompt; /* prompt string */ | |
157 SatTxt defRsp; /* default response */ | |
158 U8 rspMin; /* minimal response length */ | |
159 U8 rspMax; /* maximal response length */ | |
160 U8 pad1; | |
161 U8 pad2; | |
162 } SatInput; | |
163 | |
164 typedef struct | |
165 { /* SAT PLAY TONE */ | |
166 SatTxt alpha; /* tones alpha tag */ | |
167 U8 tone; /* code for tone */ | |
168 U8 durUnit; /* code for duration unit */ | |
169 U8 durValue; /* duration value */ | |
170 U8 pad; | |
171 } SatTone; | |
172 | |
173 typedef struct | |
174 { /* SAT SETUP MENU */ | |
175 SatTxt header; /* menu header */ | |
176 U8 itemIconQual; /* item icon qualifier */ | |
177 U8 nItems; /* number of menu items */ | |
178 U8 pad1; | |
179 U8 pad2; | |
180 SatItem items [1]; /* menu items (min. one) */ | |
181 } SatMenu; | |
182 | |
183 typedef struct | |
184 { /* SAT SEND SMS */ | |
185 SatTxt info; /* user information */ | |
186 SatAddress addr; /* address */ | |
187 SatSmsPdu sms; /* SMS TPDU */ | |
188 } SatSMS; | |
189 | |
190 typedef struct | |
191 { /* SAT SEND SS */ | |
192 SatTxt info; /* user information */ | |
193 SatAddress ss; /* SS string */ | |
194 } SatSS; | |
195 | |
196 typedef struct | |
197 { /* SAT SETUP CALL */ | |
198 SatTxt info; /* user information */ | |
199 SatTxt info2; /* setup information */ | |
200 SatAddress addr; /* address */ | |
201 SatData bc; /* bearer capabilities */ | |
202 SatData sa; /* subaddress */ | |
203 U8 durUnit; /* redial time unit */ | |
204 U8 durValue; /* redial max time */ | |
205 U8 pad1; | |
206 U8 pad2; | |
207 } SatCall; | |
208 | |
209 typedef struct | |
210 { /* SAT EXEC AT/DTMF */ | |
211 SatTxt info; /* user information */ | |
212 SatData cmd; /* AT cmd / DTMF sequence */ | |
213 } SatExec; | |
214 | |
215 typedef struct | |
216 { /* CALL CONTROL RESULT */ | |
217 SatAddress addr; /* address */ | |
218 SatAddress addr2; /* address on SMS control */ | |
219 SatData bc; /* bearer capabilities */ | |
220 SatData bc2; /* bearer capabilities 2 */ | |
221 SatData sa; /* subaddress */ | |
222 SatTxt info; /* alpha information */ | |
223 S32 redialTime; /* maximal redial time */ | |
224 S16 callId; /* id of new call */ | |
225 U8 bcRepInd; /* BC repeat indicator */ | |
226 U8 result; /* call control result */ | |
227 } SatCcRes; | |
228 | |
229 typedef struct | |
230 { /* SAT REFRESH FILES */ | |
231 U16* files; /* Pointer to the files list */ | |
232 U16 files_nr; /* length of the files list */ | |
233 U8 status; /*Status of the refresh procedure */ | |
234 } SatRefreshFiles; /* -1 -> to be done or */ | |
235 /* SIM_FU_ERROR,SIM_FU_SUCCESS,SIM_FU_SUCC_ADD */ | |
236 #if defined(FF_WAP) | |
237 | |
238 typedef struct | |
239 { | |
240 U8 prov_file_id_len; /*length of provisional file ids*/ | |
241 U8* prov_file_id; /*provisiona file ids */ | |
242 } ProvFileRef; | |
243 | |
244 typedef struct | |
245 { /* SAT LAUNCH BROWSER COMMAND */ | |
246 U8 identity; /* Browser identity as in GSM 11.14 12.47 */ | |
247 U8* url; /* Universal Res Loc as in GSM 11.14 12.48*/ | |
248 U8 n_bearer; /* Number of elements in the bearer list */ | |
249 U8* bearer; /* Bearer list as in GSM 11.14 12.49 (Null terminated)*/ | |
250 U8 n_prov_file_ref; /* Number of elements in the prov. file ref. table. */ | |
251 ProvFileRef prov_file_ref[MFW_MAX_PFP_ELEM]; /* Prov. file ref. list*/ | |
252 SatTxt text_string; /*Text string as in GSM 11.14 12.15 */ | |
253 U8 alpha_len; /*Alpha identifier length as in GSM 11.14 12.2 */ | |
254 U8* alpha_id; /*Alpha identifier as in GSM 11.14 12.2 */ | |
255 } SatLaunchBrowser; | |
256 | |
257 #endif /*FF_WAP*/ | |
258 | |
259 | |
260 /* SPR#1786 - DS - SAT Class E */ | |
261 | |
262 typedef enum | |
263 { | |
264 MFW_SAT_EST_NONE = 0, /* No establishment type given */ | |
265 MFW_SAT_EST_IMMEDIATE, /* Immediate channel establishment */ | |
266 MFW_SAT_EST_ONDEMAND /* On-demand channel establishment */ | |
267 | |
268 } T_MFW_SAT_EST; | |
269 | |
270 typedef enum | |
271 { | |
272 MFW_SAT_CHN_NONE = 0, /* No channel type given */ | |
273 MFW_SAT_CHN_VOICE, /* Channel type Voice */ | |
274 MFW_SAT_CHN_CSD, /* Channel type CSD */ | |
275 MFW_SAT_CHN_GPRS /* Channel type GPRS */ | |
276 | |
277 } T_MFW_SAT_CHN; | |
278 | |
279 typedef struct | |
280 { | |
281 T_MFW_SAT_CHN channel_type; | |
282 T_MFW_SAT_EST establishment_type; | |
283 SatTxt alpha_id; /* Alpha identifier as in GSM 11.14 section 12.22 */ | |
284 U8 dur1Unit; /* redial time unit duration 1 */ | |
285 U8 dur1Value; /* redial max time duration 1 */ | |
286 U8 dur2Unit; /* redial time unit duration 2 */ | |
287 U8 dur2Value; /* redial max time duration 2 */ | |
288 } SatOpenChannel; | |
289 | |
290 typedef struct | |
291 { | |
292 SatTxt alpha_id; /* Alpha identifier as in GSM 11.14 section 12.22 */ | |
293 } SatCloseChannel; | |
294 | |
295 typedef struct | |
296 { | |
297 SatTxt alpha_id; /* Alpha identifier as in GSM 11.14 section 12.22 */ | |
298 } SatSendData; | |
299 | |
300 typedef struct | |
301 { | |
302 SatTxt alpha_id; /* Alpha identifier as in GSM 11.14 section 12.22 */ | |
303 } SatReceiveData; | |
304 | |
305 | |
306 typedef struct SatCmdTag /* SAT COMMAND BUFFER */ | |
307 { | |
308 U8 number; /* command number */ | |
309 U8 type; /* command type */ | |
310 U8 qual; /* command qualifier */ | |
311 U8 source; /* source device */ | |
312 U8 dest; /* destination device */ | |
313 U8 pad1; | |
314 U8 pad2; | |
315 U8 pad3; | |
316 union /* command data */ | |
317 { | |
318 SatTxt text; /* display text */ | |
319 SatInput inp; /* input user string */ | |
320 SatTone tone; /* play tone */ | |
321 SatMenu menu; /* setup menu */ | |
322 SatSMS sms; /* send SMS */ | |
323 SatSS ss; /* send SS */ | |
324 SatCall call; /* setup call */ | |
325 SatList events; /* setup event list */ | |
326 SatExec cmd; /* execute AT/DTMF command */ | |
327 SatCcRes ccres; /* call control information */ | |
328 SatRefreshFiles refFiles; /* files to be refreshed */ | |
329 SatData files; /* old code for REFRESH*/ | |
330 #if defined(FF_WAP) | |
331 SatLaunchBrowser browser; /* launch browser command */ | |
332 #endif | |
333 /* SPR#1786 - DS - Added the following SAT Class E commands */ | |
334 SatOpenChannel open; /* open channel command */ | |
335 SatCloseChannel close; /* close channel command */ | |
336 SatSendData send; /* send data command */ | |
337 SatReceiveData receive; /* receive data command */ | |
338 | |
339 /* !!! Does fill now need to be changed? !!! */ | |
340 U8 fill [448]; /* maximal union size */ | |
341 } c; | |
342 } SatCmd; | |
343 | |
344 typedef struct MfwSatTag /* SAT CONTROL BLOCK */ | |
345 { | |
346 MfwEvt map; /* selection of events */ | |
347 MfwEvt evt; /* current event */ | |
348 MfwCb handler; /* event handler */ | |
349 SatCmd *cmd; /* event related data */ | |
350 MfwHnd parentWindow; /* mother of all SAT windows */ | |
351 MfwHnd currentWindow; /* SAT window in use */ | |
352 } MfwSat; | |
353 | |
354 /* SAT COMMAND TYPES */ | |
355 #define SatCmdRefresh 0x01 /* refresh command */ | |
356 #define SatCmdMoreTime 0x02 /* more time command */ | |
357 #define SatCmdPollTime 0x03 /* poll interval command */ | |
358 #define SatCmdPollOff 0x04 /* polling off command */ | |
359 #define SatCmdEvtList 0x05 /* set event list command */ | |
360 #define SatCmdCall 0x10 /* set up call command */ | |
361 #define SatCmdSndSS 0x11 /* send SS command */ | |
362 #define SatCmdSndUSSD 0x12 /* send USSD command */ | |
363 #define SatCmdSndSMS 0x13 /* send SMS command */ | |
364 #define SatCmdSndDTMF 0x14 /* send DTMF command */ | |
365 #define SatCmdLaunchBrowser 0x15 /*Launch Browser */ | |
366 #define SatCmdPlayTone 0x20 /* play tone command */ | |
367 #define SatCmdDispText 0x21 /* display text command */ | |
368 #define SatCmdGetKey 0x22 /* get inkey command */ | |
369 #define SatCmdGetString 0x23 /* get input command */ | |
370 #define SatCmdSelItem 0x24 /* select item command */ | |
371 #define SatCmdSetMenu 0x25 /* set up menu command */ | |
372 #define SatCmdLocalInf 0x26 /* provide local info */ | |
373 #define SatCmdIdleText 0x28 /* setup idle mode text */ | |
374 #define SatCmdExecAT 0x34 /* run AT command */ | |
375 | |
376 /* SPR#1786 - DS - Command types for SAT Class E */ | |
377 #define SatCmdOpenChannel 0x40 /* Open Channel command */ | |
378 #define SatCmdCloseChannel 0x41 /* Close Channel command */ | |
379 #define SatCmdReceiveData 0x42 /* Receive Data command SPR#2508 - DS - Swapped Send and Receive values */ | |
380 #define SatCmdSendData 0x43 /* Send Data command */ | |
381 | |
382 #define SatCmdEOS 0x81 /* end of proactive session */ | |
383 | |
384 /* SAT EVENT FLAGS */ | |
385 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460 | |
386 #ifdef FF_MMI_SAT_ICON | |
387 #define MfwSatCmdNone 0x00000000 /* SAT No command */ | |
388 #endif | |
389 #define MfwSatRefresh 0x00000001 /* refresh SIM fields */ | |
390 #define MfwSatTextOut 0x00000002 /* display string */ | |
391 #define MfwSatGetKey 0x00000004 /* get user keystroke */ | |
392 #define MfwSatGetString 0x00000008 /* get user input */ | |
393 #define MfwSatPlayTone 0x00000010 /* play audio tone */ | |
394 #define MfwSatSetupMenu 0x00000020 /* setup toolkit menu */ | |
395 #define MfwSatSelectItem 0x00000040 /* select menu item */ | |
396 #define MfwSatSendSMS 0x00000080 /* send short message */ | |
397 #define MfwSatSendSS 0x00000100 /* send service command */ | |
398 #define MfwSatCall 0x00000200 /* setup a call */ | |
399 #define MfwSatSendUSSD 0x00000400 /* send USSD */ | |
400 #define MfwSatSetEvents 0x00000800 /* setup event list */ | |
401 #define MfwSatCcRes 0x00001000 /* call control result */ | |
402 #define MfwSatCcAlert 0x00002000 /* call control alerting */ | |
403 #define MfwSatIdleText 0x00004000 /* setup idle mode text */ | |
404 #define MfwSatExecAT 0x00008000 /* run AT command */ | |
405 #define MfwSatSendDTMF 0x00010000 /* send DTMF tones */ | |
406 #define MfwSatDataRefreshed 0x00020000 /* Sent when data has already been refreshed */ | |
407 #if defined(FF_WAP) | |
408 #define MfwSatLaunchBrowser 0x00040000 /* Launch Browser command */ | |
409 #endif | |
410 /* SPR#1786 - DS - SAT Class E events */ | |
411 #define MfwSatOpenChannel 0x00080000 /* Open Channel command */ | |
412 #define MfwSatCloseChannel 0x00100000 /* Close Channel command */ | |
413 #define MfwSatSendData 0x00200000 /* Send Data command */ | |
414 #define MfwSatReceiveData 0x00400000 /* Receive Data command */ | |
415 | |
416 #define MfwSatErrBusy 0x00800000 /* SPR#2321 - DS - SAT Busy Error */ | |
417 | |
418 #define MfwSatSessionEnd 0x80000000 /* session terminated */ | |
419 | |
420 /* SAT DEVICE IDENTITIES */ | |
421 #define SatDevKeypad 0x01 /* keypad device */ | |
422 #define SatDevDisplay 0x02 /* display device */ | |
423 #define SatDevSpeaker 0x03 /* earpiece device */ | |
424 #define SatDevSIM 0x81 /* SIM device */ | |
425 #define SatDevME 0x82 /* mobile equipment device */ | |
426 #define SatDevNet 0x83 /* network device */ | |
427 | |
428 /* SPR#2321 - DS - SAT Class E Device Identities */ | |
429 #define SatDevCh1 0x21 /* Channel one */ | |
430 #define SatDevCh2 0x22 /* Channel two */ | |
431 #define SatDevCh3 0x23 /* Channel three */ | |
432 #define SatDevCh4 0x24 /* Channel four */ | |
433 #define SatDevCh5 0x25 /* Channel five */ | |
434 #define SatDevCh6 0x26 /* Channel six */ | |
435 #define SatDevCh7 0x27 /* Channel seven */ | |
436 | |
437 /* SAT EVENT TYPES FOR MMI */ | |
438 #define SatEvtUserAction 0x04 /* user activity */ | |
439 #define SatEvtIdleScreen 0x05 /* idle screen available */ | |
440 #if defined(FF_WAP) | |
441 #define SatEvtBrowserTermination 0x08 /* Sat Browser termination */ | |
442 #endif | |
443 /* SAT ERROR CODES */ | |
444 #define SatResSuccess 0x00 /* performed successsfully */ | |
445 #define SatResPartial 0x01 /* ok,partial comprehension */ | |
446 #define SatResMissing 0x02 /* ok,missing information */ | |
447 #define SatResAdditional 0x03 /* ok,additional EFs read */ | |
448 #define SatResNoIcon 0x04 /* ok,no icon displayed */ | |
449 #define SatResModified 0x05 /* ok,modified by SIM */ | |
450 #define SatResUserAbort 0x10 /* terminated by user */ | |
451 #define SatResUserBack 0x11 /* backward move by user */ | |
452 #define SatResUserNoResp 0x12 /* no response from user */ | |
453 #define SatResUserHelp 0x13 /* help request from user */ | |
454 #define SatResUserAbortUSSD 0x14 /* USSD terminated by user */ | |
455 #define SatResBusyME 0x20 /* ME temporary failure */ | |
456 #define SatResBusyNet 0x21 /* Net temporary failure */ | |
457 #define SatResReject 0x22 /* user reject call setup */ | |
458 #define SatResCleared 0x23 /* call cleared (user/net) */ | |
459 #define SatResTimerConflict 0x24 /* conflict on timer state */ | |
460 #define SatResCCTemp 0x25 /* CC by SIM: temp failure */ | |
461 #define SatResImpossible 0x30 /* ME cannot do it */ | |
462 #define SatResUnknownType 0x31 /* type not understood */ | |
463 #define SatResUnknownData 0x32 /* data not understood */ | |
464 #define SatResUnknownNumber 0x33 /* number not understood */ | |
465 #define SatResSSerror 0x34 /* SS return error */ | |
466 #define SatResSMSerror 0x35 /* SMS-RP error */ | |
467 #define SatResNoValues 0x36 /* missing required values */ | |
468 #define SatResUSSDerror 0x37 /* USSD return error */ | |
469 #define SatResMultiCard 0x38 /* Multiple card error */ | |
470 #define SatResCCPermanent 0x39 /* CC by SIM: perm. failure */ | |
471 | |
472 /* SAT ADDITIONAL INFO */ | |
473 #define SatResAiNoCause 0x00 /* no specific cause */ | |
474 #define SatResAiBusyScreen 0x01 /* screen is busy */ | |
475 #define SatResAiBusyCall 0x02 /* ME busy on call */ | |
476 #define SatResAiBusySS 0x03 /* ME busy on SS */ | |
477 #define SatResAiNoService 0x04 /* no service available */ | |
478 #define SatResAiAccess 0x05 /* access control class bar */ | |
479 #define SatResAiNoRadio 0x06 /* no radio resource */ | |
480 #define SatResAiNoSpeech 0x07 /* not in speech call */ | |
481 #define SatResAiBusyUSSD 0x08 /* ME busy on USSD */ | |
482 #define SatResAiBusyDTMF 0x09 /* ME busy on send DTMF */ | |
483 | |
484 /* SAT MULTICARD INFO */ | |
485 #define SatResAiNoReader 0x01 /* no card reader */ | |
486 #define SatResAiNoCard 0x02 /* no card */ | |
487 #define SatResAiBusyReader 0x03 /* card reader busy */ | |
488 #define SatResAiCardOff 0x04 /* no card power */ | |
489 #define SatResAiPDUError 0x05 /* PDU format error */ | |
490 #define SatResAiMuteCard 0x06 /* mute card */ | |
491 #define SatResAiXmitError 0x07 /* transmission error */ | |
492 #define SatResAiProtocol 0x08 /* unsuppoerted protocol */ | |
493 #define SatResAiIllReader 0x09 /* invalid card reader */ | |
494 | |
495 /* SAT LAUNCH BROWSER ADDITIONAL INFO */ | |
496 #define SatResAiBearerUnavailable 0x01 /* bearer unavailable */ | |
497 #define SatResAiBrowserUnavailable 0x02 /* browser unavailable */ | |
498 #define SatResAiUnableToReadData 0x03 /* ME unable to read the provisioning data */ | |
499 | |
500 /* SAT BROWSER TERMINATION CAUSE CODE */ | |
501 | |
502 #if defined(FF_WAP) | |
503 #define SatBrowserTerminCauseUser 0x00 | |
504 #define SatBrowserTerminCauseError 0x01 | |
505 #endif | |
506 /* SAT SETUP EVENT LIST FLAGS */ | |
507 #define SatEvtUserActionActivated 0x01 /* user activity */ | |
508 #define SatEvtIdleScreenActivated 0x02 /* idle screen available */ | |
509 #if defined(FF_WAP) | |
510 #define SatEvtBrowserTerminateActivated 0x04 /* Browser terminated */ | |
511 #endif | |
512 /* PROTOTYPES */ | |
513 MfwRes satInit (U8 *profile, U8 plen); | |
514 MfwRes satExit (void); | |
515 MfwHnd satCreate (MfwHnd w, MfwEvt e, MfwCb f, SatCmd *c); | |
516 MfwRes satDelete (MfwHnd h); | |
517 | |
518 MfwRes satString (SatCmd *cmd, SatTxt *txt, U8 *res, int rlen); | |
519 MfwRes satItem (SatCmd *cmd, U8 itemId, U8 *res, int rlen); | |
520 MfwRes satMenuItem (U8 itemId, U8 help); | |
521 MfwRes satEvtDownload (U8 evt); | |
522 MfwRes satDone (SatCmd *cmd, U8 *res, int rlen); | |
523 int satEvtRegistered (int evt); /*SPR#2121 - DS - Check if evt has been registered by SAT Setup Event List command*/ | |
524 | |
525 void satAccept (void); | |
526 void satReject (void); | |
527 void satDisc (void); | |
528 void Mfw_SAT_DTMF_EndSession(void); // x0021334 : To test SAT session end - CQ33597 | |
529 | |
530 void satSignal (U32 evt, void *data); | |
531 | |
532 void rAT_PercentSATI (S16 len, U8 *sc); | |
533 | |
534 /* BEGIN : Sumit: Neptune */ | |
535 #ifndef NEPTUNE_BOARD | |
536 void rAT_PercentSATN (S16 len, U8 *sc, T_ACI_SATN_CNTRL_TYPE cntrl_type); | |
537 #else | |
538 void rAT_PercentSATN ( SHORT len,UBYTE *satCmd); | |
539 #endif | |
540 /* END SUMIT: Neptune*/ | |
541 | |
542 #ifdef FF_SAT_E | |
543 void rAT_PercentSATA (S16 cId, S32 rdlTimeout_ms,T_ACI_SATA_ADD *addParm); | |
544 #else | |
545 void rAT_PercentSATA (S16 cId, S32 rdlTimeout_ms); | |
546 #endif /* FF_SAT_E */ | |
547 | |
548 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460 | |
549 #ifdef FF_MMI_SAT_ICON | |
550 void simReadIconData (U8 record_number); | |
551 void sim_img_cnf (USHORT error, UBYTE record_number, UBYTE *efimg); | |
552 void sim_img_instance_data_cnf (USHORT error, UBYTE *data_instance); | |
553 void iconDataUpdate(SatTxt *t, UBYTE width, UBYTE height, char *dst); | |
554 void convert_21_image(UBYTE width, UBYTE height, UBYTE depth, UBYTE *src, UBYTE *palette, UBYTE *dst); | |
555 void convert_11_image(UBYTE width, UBYTE height, char *src, char *dst); | |
556 #endif | |
557 | |
558 void rAT_PercentSATE (S16 len, U8 *sc); | |
559 BOOL satChangeNotify (int ref, T_SIM_FILE_UPDATE_IND *updateInd); | |
560 void satUpdateFiles ( U8 updated, USHORT dataId ); | |
561 BOOL satRefreshNotification ( int ref, T_SIM_FILE_UPDATE_IND *updateInd); | |
562 void satRefreshAbort(void); | |
563 #if defined(FF_WAP) | |
564 MfwRes satBrowserTerminated(U8 cause); | |
565 #endif | |
566 void sate_error(T_ACI_CME_ERR error); /* SPR#2321 - DS - SAT error handling */ | |
567 | |
568 // Jun 16, 2005 REF: CRR 31543 x0021334 | |
569 // Issue: SATK: cannot get TR for send ussd command | |
570 // Prototype for new function | |
571 T_MFW_SS_RETURN satHangup (T_ACI_CMD_SRC sId); | |
572 #endif |