📄 p_sim.val
字号:
#define SAT_TP12_CLOSE_CHANNEL (0x2) /* Proactive SIM: CLOSE CHANNEL (Class e) */
#define SAT_TP12_RECEIVE_DATA (0x4) /* Proactive SIM: RECEIVE DATA (Class e) */
#define SAT_TP12_SEND_DATA (0x8) /* Proactive SIM: SEND DATA (Class e) */
#define SAT_TP12_GET_CHANNEL_STAT (0x10) /* Proactive SIM: GET CHANNEL STATUS (Class e) */
#define SAT_TP13_CSD_SUPP_BY_ME (0x1) /* CSD supported by ME (Class e) */
#define SAT_TP13_GPRS_SUPP_BY_ME (0x2) /* GPRS supported by ME (Class e) */
#define SAT_TP13_NR_OF_CHAN_SUPP (0xe0) /* Number of channels supported by ME (Class e) */
#define SAT_TP14_NR_OF_CHAR_DSPL_DWN (0x1f) /* Number of characters supported down the ME display */
#define SAT_TP14_SCRN_SIZE_PARAM (0x80) /* Screen sizing parameters supported by ME */
#define SAT_TP15_NR_OF_CHAR_DSPL_ACRS (0x7f) /* Number of characters supported across the ME display */
#define SAT_TP15_VAR_SIZE_FONT (0x80) /* Variable size fonts supported */
#define SAT_TP16_DSPL_RESIZE (0x1) /* Display can be resized */
#define SAT_TP16_TEXT_WRAP (0x2) /* Text wrapping supported */
#define SAT_TP16_TEXT_SCROLL (0x4) /* Text scrolling supported */
#define SAT_TP16_WIDTH_RDCT_MENU (0xe0) /* Width reduction when in Menu */
#define SAT_TP17_BEARER_IND_SUPP_TCP (0x1) /* Bearer independent protocol supported TCP (Class e) */
#define SAT_TP17_BEARER_IND_SUPP_UDP (0x2) /* Bearer independent protocol supported UPD (Class e) */
#define SAT_TP19_PROT_VERS (0xf) /* Protocol version coded as TIA/EIA 136-123 */
/*
* Value constants for mem_cap_avail
*/
#define SIM_SMS_MEM_FULL (0x0) /* SMS storage on SIM execeeded */
#define SIM_SMS_MEM_AVAIL (0x1) /* SMS storage on SIM available */
#define SIM_SMS_NO_MEM (0xff) /* SMS storage on SIM not present */
/*
* Value constants for download_sms
*/
#define DOWNLOAD_SMS_NO (0x0) /* No support of download SMS */
#define DOWNLOAD_SMS_YES (0x1) /* Support of download SMS */
/*
* Value constants for smsr_mem_cap
*/
#define SIM_SMSR_DISABLE (0x0) /* EF(SMSR) disabled on SIM */
#define SIM_SMSR_ENABLE (0x1) /* EF(SMSR) enabled on SIM */
/*
* Value constants for sim_command
*/
#define SIM_READ_BINARY (0x0) /* Read Binary Command */
#define SIM_READ_RECORD (0x1) /* Read Record Command */
#define SIM_GET_RESPONSE (0x2) /* Get Response Command */
#define SIM_UPDATE_BINARY (0x3) /* Update Binary Command */
#define SIM_UPDATE_RECORD (0x4) /* Update Record Command */
#define SIM_STATUS (0x5) /* Status Command */
/*
* Value constants for sw1
*/
#define SW1_SUCCESS (0x90) /* normal ending of the command: SW2 = '00' */
#define SW1_SUCCESS_EXTRA_INF (0x91) /* ditto, with extra data from proactiv SIM for ME: SW2 = lgth */
#define SW1_DATA_LGTH_BY_ERR (0x9e) /* SW2 gives the length of respose in case of SIM downl. error */
#define SW1_SUCCESS_DATA_AVAIL (0x9f) /* SW2 gives the length of (SIM) response data */
#define SW1_SAT_BUSY (0x93) /* no command execution now, further normal commands allowed */
#define SW1_MEMORY_MANAGEMENT (0x92) /* two cases possible depending on SW2 */
#define SW1_REFRNCG_MANAGEMENT (0x94) /* four cases possible depending on SW2 */
#define SW1_SECURTY_MANAGEMENT (0x98) /* six cases possible depending on SW2 */
#define SW1_ERR_INCORRECT_P3 (0x67) /* incorrect parameter P3 */
#define SW1_ERR_INCOR_P1_OR_P2 (0x6b) /* incorrect parameter P1 or P2 */
#define SW1_ERR_UNKNOWN_INSTR (0x6d) /* unknown instruction code given in the command */
#define SW1_ERR_INSTR_CLA (0x6e) /* wrong instruction class given in the command */
#define SW1_ERR_DIAG_OR_AUTHEN (0x6f) /* technical problem with no diagnostic given */
#define SW2_NORMAL (0x0) /* normal ending of the command (SW1 = '00') */
#define SW2_256_BYTES_LGTH (0x0) /* SW2 gives the lengths of 256 bytes of information */
#define SW2_MEMORY_PROBLEM (0x40) /* memory problem: in connection with SW1 = '92' */
#define SW2_NO_EF_SELECTED (0x2) /* no elementary file selected: in connection with SW1 = '94' */
#define SW2_OUT_OF_RANGE (0x2) /* invalid adress: in connection with SW1 = '94' */
#define SW2_FILE_ID_PATT_NFOUND (0x4) /* file ID or pattern not found: in connection with SW1 = '94' */
#define SW2_FILE_INCON_WTH_CMD (0x8) /* file inconsistent with cmd: in connection with SW1 = '94' */
#define SW2_NO_CHV_INIT (0x2) /* no CHV initialized: in connection with SW1 = '98' */
#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 */
#define SW2_CNTR_TO_CHV_STAT (0x8) /* in contradiction with CHV status: in conn. with SW1 = '98' */
#define SW2_CNTR_TO_INVALID_STAT (0x10) /* in contradiction with invalidation status: in conn. with SW1 = '98' */
#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 */
#define SW2_NO_INCREASE_PERF (0x50) /* increase cannot be performed, Max value reached: in conn. with SW1 = '98' */
/*
* Value constants for fu_rsc
*/
#define SIM_FU_ERROR (0x0) /* ME is unable to perform the command (SAT result = 20) */
#define SIM_FU_SUCCESS (0x1) /* file update is performed successfully (SAT result = 0) */
#define SIM_FU_SUCC_ADD (0x2) /* file update is performed with additional files read (SAT result = 3) */
/*
* Value constants for dti_conn
*/
#define SIM_DTI_CONNECT (0x1) /* Connect DTI link to SIM */
#define SIM_DTI_DISCONNECT (0x2) /* Disconnect DTI link from SIM */
#define SIM_BIP_OPEN_CHANNEL (0x4) /* Open bearer independent protocol channel */
#define SIM_BIP_CLOSE_CHANNEL (0x8) /* Close bearer independent protocol channel */
#define SIM_BIP_CHANNEL_RESUMED (0x10) /* BIP channel is resumed */
#define SIM_BIP_CHANNEL_SUSPENDED (0x20) /* BIP channel is suspended */
/*
* Value constants for con_type
*/
#define SIM_CON_TYPE_UDP (0x1) /* send and expect UDP datagrams */
#define SIM_CON_TYPE_IP (0x2) /* send and expect IP packets */
#define SIM_CON_TYPE_SERIAL (0x3) /* send and expect serial data */
/*
* Value constants for local_ip
*/
#define SIM_IP_LOCAL_DYNAMIC (0x0) /* SIM requests IP address from UDP */
/*
* Value constants for release_time
*/
#define SIM_NO_AUTO_RELEASE (0x0) /* do not use release timer */
/*
* Value constants for event_data_avail
*/
#define SIM_EVENT_DISABLE (0x0) /* do not use this event */
#define SIM_EVENT_ENABLE (0x1) /* use this event */
/*
* Value constants for cla
*/
#define GSM_CLASS (0xa0) /* GSM instruction class */
/*
* Value constants for ins_code
*/
#define SIM_INS_SELECT (0xa4) /* Select Instruction */
#define SIM_INS_STATUS (0xf2) /* Status Instruction */
#define SIM_INS_READ_BINARY (0xb0) /* Read Binary Instruction */
#define SIM_INS_UPDATE_BINARY (0xd6) /* Update Binary Instruction */
#define SIM_INS_READ_RECORD (0xb2) /* Read Record Instruction */
#define SIM_INS_UPDATE_RECORD (0xdc) /* Update Record Instruction */
#define SIM_INS_SEEK (0xa2) /* Seek Instruction */
#define SIM_INS_INCREASE (0x32) /* Increase Instruction */
#define SIM_INS_VERIFY_CHV (0x20) /* Verify Chv Instruction */
#define SIM_INS_CHANGE_CHV (0x24) /* Change Chv Instruction */
#define SIM_INS_DISABLE_CHV (0x26) /* Disable Chv Instruction */
#define SIM_INS_ENABLE_CHV (0x28) /* Ensable Chv Instruction */
#define SIM_INS_UNBLOCK_CHV (0x2c) /* Unblock Chv Instruction */
#define SIM_INS_INVALIDATE (0x4) /* Invalidate Instruction */
#define SIM_INS_REHABILITATE (0x44) /* Rehabilitate Instruction */
#define SIM_INS_RUN_GSM_ALGTH (0x88) /* Run GSM Algorithm Instruczion */
#define SIM_INS_GET_RESPONSE (0xc0) /* Get Response Instruction */
#define SIM_INS_TERMINAL_PROFILE (0x10) /* Terminal Profile Instruction */
#define SIM_INS_ENVELOPE (0xc2) /* Envelope Instruction */
#define SIM_INS_FETCH (0x12) /* Fetch Instruction */
#define SIM_INS_TERMINAL_RESPONSE (0x14) /* Terminal Response Instruction */
/*
* user defined constants
*/
#define MAX_STK_CMD (0x100)
#define MAX_SIM_CMD (0x100)
#define MAX_PIN_LEN (0x8)
#define MAX_FILE_ID (0x40)
#define MAX_STK_PRF (0x14)
#define MAX_SRV_TBL (0x10)
#define MAX_LNG_PREF (0x5)
#define MAX_ECC (0xf)
#define MAX_PREF_PLMN (0x60)
#define MAX_IMSI (0x9)
#define MAX_KC (0x8)
#define MAX_LOCIGSM (0xb)
#define MAX_LOCIGPRS (0xe)
#define MAX_RAND (0x10)
#define MAX_SRES (0x4)
#define SIM_CLASS_E_BUFFER_SIZE (0x5dc)
#define SIM_ORIGINATING_ENTITY (0x0)
#include "CDG_LEAVE.h"
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -