📄 mfw_sat.h
字号:
/*
+--------------------------------------------------------------------+
| PROJECT: MMI-Framework (8417) $Workfile:: mfw_sat.h $|
| $Author: root $ CONDAT GmbH $Revision: 1.1.1.1 $|
| CREATED: 07.05.99 $Modtime:: 29/02/00 18:19 $|
| STATE : code |
+--------------------------------------------------------------------+
MODULE : MFW_SAT
PURPOSE : SIM Application Toolkit Handling
EXPORT :
TO DO :
$History:: mfw_sat.h $
*
* ***************** Version 5 *****************
* User: Xsp Date: 3/03/00 Time: 12:51
* Updated in $/GSM/Condat/MS/SRC/MFW
* Changfed type of xxxWindow fields in MfwSat struct...
*
* ***************** Version 4 *****************
* User: Xsp Date: 14/02/00 Time: 18:11
* Updated in $/GSM/Condat/MS/SRC/MFW
* Solved compiler errors...
*
* ***************** Version 3 *****************
* User: Xsp Date: 14/02/00 Time: 14:43
* Updated in $/GSM/Condat/MS/SRC/MFW
* Added window pointers to sat structure...
*
* ***************** Version 2 *****************
* User: Fk Date: 11.02.00 Time: 15:40
* Updated in $/GSM/Condat/MS/SRC/MFW
* New event 'SAT Session End' derived from empty command
*
* ***************** Version 1 *****************
* User: Es Date: 6.07.99 Time: 12:42
* Created in $/GSM/DEV/MS/SRC/MFW
* SIM application toolkit handler
* Initial
*/
#ifndef _DEF_MFW_SAT_H_
#define _DEF_MFW_SAT_H_
#include "mfw_win.h"
#include "aci_cmh.h"
#define MFW_MAX_NT_SIZE 6 /* save changed files notification */
#define MFW_MAX_PFP_ELEM 15
typedef struct
{ /* SAT ICON IDENTIFIER */
U8 qual; /* icon qualifier */
U8 id; /* icon identifier */
U8 pad1;
U8 pad2;
} SatIconId;
typedef struct
{ /* SAT TEXT STRING */
SatIconId icon; /* icon identifier */
U16 text; /* offset to text string */
U8 responseFlag; /* immediate response */
U8 code; /* data coding scheme */
U8 len; /* length of text */
U8 pad1;
U8 pad2;
U8 pad3;
} SatTxt;
typedef struct
{ /* SAT ADDRESS */
U16 number; /* offset to dial number */
U8 ton; /* type of number, npi */
U8 len; /* length of dial number */
} SatAddress;
typedef struct
{ /* SAT MISCELLEANEOUS DATA */
U16 data; /* offset to data */
U8 len; /* length of data */
U8 pad;
} SatData;
typedef struct
{ /* SAT LIST DATA */
U8 len; /* number of bytes in list */
U8 elem [1]; /* list elements */
} SatList;
typedef struct
{ /* SAT SMS TPDU */
U16 data; /* offset to pdu data */
U8 len; /* pdu length */
U8 pad;
} SatSmsPdu;
typedef struct
{ /* SAT MENU ITEM */
U16 text; /* offset to text data */
U8 id; /* item identifier */
U8 action; /* next action id */
U8 icon; /* items icon */
U8 len; /* length of text */
U8 pad1;
U8 pad2;
} SatItem;
typedef struct
{ /* SAT INPUT USER STRING */
SatTxt prompt; /* prompt string */
SatTxt defRsp; /* default response */
U8 rspMin; /* minimal response length */
U8 rspMax; /* maximal response length */
U8 pad1;
U8 pad2;
} SatInput;
typedef struct
{ /* SAT PLAY TONE */
SatTxt alpha; /* tones alpha tag */
U8 tone; /* code for tone */
U8 durUnit; /* code for duration unit */
U8 durValue; /* duration value */
U8 pad;
} SatTone;
typedef struct
{ /* SAT SETUP MENU */
SatTxt header; /* menu header */
U8 itemIconQual; /* item icon qualifier */
U8 nItems; /* number of menu items */
U8 pad1;
U8 pad2;
SatItem items [1]; /* menu items (min. one) */
} SatMenu;
typedef struct
{ /* SAT SEND SMS */
SatTxt info; /* user information */
SatAddress addr; /* address */
SatSmsPdu sms; /* SMS TPDU */
} SatSMS;
typedef struct
{ /* SAT SEND SS */
SatTxt info; /* user information */
SatAddress ss; /* SS string */
} SatSS;
typedef struct
{ /* SAT SETUP CALL */
SatTxt info; /* user information */
SatTxt info2; /* setup information */
SatAddress addr; /* address */
SatData bc; /* bearer capabilities */
SatData sa; /* subaddress */
U8 durUnit; /* redial time unit */
U8 durValue; /* redial max time */
U8 pad1;
U8 pad2;
} SatCall;
typedef struct
{ /* SAT EXEC AT/DTMF */
SatTxt info; /* user information */
SatData cmd; /* AT cmd / DTMF sequence */
} SatExec;
typedef struct
{ /* CALL CONTROL RESULT */
SatAddress addr; /* address */
SatAddress addr2; /* address on SMS control */
SatData bc; /* bearer capabilities */
SatData bc2; /* bearer capabilities 2 */
SatData sa; /* subaddress */
SatTxt info; /* alpha information */
S32 redialTime; /* maximal redial time */
S16 callId; /* id of new call */
U8 bcRepInd; /* BC repeat indicator */
U8 result; /* call control result */
} SatCcRes;
typedef struct
{ /* SAT REFRESH FILES */
U16* files; /* Pointer to the files list */
U16 files_nr; /* length of the files list */
U8 status; /*Status of the refresh procedure */
} SatRefreshFiles; /* -1 -> to be done or */
/* SIM_FU_ERROR,SIM_FU_SUCCESS,SIM_FU_SUCC_ADD */
#if defined(WAP)
typedef struct
{
U8 prov_file_id_len; /*length of provisional file ids*/
U8* prov_file_id; /*provisiona file ids */
} ProvFileRef;
typedef struct
{ /* SAT LAUNCH BROWSER COMMAND */
U8 identity; /* Browser identity as in GSM 11.14 12.47 */
U8* url; /* Universal Res Loc as in GSM 11.14 12.48*/
U8 n_bearer; /* Number of elements in the bearer list */
U8* bearer; /* Bearer list as in GSM 11.14 12.49 (Null terminated)*/
U8 n_prov_file_ref; /* Number of elements in the prov. file ref. table. */
ProvFileRef prov_file_ref[MFW_MAX_PFP_ELEM]; /* Prov. file ref. list*/
SatTxt text_string; /*Text string as in GSM 11.14 12.15 */
U8 alpha_len; /*Alpha identifier length as in GSM 11.14 12.2 */
U8* alpha_id; /*Alpha identifier as in GSM 11.14 12.2 */
} SatLaunchBrowser;
#endif /*WAP*/
/* SPR#1786 - DS - SAT Class E */
typedef enum
{
MFW_SAT_EST_NONE = 0, /* No establishment type given */
MFW_SAT_EST_IMMEDIATE, /* Immediate channel establishment */
MFW_SAT_EST_ONDEMAND /* On-demand channel establishment */
} T_MFW_SAT_EST;
typedef enum
{
MFW_SAT_CHN_NONE = 0, /* No channel type given */
MFW_SAT_CHN_VOICE, /* Channel type Voice */
MFW_SAT_CHN_CSD, /* Channel type CSD */
MFW_SAT_CHN_GPRS /* Channel type GPRS */
} T_MFW_SAT_CHN;
typedef struct
{
T_MFW_SAT_CHN channel_type;
T_MFW_SAT_EST establishment_type;
SatTxt alpha_id; /* Alpha identifier as in GSM 11.14 section 12.22 */
U8 dur1Unit; /* redial time unit duration 1 */
U8 dur1Value; /* redial max time duration 1 */
U8 dur2Unit; /* redial time unit duration 2 */
U8 dur2Value; /* redial max time duration 2 */
} SatOpenChannel;
typedef struct
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -