FreeCalypso > hg > fc-magnetite
comparison cdg211/cdginc/p_sim.val @ 4:56abf6cf8a0b
cdg211: cdginc/mdf/pdf files from TCS211-20070608
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Mon, 26 Sep 2016 01:11:35 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
3:93999a60b835 | 4:56abf6cf8a0b |
---|---|
1 /* | |
2 +--------------------------------------------------------------------------+ | |
3 | PROJECT : PROTOCOL STACK | | |
4 | FILE : p_sim.val | | |
5 | SOURCE : "__out__\g23m_dfile\prim\sim.pdf" | | |
6 | LastModified : "2003-01-24" | | |
7 | IdAndVersion : "6147.108.99.113" | | |
8 | SrcFileTime : "Thu Feb 2 12:06:02 2006" | | |
9 | Generated by CCDGEN_2.5.5 on Fri Jun 08 13:59:16 2007 | | |
10 | !!DO NOT MODIFY!!DO NOT MODIFY!!DO NOT MODIFY!! | | |
11 +--------------------------------------------------------------------------+ | |
12 */ | |
13 | |
14 /* PRAGMAS | |
15 * PREFIX : NONE | |
16 * COMPATIBILITY_DEFINES : NO (require PREFIX) | |
17 * ALWAYS_ENUM_IN_VAL_FILE: NO | |
18 * ENABLE_GROUP: NO | |
19 * CAPITALIZE_TYPENAME: NO | |
20 */ | |
21 | |
22 | |
23 #ifndef P_SIM_VAL | |
24 #define P_SIM_VAL | |
25 | |
26 | |
27 #define CDG_ENTER__P_SIM_VAL | |
28 | |
29 #define CDG_ENTER__FILENAME _P_SIM_VAL | |
30 #define CDG_ENTER__P_SIM_VAL__FILE_TYPE CDGINC | |
31 #define CDG_ENTER__P_SIM_VAL__LAST_MODIFIED _2003_01_24 | |
32 #define CDG_ENTER__P_SIM_VAL__ID_AND_VERSION _6147_108_99_113 | |
33 | |
34 #define CDG_ENTER__P_SIM_VAL__SRC_FILE_TIME _Thu_Feb_2_12_06_02_2006 | |
35 | |
36 #include "CDG_ENTER.h" | |
37 | |
38 #undef CDG_ENTER__P_SIM_VAL | |
39 | |
40 #undef CDG_ENTER__FILENAME | |
41 | |
42 | |
43 /* | |
44 * Value constants for VAL_datafield | |
45 */ | |
46 #define SIM_MF (0x3f00) /* main file directory (M) */ | |
47 #define SIM_ICCID (0x2fe2) /* ICC identification (M) */ | |
48 #define SIM_ELP (0x2f05) /* extended language preference */ | |
49 #define SIM_DF_TELECOM (0x7f10) /* telecom directory */ | |
50 #define SIM_ADN (0x6f3a) /* abbreviated dialling numbers */ | |
51 #define SIM_FDN (0x6f3b) /* fixed dialling numbers */ | |
52 #define SIM_SMS (0x6f3c) /* short messages */ | |
53 #define SIM_CCP (0x6f3d) /* capability configuration parameters */ | |
54 #define SIM_MSISDN (0x6f40) /* MSISDN */ | |
55 #define SIM_SMSP (0x6f42) /* short message service parameters */ | |
56 #define SIM_SMSS (0x6f43) /* short message status */ | |
57 #define SIM_LND (0x6f44) /* last number dialled */ | |
58 #define SIM_SMSR (0x6f47) /* short message status reports */ | |
59 #define SIM_SDN (0x6f49) /* service dialling numbers */ | |
60 #define SIM_EXT1 (0x6f4a) /* extension 1 */ | |
61 #define SIM_EXT2 (0x6f4b) /* extension 2 */ | |
62 #define SIM_EXT3 (0x6f4c) /* extension 3 */ | |
63 #define SIM_BDN (0x6f4d) /* barred dialling numbers */ | |
64 #define SIM_EXT4 (0x6f4e) /* extension 4 */ | |
65 #define SIM_ORANGE_DYN2_FLAG (0x6f92) /* Orange Proprietary */ | |
66 #define SIM_ORANGE_CSP2 (0x6f98) /* Orange Proprietary */ | |
67 #define SIM_ORANGE_ACM2 (0x6f9c) /* Orange Proprietary */ | |
68 #define SIM_ORANGE_DYN_FLAGS (0x6f9f) /* Orange Proprietary */ | |
69 #define SIM_DF_ORANGE (0x7f40) /* Orange Proprietary */ | |
70 #define SIM_DF_GRAPHICS (0x5f50) /* icon graphics directory (subdirectory of 'telecom') */ | |
71 #define SIM_IMG (0x4f20) /* icon images */ | |
72 #define SIM_DF_GSM (0x7f20) /* gsm directory (M) */ | |
73 #define SIM_DF_1800 (0x7f21) /* dcs 1800 directory */ | |
74 #define SIM_DF_VI (0x7f43) /* Viag directory */ | |
75 #define SIM_LP (0x6f05) /* language preference (M) */ | |
76 #define SIM_VI_HZ_PARAM (0x6f60) /* Viag home zone parameters */ | |
77 #define SIM_VI_HZ_CACHE_1 (0x6f61) /* Viag home zone Cache 1 */ | |
78 #define SIM_VI_HZ_CACHE_2 (0x6f62) /* Viag home zone Cache 2 */ | |
79 #define SIM_VI_HZ_CACHE_3 (0x6f63) /* Viag home zone Cache 3 */ | |
80 #define SIM_VI_HZ_CACHE_4 (0x6f64) /* Viag home zone Cache 4 */ | |
81 #define SIM_IMSI (0x6f07) /* international mobile subscriber identity (M) */ | |
82 #define SIM_KC (0x6f20) /* ciphering key Kc (M) */ | |
83 #define SIM_DCK (0x6f2c) /* De-personalization Control Keys */ | |
84 #define SIM_PLMNSEL (0x6f30) /* preferred PLMN selector */ | |
85 #define SIM_HPLMN (0x6f31) /* HPLMN search period (M) */ | |
86 #define SIM_CNL (0x6f32) /* Co-operative Network List */ | |
87 #define SIM_ACMMAX (0x6f37) /* ACM maximum value */ | |
88 #define SIM_SST (0x6f38) /* SIM service table (M) */ | |
89 #define SIM_ACM (0x6f39) /* accumulated call meter */ | |
90 #define SIM_GID1 (0x6f3e) /* group identifier level 1 */ | |
91 #define SIM_GID2 (0x6f3f) /* group identifier level 2 */ | |
92 #define SIM_PUCT (0x6f41) /* price per unit and currency */ | |
93 #define SIM_CBMI (0x6f45) /* cell broadcast message identifier selection */ | |
94 #define SIM_SPN (0x6f46) /* service provider name */ | |
95 #define SIM_CBMID (0x6f48) /* cell broadcast message identifier for data download */ | |
96 #define SIM_BCCH (0x6f74) /* broadcast control channels (M) */ | |
97 #define SIM_ACC (0x6f78) /* access control classes (M) */ | |
98 #define SIM_FPLMN (0x6f7b) /* forbidden PLMNs (M) */ | |
99 #define SIM_LOCI (0x6f7e) /* location information (M) */ | |
100 #define SIM_AD (0x6fad) /* administrative data (M) */ | |
101 #define SIM_PHASE (0x6fae) /* phase identification (M) */ | |
102 #define SIM_VGCS (0x6fb1) /* voice group call service */ | |
103 #define SIM_VGCSS (0x6fb2) /* voice group call service status */ | |
104 #define SIM_VBS (0x6fb3) /* voice broadcast service */ | |
105 #define SIM_VBSS (0x6fb4) /* voice broadcast service status */ | |
106 #define SIM_EMLPP (0x6fb5) /* enhanced multi level pre-emption and priority */ | |
107 #define SIM_AAEM (0x6fb6) /* automatic answer for eMLPP service */ | |
108 #define SIM_ECC (0x6fb7) /* emergency call codes */ | |
109 #define SIM_CBMIR (0x6f50) /* cell broadcast message identifier range selection */ | |
110 #define SIM_NIA (0x6f51) /* network's indication of alerting */ | |
111 #define SIM_KCGPRS (0x6f52) /* ciphering key (GPRS) */ | |
112 #define SIM_LOCGPRS (0x6f53) /* location information (GPRS) */ | |
113 #define SIM_SUME (0x6f54) /* setup menu elements */ | |
114 #define SIM_PNN (0x6fc5) /* PLMN network name (3GPP release 4) */ | |
115 #define SIM_OPL (0x6fc6) /* operator PLMN list (3GPP release 4) */ | |
116 #define SIM_CPHS_VMW (0x6f11) /* voice message waiting (CPHS) */ | |
117 #define SIM_CPHS_SST (0x6f12) /* service string table (CPHS) */ | |
118 #define SIM_CPHS_CFF (0x6f13) /* call forwarding flags (CPHS) */ | |
119 #define SIM_CPHS_ONSTR (0x6f14) /* operator string name (CPHS) */ | |
120 #define SIM_CPHS_CSP (0x6f15) /* customer service profile (CPHS) */ | |
121 #define SIM_CPHS_CINF (0x6f16) /* CPHS information (CPHS) */ | |
122 #define SIM_CPHS_MBXN (0x6f17) /* mailbox numbers (CPHS) */ | |
123 #define SIM_CPHS_ONSHF (0x6f18) /* operator name shortform (CPHS) */ | |
124 #define SIM_CPHS_INFN (0x6f19) /* information numbers (CPHS) */ | |
125 #define SIM_DF_SOLSA (0x5f70) /* SoLSA directory (subdirectory of 'gsm') */ | |
126 #define SIM_SAI (0x4f30) /* SoLSA access indicator */ | |
127 #define SIM_SLL (0x4f31) /* SoLSA LSA list */ | |
128 #define SIM_CPHS_INFN2 (0xea01) /* information numbers (CPHS) 2 (old SIMs) */ | |
129 #define SIM_DF_CING (0x7f66) /* 1st level Directory(CINGULAR specific) */ | |
130 #define SIM_DF2_CING (0x5f30) /* 2nd level Directory(CINGULAR specific) */ | |
131 #define SIM_CING_AHPLMN (0x4f34) /* Acting Home PLMN(CINGULAR specific) */ | |
132 #define SIM_CING_TRMST (0x6fd2) /* terminal support table */ | |
133 | |
134 /* | |
135 * Value constants for VAL_cause | |
136 */ | |
137 #define SIM_NO_ERROR (0x80ff) /* No error (Status Code 9000, 91XX, 9FXX, 920X; USIM 63CX) */ | |
138 #define SIM_CAUSE_NO_SELECT (0x1) /* No EF selected (SC 9400; USIM 6986) */ | |
139 #define SIM_CAUSE_UNKN_FILE_ID (0x2) /* file id not found (SC 9404; USIM 6A82) */ | |
140 #define SIM_CAUSE_EF_INVALID (0x3) /* EF invalidated (SC 9810; USIM 6283, 6984) */ | |
141 #define SIM_CAUSE_ADDR_WRONG (0x4) /* Address of data invalid (SC 9402; USIM 6A83) */ | |
142 #define SIM_CAUSE_CMD_INCONSIST (0x5) /* Command inconsistent with file type (SC 9408; USIM 6981) */ | |
143 #define SIM_CAUSE_MAX_INCREASE (0x6) /* Increase: maximum reached (SC 9850) */ | |
144 #define SIM_CAUSE_CLA_WRONG (0x8) /* Wrong class parameter (SC 6EXX) */ | |
145 #define SIM_CAUSE_INS_WRONG (0x9) /* Unknown instruction code (SC 6DXX; USIM 6A81) */ | |
146 #define SIM_CAUSE_P1P2_WRONG (0xa) /* Incorrect parameter P1, P2 (SC 6BXX; USIM 6A86. 6A88) */ | |
147 #define SIM_CAUSE_P3_WRONG (0xb) /* Incorrect parameter P3 (SC 67XX; USIM 6282, 6A87) */ | |
148 #define SIM_CAUSE_CHV_NOTSET (0xc) /* No CHV active (SC 9802; USIM 6982) */ | |
149 #define SIM_CAUSE_CHV_VALIDATED (0xd) /* CHV already validated (SC 9808; USIM 6982) */ | |
150 #define SIM_CAUSE_ACCESS_PROHIBIT (0xe) /* Access conditions not fulfilled (SC 9804; USIM 6985) */ | |
151 #define SIM_CAUSE_OTHER_ERROR (0xf) /* Any other SIM error */ | |
152 #define SIM_CAUSE_PUK1_BLOCKED (0x10) /* PUK1 blocked (SC 9840; USIM 63C0) */ | |
153 #define SIM_CAUSE_PUK1_REMAIN1 (0x11) /* Wrong PUK1, 1 attempt left (SC 9804; USIM 63C1) */ | |
154 #define SIM_CAUSE_PUK1_REMAIN2 (0x12) /* Wrong PUK1, 2 attempts left (USIM 63C2) */ | |
155 #define SIM_CAUSE_PUK1_REMAIN3 (0x13) /* Wrong PUK1, 3 attempts left (USIM 63C3) */ | |
156 #define SIM_CAUSE_PUK1_REMAIN4 (0x14) /* Wrong PUK1, 4 attempts left (USIM 63C4) */ | |
157 #define SIM_CAUSE_PUK1_REMAIN5 (0x15) /* Wrong PUK1, 5 attempts left (USIM 63C5) */ | |
158 #define SIM_CAUSE_PUK1_REMAIN6 (0x16) /* Wrong PUK1, 6 attempts left (USIM 63C6) */ | |
159 #define SIM_CAUSE_PUK1_REMAIN7 (0x17) /* Wrong PUK1, 7 attempts left (USIM 63C7) */ | |
160 #define SIM_CAUSE_PUK1_REMAIN8 (0x18) /* Wrong PUK1, 8 attempts left (USIM 63C8) */ | |
161 #define SIM_CAUSE_PUK1_REMAIN9 (0x19) /* Wrong PUK1, 9 attempts left (USIM 63C9) */ | |
162 #define SIM_CAUSE_PUK1_EXPECT (0x1a) /* PUK1 required (SC 9804, 9808; USIM 6982, 6985) */ | |
163 #define SIM_CAUSE_PIN1_BLOCKED (0x1c) /* PIN1 blocked (SC 9840; USIM 63C0, 6983) */ | |
164 #define SIM_CAUSE_PIN1_REMAIN1 (0x1d) /* Wrong PIN1, 1 attempt left (USIM 63C1) */ | |
165 #define SIM_CAUSE_PIN1_REMAIN2 (0x1e) /* Wrong PIN1, 2 attempts left (USIM 63C2) */ | |
166 #define SIM_CAUSE_PIN1_EXPECT (0x1f) /* PIN1 required (SC 9804, 9808; USIM 6982, 6985) */ | |
167 #define SIM_CAUSE_PUK2_BLOCKED (0x20) /* PUK2 blocked (SC 9840; USIM 63C0) */ | |
168 #define SIM_CAUSE_PUK2_REMAIN1 (0x21) /* Wrong PUK2, 1 attempt left (USIM 63C1) */ | |
169 #define SIM_CAUSE_PUK2_REMAIN2 (0x22) /* Wrong PUK2, 2 attempts left (USIM 63C2) */ | |
170 #define SIM_CAUSE_PUK2_REMAIN3 (0x23) /* Wrong PUK2, 3 attempts left (USIM 63C3) */ | |
171 #define SIM_CAUSE_PUK2_REMAIN4 (0x24) /* Wrong PUK2, 4 attempts left (USIM 63C4) */ | |
172 #define SIM_CAUSE_PUK2_REMAIN5 (0x25) /* Wrong PUK2, 5 attempts left (USIM 63C5) */ | |
173 #define SIM_CAUSE_PUK2_REMAIN6 (0x26) /* Wrong PUK2, 6 attempts left (USIM 63C6) */ | |
174 #define SIM_CAUSE_PUK2_REMAIN7 (0x27) /* Wrong PUK2, 7 attempts left (USIM 63C7) */ | |
175 #define SIM_CAUSE_PUK2_REMAIN8 (0x28) /* Wrong PUK2, 8 attempts left (USIM 63C8) */ | |
176 #define SIM_CAUSE_PUK2_REMAIN9 (0x29) /* Wrong PUK2, 9 attempts left (USIM 63C9) */ | |
177 #define SIM_CAUSE_PUK2_EXPECT (0x2a) /* PUK2 required (SC 9804, 9808; USIM 6982, 6985) */ | |
178 #define SIM_CAUSE_PIN2_BLOCKED (0x2c) /* PIN2 blocked (SC 9840; USIM 63C0, 6983) */ | |
179 #define SIM_CAUSE_PIN2_REMAIN1 (0x2d) /* Wrong PIN2, 1 attempt left (USIM 63C1) */ | |
180 #define SIM_CAUSE_PIN2_REMAIN2 (0x2e) /* Wrong PIN2, 2 attempts left (USIM 63C2) */ | |
181 #define SIM_CAUSE_PIN2_EXPECT (0x2f) /* PIN1 required (SC 9804, 9808; USIM 6982, 6985) */ | |
182 #define SIM_CAUSE_SAT_BUSY (0x31) /* SIM Application Toolkit busy (SC 9300) */ | |
183 #define SIM_CAUSE_DNL_ERROR (0x32) /* SAT download error (SC 9EXX; USIM 62XX, 63XX) */ | |
184 #define SIM_CAUSE_CARD_REMOVED (0x8000) /* SIM card removed or exchanged */ | |
185 #define SIM_CAUSE_PARAM_WRONG (0xc000) /* Wrong parameter in primitive */ | |
186 #define SIM_CAUSE_DRV_NOCARD (0xc001) /* SIM driver error: no card detected */ | |
187 #define SIM_CAUSE_DRV_NOINT (0xc002) /* SIM driver error: no interrupt */ | |
188 #define SIM_CAUSE_DRV_NOATR (0xc003) /* SIM driver error: no answer to reset */ | |
189 #define SIM_CAUSE_DRV_READ (0xc004) /* SIM driver error: invalid response */ | |
190 #define SIM_CAUSE_DRV_XMIT (0xc005) /* SIM driver error: unsuccessful transmission */ | |
191 #define SIM_CAUSE_DRV_OVF (0xc006) /* SIM driver error: interrupt overflow */ | |
192 #define SIM_CAUSE_DRV_LEN (0xc007) /* SIM driver error: incorrect size of response */ | |
193 #define SIM_CAUSE_DRV_CARDREJ (0xc008) /* SIM driver error: card rejected (invalid properties) */ | |
194 #define SIM_CAUSE_DRV_WAIT (0xc009) /* SIM driver error: timeout */ | |
195 #define SIM_CAUSE_DRV_ABNCASE1 (0xc00a) /* SIM driver error: abnormal case 1 */ | |
196 #define SIM_CAUSE_DRV_ABNCASE2 (0xc00b) /* SIM driver error: abnormal case 2 */ | |
197 #define SIM_CAUSE_DRV_RCVOVFL (0xc00c) /* SIM driver error: more than 256 bytes received */ | |
198 #define SIM_CAUSE_DRV_HWFAIL (0xc00d) /* SIM driver error: hardware failure */ | |
199 #define SIM_CAUSE_DRV_TEMPFAIL (0xc00e) /* SIM driver error: temprary failure, SIM reset required */ | |
200 | |
201 /* | |
202 * Value constants for VAL_op_mode | |
203 */ | |
204 #define OP_NORMAL_SIM (0x0) /* normal SIM card */ | |
205 #define OP_TEST_SIM (0x1) /* test SIM card */ | |
206 | |
207 /* | |
208 * Value constants for VAL_pin_cnt | |
209 */ | |
210 #define CARD_BLOCKED (0x0) /* SIM card is blocked */ | |
211 | |
212 /* | |
213 * Value constants for VAL_phase | |
214 */ | |
215 #define PHASE_2_AS_1_SIM (0x0) /* phase 2 card configured as phase 1 card */ | |
216 #define PHASE_1_SIM (0x1) /* phase 1 card */ | |
217 #define PHASE_2_SIM (0x2) /* phase 2 card */ | |
218 #define PHASE_2PLUS_SIM (0x3) /* phase 2+ card, TP download required */ | |
219 | |
220 /* | |
221 * Value constants for VAL_hplmn | |
222 */ | |
223 #define HPLMN_DEF (0xa) /* default time period for home PLMN search */ | |
224 | |
225 /* | |
226 * Value constants for VAL_pin_id | |
227 */ | |
228 #define PHASE_2_PIN_1 (0x1) /* phase 2 card, PIN 1 */ | |
229 #define PHASE_2_PIN_2 (0x2) /* phase 2 card, PIN 2 */ | |
230 #define PHASE_2_PUK_1 (0x3) /* phase 2 card, PUK 1 */ | |
231 #define PHASE_2_PUK_2 (0x4) /* phase 2 card, PUK 2 */ | |
232 | |
233 /* | |
234 * Value constants for VAL_source | |
235 */ | |
236 #define SRC_MMI (0x0) /* from man machine interface */ | |
237 #define SRC_MM (0x1) /* from mobility management */ | |
238 #define SRC_SMS (0x2) /* from short message service */ | |
239 #define SRC_GMM (0x3) /* from GPRS mobile management */ | |
240 #define SRC_RR (0x4) /* from radio resource management */ | |
241 | |
242 /* | |
243 * Value constants for VAL_mem_cap_avail | |
244 */ | |
245 #define SIM_SMS_MEM_FULL (0x0) /* SMS storage on SIM execeeded */ | |
246 #define SIM_SMS_MEM_AVAIL (0x1) /* SMS storage on SIM available */ | |
247 #define SIM_SMS_NO_MEM (0xff) /* SMS storage on SIM not present */ | |
248 | |
249 /* | |
250 * Value constants for VAL_stk_pro_file | |
251 */ | |
252 #define SAT_TP1_PRF_DNL (0x1) /* Profile download (redundant definition) */ | |
253 #define SAT_TP1_SMS_DNL (0x2) /* SMS-PP data download */ | |
254 #define SAT_TP1_CB_DNL (0x4) /* Cell Broadcast data download */ | |
255 #define SAT_TP1_MENU_SEL (0x8) /* Menu selection */ | |
256 #define SAT_TP1_9E_XX (0x10) /* '9E XX' response code for SIM data download error */ | |
257 #define SAT_TP1_TIMER_EXP (0x20) /* Timer expiration (Class 3) */ | |
258 #define SAT_TP1_CC_USSD (0x40) /* USSD string data object supported in Call Control */ | |
259 #define SAT_TP1_CC_ON_REDIAL (0x80) /* Call Control by SIM always performed on automatic redial */ | |
260 #define SAT_TP2_CMD_RES (0x1) /* Command result (generic) */ | |
261 #define SAT_TP2_CC (0x2) /* Call Control by SIM */ | |
262 #define SAT_TP2_CC_CELL_ID (0x4) /* Cell Identity included in Call Control by SIM */ | |
263 #define SAT_TP2_MOSMC (0x8) /* MO SM Control by SIM (Class 3) */ | |
264 #define SAT_TP2_ALPHA_ID (0x10) /* Alpha identifier according to clause 9 */ | |
265 #define SAT_TP2_UCS2_ENTRY (0x20) /* UCS2 entry supported */ | |
266 #define SAT_TP2_UCS2_DSPL (0x40) /* UCS2 display supported */ | |
267 #define SAT_TP2_DSPL_EXT (0x80) /* extended display length supported (Class 3) */ | |
268 #define SAT_TP3_DSPL_TXT (0x1) /* Proactive SIM: Display Text */ | |
269 #define SAT_TP3_GET_INKEY (0x2) /* Proactive SIM: Get Inkey */ | |
270 #define SAT_TP3_GET_INPUT (0x4) /* Proactive SIM: Get Input */ | |
271 #define SAT_TP3_MORE_TIME (0x8) /* Proactive SIM: More Time */ | |
272 #define SAT_TP3_PLAY_TONE (0x10) /* Proactive SIM: Play Tone */ | |
273 #define SAT_TP3_POLL_ITV (0x20) /* Proactive SIM: Poll Interval */ | |
274 #define SAT_TP3_POLL_OFF (0x40) /* Proactive SIM: Polling Off */ | |
275 #define SAT_TP3_REFRESH (0x80) /* Proactive SIM: Refresh */ | |
276 #define SAT_TP4_SEL_ITEM (0x1) /* Proactive SIM: Select Item */ | |
277 #define SAT_TP4_SEND_SMS (0x2) /* Proactive SIM: Send SM */ | |
278 #define SAT_TP4_SEND_SS (0x4) /* Proactive SIM: Send SS */ | |
279 #define SAT_TP4_SEND_USSD (0x8) /* Proactive SIM: Send USSD (Class 3) */ | |
280 #define SAT_TP4_SETUP_CALL (0x10) /* Proactive SIM: Set up Call */ | |
281 #define SAT_TP4_SETUP_MENU (0x20) /* Proactive SIM: Set up Menu */ | |
282 #define SAT_TP4_PLI_PLMN_IMEI (0x40) /* Proactive SIM: Provide Local Informaton (PLMN, Cell ID, IMEI) */ | |
283 #define SAT_TP4_PLI_NMR (0x80) /* Proactive SIM: Provide Local Informaton (NMR) */ | |
284 #define SAT_TP5_EVENT_LIST (0x1) /* Proactive SIM: Set up Event List (Class 3) */ | |
285 #define SAT_TP5_MT_CALL (0x2) /* Event: Moblile Terminated Call (Class 3) */ | |
286 #define SAT_TP5_CALL_CONN (0x4) /* Event: Call connected (Class 3) */ | |
287 #define SAT_TP5_CALL_DISC (0x8) /* Event: Call disconnected (Class 3) */ | |
288 #define SAT_TP5_LOC_STATUS (0x10) /* Event: Location status (Class 3) */ | |
289 #define SAT_TP5_USER_ACT (0x20) /* Event: User activity (Class 3) */ | |
290 #define SAT_TP5_SCR_AVAIL (0x40) /* Event: Idle screen available (Class 3) */ | |
291 #define SAT_TP5_CDR_STATUS (0x80) /* Event: Card reader status (Class a) */ | |
292 #define SAT_TP6_LANG_SEL (0x1) /* Event: Language Selection (Class 3) */ | |
293 #define SAT_TP6_BROWS_TERM (0x2) /* Event: Browser Termination (Class c) */ | |
294 #define SAT_TP6_DATA_AVAIL (0x4) /* Event: Data available (Class e) */ | |
295 #define SAT_TP6_CHANNEL_STAT (0x8) /* Event: Channel status (Class e) */ | |
296 #define SAT_TP7_PW_ON_CD (0x1) /* Proactive SIM: Power on Card (Class a) */ | |
297 #define SAT_TP7_PW_OFF_CD (0x2) /* Proactive SIM: Power off Card (Class a) */ | |
298 #define SAT_TP7_PF_CD_ADPU (0x4) /* Proactive SIM: Perform Card ADPU (Class a) */ | |
299 #define SAT_TP7_GET_CDR_STATUS (0x8) /* Proactive SIM: Get Card Reader Status (Class a) */ | |
300 #define SAT_TP7_GET_CDR_IDENT (0x10) /* Proactive SIM: Get Card Reader Identifier (Class a) */ | |
301 #define SAT_TP8_TMNG_ST (0x1) /* Proactive SIM: Timer Management (start, stop) (Class 3) */ | |
302 #define SAT_TP8_TMNG_VAL (0x2) /* Proactive SIM: Timer Management (get current value) (Class 3) */ | |
303 #define SAT_TP8_PLI_DTT (0x4) /* Proactive SIM: Provide Local Information (date, time, tz) (Class 3) */ | |
304 #define SAT_TP8_BIN_GET_INKEY (0x8) /* Binary choice in Get Inkey (Class 3) */ | |
305 #define SAT_TP8_IDLE_TXT (0x10) /* Proactive SIM: Set up Idle Mode Text (Class 3) */ | |
306 #define SAT_TP8_AT_CMD (0x20) /* Proactive SIM: Run AT command (Class b) */ | |
307 #define SAT_TP8_AI2_SETUP_CALL (0x40) /* 2nd alpha identifier in Set up Call (Class 3) */ | |
308 #define SAT_TP8_CCP2_CC (0x80) /* 2nd capability configuration parameter with Call Control (Class 3) */ | |
309 #define SAT_TP9_SUST_DSPL_TXT (0x1) /* Sustained Display Text (Class 3) */ | |
310 #define SAT_TP9_DTMF_CMD (0x2) /* Send DTMF Command (Class 3) */ | |
311 #define SAT_TP9_BCCH_COD (0x4) /* BCCH coding according to subclause 12.19 (Class 3) */ | |
312 #define SAT_TP9_PLI_LANG (0x8) /* Proactive SIM: Provide Local Information (Language) (Rel. 99) */ | |
313 #define SAT_TP9_PLI_TIMING_ADV (0x10) /* Proactive SIM: Provide Local Information (Timing Adv ance) (Rel. 99) */ | |
314 #define SAT_TP9_LANG_NOTIFY (0x20) /* Proactive SIM: Language Notification (Class 3) */ | |
315 #define SAT_TP9_LAUNCH_BROWSER (0x40) /* Proactive SIM: Launch Browser (Class c) */ | |
316 #define SAT_TP10_SFTKEY_SEL_ITEM (0x1) /* Soft key support for SELECT ITEM */ | |
317 #define SAT_TP10_SFTKEY_SETUP_MENU (0x2) /* Soft key support for SET UP MENU */ | |
318 #define SAT_TP11_MAX_NR_SFTKEY (0xff) /* Maximum number of soft keys available */ | |
319 #define SAT_TP12_OPEN_CHANNEL (0x1) /* Proactive SIM: OPEN CHANNEL (Class e) */ | |
320 #define SAT_TP12_CLOSE_CHANNEL (0x2) /* Proactive SIM: CLOSE CHANNEL (Class e) */ | |
321 #define SAT_TP12_RECEIVE_DATA (0x4) /* Proactive SIM: RECEIVE DATA (Class e) */ | |
322 #define SAT_TP12_SEND_DATA (0x8) /* Proactive SIM: SEND DATA (Class e) */ | |
323 #define SAT_TP12_GET_CHANNEL_STAT (0x10) /* Proactive SIM: GET CHANNEL STATUS (Class e) */ | |
324 #define SAT_TP13_CSD_SUPP_BY_ME (0x1) /* CSD supported by ME (Class e) */ | |
325 #define SAT_TP13_GPRS_SUPP_BY_ME (0x2) /* GPRS supported by ME (Class e) */ | |
326 #define SAT_TP13_NR_OF_CHAN_SUPP (0xe0) /* Number of channels supported by ME (Class e) */ | |
327 #define SAT_TP14_NR_OF_CHAR_DSPL_DWN (0x1f) /* Number of characters supported down the ME display */ | |
328 #define SAT_TP14_SCRN_SIZE_PARAM (0x80) /* Screen sizing parameters supported by ME */ | |
329 #define SAT_TP15_NR_OF_CHAR_DSPL_ACRS (0x7f) /* Number of characters supported across the ME display */ | |
330 #define SAT_TP15_VAR_SIZE_FONT (0x80) /* Variable size fonts supported */ | |
331 #define SAT_TP16_DSPL_RESIZE (0x1) /* Display can be resized */ | |
332 #define SAT_TP16_TEXT_WRAP (0x2) /* Text wrapping supported */ | |
333 #define SAT_TP16_TEXT_SCROLL (0x4) /* Text scrolling supported */ | |
334 #define SAT_TP16_WIDTH_RDCT_MENU (0xe0) /* Width reduction when in Menu */ | |
335 #define SAT_TP17_BEARER_IND_SUPP_TCP (0x1) /* Bearer independent protocol supported TCP (Class e) */ | |
336 #define SAT_TP17_BEARER_IND_SUPP_UDP (0x2) /* Bearer independent protocol supported UPD (Class e) */ | |
337 #define SAT_TP19_PROT_VERS (0xf) /* Protocol version coded as TIA/EIA 136-123 */ | |
338 | |
339 /* | |
340 * Value constants for VAL_proc | |
341 */ | |
342 #define SIM_INITIALISATION (0x0) /* initialisation */ | |
343 #define SIM_FDN_ENABLE (0x1) /* FDN enabling */ | |
344 #define SIM_FDN_DISABLE (0x2) /* FDN disabling */ | |
345 #define SIM_SELECT (0x3) /* SIM selection */ | |
346 | |
347 /* | |
348 * Value constants for VAL_func | |
349 */ | |
350 #define SIM_NO_OPERATION (0x0) /* card is invalid */ | |
351 #define SIM_ADN_ENABLED (0x1) /* normal GSM operation, ADN enabled */ | |
352 #define SIM_FDN_ENABLED (0x2) /* restricted GSM operation, FDN enabled */ | |
353 #define SIM_ADN_BDN_ENABLED (0x5) /* normal GSM operation, ADN and BDN enabled */ | |
354 #define SIM_FDN_BDN_ENABLED (0x6) /* restricted GSM operation, FDN and BDN enabled */ | |
355 | |
356 /* | |
357 * Value constants for VAL_download_sms | |
358 */ | |
359 #define DOWNLOAD_SMS_NO (0x0) /* No support of download SMS */ | |
360 #define DOWNLOAD_SMS_YES (0x1) /* Support of download SMS */ | |
361 | |
362 /* | |
363 * Value constants for VAL_access_acm | |
364 */ | |
365 #define ACCESS_ALWAYS (0x0) /* No PIN is needed */ | |
366 #define ACCESS_PIN_1 (0x1) /* PIN 1 is needed */ | |
367 #define ACCESS_PIN_2 (0x2) /* PIN 2 is needed */ | |
368 | |
369 /* | |
370 * Value constants for VAL_mmi_pro_file | |
371 */ | |
372 #define SIM_MMI_ADN (0x80) /* MMI ADN support, if set */ | |
373 #define SIM_MMI_FDN (0x40) /* MMI FDN support, if set */ | |
374 #define SIM_MMI_BDN (0x20) /* MMI BDN support, if set */ | |
375 | |
376 /* | |
377 * Value constants for VAL_synccs | |
378 */ | |
379 #define SYNC_START_CALL (0x1) /* Start present checks if needed during calls */ | |
380 #define SYNC_STOP_CALL (0x2) /* Stop present checks if running */ | |
381 #define SYNC_DEACTIVATE (0x3) /* Deactivate SIM card */ | |
382 | |
383 /* | |
384 * Value constants for VAL_sim_command | |
385 */ | |
386 #define SIM_TRANSP_CMD (0x0) /* Transparent SIM Command */ | |
387 #define SIM_READ_BINARY (0x1) /* Read Binary Command */ | |
388 #define SIM_READ_RECORD (0x2) /* Read Record Command */ | |
389 #define SIM_UPDATE_BINARY (0x3) /* Update Binary Command */ | |
390 #define SIM_UPDATE_RECORD (0x4) /* Update Record Command */ | |
391 #define SIM_STATUS (0x5) /* Status Command */ | |
392 #define SIM_GET_RESPONSE (0x6) /* Get Response Command */ | |
393 | |
394 /* | |
395 * Value constants for VAL_sw1 | |
396 */ | |
397 #define SW1_SUCCESS (0x90) /* normal ending of the command: SW2 = '00' */ | |
398 #define SW1_SUCCESS_EXTRA_INF (0x91) /* ditto, with extra data from proactiv SIM for ME: SW2 = lgth */ | |
399 #define SW1_DATA_LGTH_BY_ERR (0x9e) /* SW2 gives the length of respose in case of SIM downl. error */ | |
400 #define SW1_SUCCESS_DATA_AVAIL (0x9f) /* SW2 gives the length of (SIM) response data */ | |
401 #define SW1_SAT_BUSY (0x93) /* no command execution now, further normal commands allowed */ | |
402 #define SW1_MEMORY_MANAGEMENT (0x92) /* two cases possible depending on SW2 */ | |
403 #define SW1_REFRNCG_MANAGEMENT (0x94) /* four cases possible depending on SW2 */ | |
404 #define SW1_SECURTY_MANAGEMENT (0x98) /* six cases possible depending on SW2 */ | |
405 #define SW1_ERR_INCORRECT_P3 (0x67) /* incorrect parameter P3 */ | |
406 #define SW1_ERR_INCOR_P1_OR_P2 (0x6b) /* incorrect parameter P1 or P2 */ | |
407 #define SW1_ERR_UNKNOWN_INSTR (0x6d) /* unknown instruction code given in the command */ | |
408 #define SW1_ERR_INSTR_CLA (0x6e) /* wrong instruction class given in the command */ | |
409 #define SW1_ERR_DIAG_OR_AUTHEN (0x6f) /* technical problem with no diagnostic given */ | |
410 #define SW2_NORMAL (0x0) /* normal ending of the command (SW1 = '00') */ | |
411 #define SW2_256_BYTES_LGTH (0x0) /* SW2 gives the lengths of 256 bytes of information */ | |
412 #define SW2_MEMORY_PROBLEM (0x40) /* memory problem: in connection with SW1 = '92' */ | |
413 #define SW2_NO_EF_SELECTED (0x2) /* no elementary file selected: in connection with SW1 = '94' */ | |
414 #define SW2_OUT_OF_RANGE (0x2) /* invalid adress: in connection with SW1 = '94' */ | |
415 #define SW2_FILE_ID_PATT_NFOUND (0x4) /* file ID or pattern not found: in connection with SW1 = '94' */ | |
416 #define SW2_FILE_INCON_WTH_CMD (0x8) /* file inconsistent with cmd: in connection with SW1 = '94' */ | |
417 #define SW2_NO_CHV_INIT (0x2) /* no CHV initialized: in connection with SW1 = '98' */ | |
418 #define SW2_ACC_FAIL (0x4) /* in connection with SW1 = '98': (1) acces condition not fullfilled; (2) CHV verify unsuccessful, at least one attempt left; (3) UNBLOCK CHV verify unsuccessful, at least one attempt left; (4) authentication failed */ | |
419 #define SW2_CNTR_TO_CHV_STAT (0x8) /* in contradiction with CHV status: in conn. with SW1 = '98' */ | |
420 #define SW2_CNTR_TO_INVALID_STAT (0x10) /* in contradiction with invalidation status: in conn. with SW1 = '98' */ | |
421 #define SW2_ACC_FAIL_NO_ATTEMTP (0x40) /* in connection with SW1 = '98': (1) CHV verify unsuccessful, no attempt left; (2) UNBLOCK CHV verify unsuccessful, no attempt left; (3) CHV blocked; (4) UNBLOCK CHV blocked */ | |
422 #define SW2_NO_INCREASE_PERF (0x50) /* increase cannot be performed, Max value reached: in conn. with SW1 = '98' */ | |
423 | |
424 /* | |
425 * Value constants for VAL_smsr_mem_cap | |
426 */ | |
427 #define SIM_SMSR_DISABLE (0x0) /* EF(SMSR) disabled on SIM */ | |
428 #define SIM_SMSR_ENABLE (0x1) /* EF(SMSR) enabled on SIM */ | |
429 | |
430 /* | |
431 * Value constants for VAL_fu_rsc | |
432 */ | |
433 #define SIM_FU_ERROR (0x0) /* ME is unable to perform the command (SAT result = 20) */ | |
434 #define SIM_FU_SUCCESS (0x1) /* file update is performed successfully (SAT result = 0) */ | |
435 #define SIM_FU_SUCC_ADD (0x2) /* file update is performed with additional files read (SAT result = 3) */ | |
436 | |
437 /* | |
438 * Value constants for VAL_dti_conn | |
439 */ | |
440 #define SIM_DTI_UNKNOWN (0x0) /* Unknown DTI link status */ | |
441 #define SIM_DTI_CONNECT (0x1) /* Connect DTI link to SIM */ | |
442 #define SIM_DTI_DISCONNECT (0x2) /* Disconnect DTI link from SIM */ | |
443 | |
444 /* | |
445 * Value constants for VAL_con_type | |
446 */ | |
447 #define SIM_CON_TYPE_UDP (0x1) /* send and expect UDP datagrams */ | |
448 #define SIM_CON_TYPE_IP (0x2) /* send and expect IP packets */ | |
449 #define SIM_CON_TYPE_SERIAL (0x3) /* send and expect serial data */ | |
450 | |
451 /* | |
452 * Value constants for VAL_local_ip | |
453 */ | |
454 #define SIM_IP_LOCAL_DYNAMIC (0x0) /* SIM requests IP address from UDP */ | |
455 | |
456 /* | |
457 * Value constants for VAL_event_data_avail | |
458 */ | |
459 #define SIM_EVENT_DISABLE (0x0) /* do not use this event */ | |
460 #define SIM_EVENT_ENABLE (0x1) /* use this event */ | |
461 #define SIM_KEEP_ALIVE (0xff) /* reserved */ | |
462 | |
463 /* | |
464 * Value constants for VAL_release_time | |
465 */ | |
466 #define SIM_NO_AUTO_RELEASE (0x0) /* do not use release timer */ | |
467 | |
468 /* | |
469 * Value constants for VAL_cla | |
470 */ | |
471 #define GSM_CLASS (0xa0) /* GSM instruction class */ | |
472 | |
473 /* | |
474 * Value constants for VAL_ins_code | |
475 */ | |
476 #define SIM_INS_SELECT (0xa4) /* Select Instruction */ | |
477 #define SIM_INS_STATUS (0xf2) /* Status Instruction */ | |
478 #define SIM_INS_READ_BINARY (0xb0) /* Read Binary Instruction */ | |
479 #define SIM_INS_UPDATE_BINARY (0xd6) /* Update Binary Instruction */ | |
480 #define SIM_INS_READ_RECORD (0xb2) /* Read Record Instruction */ | |
481 #define SIM_INS_UPDATE_RECORD (0xdc) /* Update Record Instruction */ | |
482 #define SIM_INS_SEEK (0xa2) /* Seek Instruction */ | |
483 #define SIM_INS_INCREASE (0x32) /* Increase Instruction */ | |
484 #define SIM_INS_VERIFY_CHV (0x20) /* Verify Chv Instruction */ | |
485 #define SIM_INS_CHANGE_CHV (0x24) /* Change Chv Instruction */ | |
486 #define SIM_INS_DISABLE_CHV (0x26) /* Disable Chv Instruction */ | |
487 #define SIM_INS_ENABLE_CHV (0x28) /* Ensable Chv Instruction */ | |
488 #define SIM_INS_UNBLOCK_CHV (0x2c) /* Unblock Chv Instruction */ | |
489 #define SIM_INS_INVALIDATE (0x4) /* Invalidate Instruction */ | |
490 #define SIM_INS_REHABILITATE (0x44) /* Rehabilitate Instruction */ | |
491 #define SIM_INS_RUN_GSM_ALGTH (0x88) /* Run GSM Algorithm Instruczion */ | |
492 #define SIM_INS_GET_RESPONSE (0xc0) /* Get Response Instruction */ | |
493 #define SIM_INS_TERMINAL_PROFILE (0x10) /* Terminal Profile Instruction */ | |
494 #define SIM_INS_ENVELOPE (0xc2) /* Envelope Instruction */ | |
495 #define SIM_INS_FETCH (0x12) /* Fetch Instruction */ | |
496 #define SIM_INS_TERMINAL_RESPONSE (0x14) /* Terminal Response Instruction */ | |
497 | |
498 /* | |
499 * Value constants for VAL_bip_conn | |
500 */ | |
501 #define SIM_BIP_UNKNOWN (0x0) /* unknown BIP channel status */ | |
502 #define SIM_BIP_OPEN_CHANNEL (0x1) /* Open bearer independent protocol channel */ | |
503 #define SIM_BIP_CLOSE_CHANNEL (0x2) /* Close bearer independent protocol channel */ | |
504 #define SIM_BIP_CHANNEL_RESUMED (0x4) /* BIP channel is resumed */ | |
505 #define SIM_BIP_CHANNEL_SUSPENDED (0x8) /* BIP channel is suspended */ | |
506 | |
507 /* | |
508 * Value constants for VAL_dti_direction | |
509 */ | |
510 #define SIM_DTI_NORMAL (0x0) /* DTI used normally */ | |
511 #define SIM_DTI_INVERTED (0x1) /* DTI is inverted */ | |
512 | |
513 /* | |
514 * Value constants for VAL_cust_mode | |
515 */ | |
516 #define SIM_CUST_MODE_NORM (0x0) /* Normal Behaviour */ | |
517 #define SIM_CUST_MODE_1 (0x1) /* Customisation Value 1 */ | |
518 | |
519 /* | |
520 * Value constants for VAL_user_accepts | |
521 */ | |
522 #define SIM_USER_REJECTS (0x0) /* User Rejected */ | |
523 #define SIM_USER_ACCEPTS (0x1) /* User Accepted */ | |
524 | |
525 /* | |
526 * Value constants for VAL_sim_num | |
527 */ | |
528 #define SIM_NUM_0 (0x0) /* Auto Select */ | |
529 #define SIM_NUM_1 (0x1) /* Select SIM 1 */ | |
530 #define SIM_NUM_2 (0x2) /* Select SIM 2 */ | |
531 | |
532 /* | |
533 * user defined constants | |
534 */ | |
535 #define MAX_STK_CMD (0x100) | |
536 #define MAX_SIM_CMD (0x100) | |
537 #define MAX_SIM_TRANSP (0x106) | |
538 #define MAX_SIM_ATR (0x21) | |
539 #define MAX_PIN_LEN (0x8) | |
540 #define MAX_FILE_ID (0x40) | |
541 #define MAX_STK_PRF (0x14) | |
542 #define MAX_SRV_TBL (0x10) | |
543 #define MAX_LNG_PREF (0x5) | |
544 #define MAX_ECC (0xf) | |
545 #define MAX_PREF_PLMN (0xf0) | |
546 #define MAX_IMSI (0x9) | |
547 #define MAX_KC (0x8) | |
548 #define MAX_LOCIGSM (0xb) | |
549 #define MAX_LOCIGPRS (0xe) | |
550 #define MAX_RAND (0x10) | |
551 #define MAX_SRES (0x4) | |
552 #define MAX_SIM_PLMN_SIZE (0x3) | |
553 #define MAX_AD (0x4) | |
554 #define MAX_TRMST (0x8) | |
555 #define SIM_CLASS_E_BUFFER_SIZE (0x5dc) | |
556 #define SIM_ORIGINATING_ENTITY (0x0) | |
557 #define MAX_CBMID_REC (0xff) | |
558 | |
559 #include "CDG_LEAVE.h" | |
560 | |
561 | |
562 #endif |