comparison src/ui3/mfw/mfw_sat.h @ 420:e8ddbb0837ed

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