FreeCalypso > hg > tcs211-c139
comparison g23m/condat/ms/src/mfw/mfw_simi.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: GSM-MFW (?) $Workfile:: mfw_simi.h $| | |
4 | $Author:: Vo $Revision:: 1 $| | |
5 | CREATED: 14.10.98 $Modtime:: 20.03.00 11:48 $| | |
6 | STATE : code | | |
7 +--------------------------------------------------------------------+ | |
8 | |
9 PURPOSE : Internal definitions for SIM management of MMI framework | |
10 | |
11 */ | |
12 | |
13 #ifndef DEF_MFW_SIMI_HEADER | |
14 #define DEF_MFW_SIMI_HEADER | |
15 | |
16 #include "message.h" | |
17 #include "prim.h" | |
18 #include "aci_cmh.h" | |
19 | |
20 #define NO_ALLOCATED 0 | |
21 #define ALLOCATED_AND_DEACTIVATED 2 | |
22 #define ALLOCATED_AND_ACTIVATED 3 | |
23 | |
24 #define SIM_UBLK_ERROR 0 | |
25 #define SIM_UBLK_OK 1 | |
26 | |
27 #define SIM_PIN2_FAILURE 17 | |
28 #define SIM_PUK2_FAILURE 18 | |
29 | |
30 #define MFW_LEN_PLMN_NTRY 3 | |
31 | |
32 /* SIM configuration information */ | |
33 typedef struct | |
34 { | |
35 UBYTE deper_key [16]; | |
36 UBYTE phase; | |
37 UBYTE oper_mode; /* SIM card functionality */ | |
38 UBYTE pref_lang[5]; | |
39 UBYTE access_acm; | |
40 UBYTE access_acmmax; | |
41 UBYTE access_puct; | |
42 UBYTE sim_gidl1[5]; | |
43 UBYTE sim_gidl2[5]; | |
44 } T_MFW_SIM_CONFIG; | |
45 | |
46 /* | |
47 * SIM Control Block | |
48 */ | |
49 typedef struct | |
50 { | |
51 T_MFW_EVENT emask; /* events of interest */ | |
52 T_MFW_EVENT event; /* current event */ | |
53 T_MFW_CB handler; | |
54 T_MFW_SIM_PARA para; | |
55 } T_MFW_SIM; | |
56 | |
57 | |
58 | |
59 EXTERN T_MFW_HND sim_install (T_MFW_HDR *w, | |
60 T_MFW_HDR *h, | |
61 T_MFW_SIM *sim); | |
62 EXTERN T_MFW_RES sim_remove (T_MFW_HDR *h); | |
63 EXTERN int sim_sign_exec (T_MFW_HDR * hdr, | |
64 T_MFW_EVENT event, | |
65 T_MFW_SIM_PARA *para); | |
66 | |
67 | |
68 | |
69 EXTERN void sim_spn_req (void); | |
70 EXTERN void sim_ok_cfun (void); | |
71 EXTERN void sim_error_cfun (UBYTE reason); | |
72 EXTERN void sim_ok_cpin (void); | |
73 EXTERN void sim_error_cpin (T_ACI_CME_ERR reason); | |
74 EXTERN void sim_ok_cpinc (void); | |
75 EXTERN void sim_error_cpinc (void); | |
76 EXTERN void sim_ok_cpind (void); | |
77 EXTERN void sim_error_cpind (void); | |
78 EXTERN void sim_ok_cpine (void); | |
79 EXTERN void sim_error_cpine (void); | |
80 EXTERN UBYTE sim_check_service (UBYTE nr, UBYTE * serv_table); | |
81 EXTERN T_MFW sim_status_check (void); | |
82 EXTERN void decode_imsi (UBYTE simlck[], | |
83 UBYTE imsi_id[LONG_NAME]); | |
84 EXTERN void sim_mmi_parameter (T_SIM_ACTIVATE_CNF *sim_activate_cnf); | |
85 EXTERN void sim_ss_unblock (UBYTE result, T_ACI_CME_ERR reason); | |
86 EXTERN void sim_simlock_timeout (void); | |
87 EXTERN T_MFW sim_simlock_status (UBYTE status); | |
88 EXTERN UBYTE sim_cvtPINstatus (T_ACI_PVRF_STAT ps, UBYTE type); | |
89 EXTERN void sim_gid1_cnf (SHORT error, UBYTE *data); | |
90 EXTERN void sim_gid2_cnf (SHORT error, UBYTE *data); | |
91 EXTERN void sim_pin_ident (UBYTE id); | |
92 EXTERN T_MFW sim_check_imsi_digit (UBYTE pcm_imsi, UBYTE sim_imsi); | |
93 EXTERN void sim_mmi_update_parameter(T_SIM_ACTIVATE_IND *sim_act_ind); | |
94 EXTERN void sim_sat_file_update (USHORT dataId); | |
95 EXTERN void sim_read_sst_cnf (SHORT error, UBYTE *data); | |
96 EXTERN void sim_read_lp_cnf (SHORT error, T_ACI_LAN_SUP *CLang); | |
97 | |
98 | |
99 #endif |