comparison cdg3/cdginc-locosto/p_sim.val @ 16:c15047b3d00d

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