⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p_sim.val

📁 GSM手机设计软件代码
💻 VAL
📖 第 1 页 / 共 3 页
字号:
#define SIM_CAUSE_PUK2_BLOCKED         (0x20)     /* PUK2 blocked (SC 9840; USIM 63C0) */
#define SIM_CAUSE_PUK2_REMAIN1         (0x21)     /* Wrong PUK2, 1 attempt left (USIM 63C1) */
#define SIM_CAUSE_PUK2_REMAIN2         (0x22)     /* Wrong PUK2, 2 attempts left (USIM 63C2) */
#define SIM_CAUSE_PUK2_REMAIN3         (0x23)     /* Wrong PUK2, 3 attempts left (USIM 63C3) */
#define SIM_CAUSE_PUK2_REMAIN4         (0x24)     /* Wrong PUK2, 4 attempts left (USIM 63C4) */
#define SIM_CAUSE_PUK2_REMAIN5         (0x25)     /* Wrong PUK2, 5 attempts left (USIM 63C5) */
#define SIM_CAUSE_PUK2_REMAIN6         (0x26)     /* Wrong PUK2, 6 attempts left (USIM 63C6) */
#define SIM_CAUSE_PUK2_REMAIN7         (0x27)     /* Wrong PUK2, 7 attempts left (USIM 63C7) */
#define SIM_CAUSE_PUK2_REMAIN8         (0x28)     /* Wrong PUK2, 8 attempts left (USIM 63C8) */
#define SIM_CAUSE_PUK2_REMAIN9         (0x29)     /* Wrong PUK2, 9 attempts left (USIM 63C9) */
#define SIM_CAUSE_PUK2_EXPECT          (0x2a)     /* PUK2 required (SC 9804, 9808; USIM 6982, 6985) */
#define SIM_CAUSE_PIN2_BLOCKED         (0x2c)     /* PIN2 blocked (SC 9840; USIM 63C0, 6983) */
#define SIM_CAUSE_PIN2_REMAIN1         (0x2d)     /* Wrong PIN2, 1 attempt left (USIM 63C1) */
#define SIM_CAUSE_PIN2_REMAIN2         (0x2e)     /* Wrong PIN2, 2 attempts left (USIM 63C2) */
#define SIM_CAUSE_PIN2_EXPECT          (0x2f)     /* PIN1 required (SC 9804, 9808; USIM 6982, 6985) */
#define SIM_CAUSE_SAT_BUSY             (0x31)     /* SIM Application Toolkit busy (SC 9300) */
#define SIM_CAUSE_DNL_ERROR            (0x32)     /* SAT download error (SC 9EXX; USIM 62XX, 63XX) */
#define SIM_CAUSE_CARD_REMOVED         (0x8000)   /* SIM card removed or exchanged  */
#define SIM_CAUSE_PARAM_WRONG          (0xc000)   /* Wrong parameter in primitive   */
#define SIM_CAUSE_DRV_NOCARD           (0xc001)   /* SIM driver error: no card detected */
#define SIM_CAUSE_DRV_NOINT            (0xc002)   /* SIM driver error: no interrupt */
#define SIM_CAUSE_DRV_NOATR            (0xc003)   /* SIM driver error: no answer to reset */
#define SIM_CAUSE_DRV_READ             (0xc004)   /* SIM driver error: invalid response */
#define SIM_CAUSE_DRV_XMIT             (0xc005)   /* SIM driver error: unsuccessful transmission */
#define SIM_CAUSE_DRV_OVF              (0xc006)   /* SIM driver error: interrupt overflow */
#define SIM_CAUSE_DRV_LEN              (0xc007)   /* SIM driver error: incorrect size of response */
#define SIM_CAUSE_DRV_CARDREJ          (0xc008)   /* SIM driver error: card rejected (invalid properties) */
#define SIM_CAUSE_DRV_WAIT             (0xc009)   /* SIM driver error: timeout      */
#define SIM_CAUSE_DRV_ABNCASE1         (0xc00a)   /* SIM driver error: abnormal case 1 */
#define SIM_CAUSE_DRV_ABNCASE2         (0xc00b)   /* SIM driver error: abnormal case 2 */
#define SIM_CAUSE_DRV_RCVOVFL          (0xc00c)   /* SIM driver error: more than 256 bytes received */
#define SIM_CAUSE_DRV_TEMPFAIL         (0xc00d)   /* SIM driver error: temprary failure, SIM reset required */
/*
 * Value constants for pin_id
 */
#define PHASE_2_PIN_1                  (0x1)      /* phase 2 card, PIN 1            */
#define PHASE_2_PIN_2                  (0x2)      /* phase 2 card, PIN 2            */
#define PHASE_2_PUK_1                  (0x3)      /* phase 2 card, PUK 1            */
#define PHASE_2_PUK_2                  (0x4)      /* phase 2 card, PUK 2            */
/*
 * Value constants for pin_cnt
 */
#define CARD_BLOCKED                   (0x0)      /* SIM card is blocked            */
/*
 * Value constants for func
 */
#define SIM_NO_OPERATION               (0x0)      /* card is invalid                */
#define SIM_ADN_ENABLED                (0x1)      /* normal GSM operation, ADN enabled */
#define SIM_FDN_ENABLED                (0x2)      /* restricted GSM operation, FDN enabled */
#define SIM_ADN_BDN_ENABLED            (0x5)      /* normal GSM operation, ADN and BDN enabled */
#define SIM_FDN_BDN_ENABLED            (0x6)      /* restricted GSM operation, FDN and BDN enabled */
/*
 * Value constants for phase
 */
#define PHASE_2_AS_1_SIM               (0x0)      /* phase 2 card configured as phase 1 card */
#define PHASE_1_SIM                    (0x1)      /* phase 1 card                   */
#define PHASE_2_SIM                    (0x2)      /* phase 2 card                   */
#define PHASE_2PLUS_SIM                (0x3)      /* phase 2+ card, TP download required */
/*
 * Value constants for access_acm
 */
#define ACCESS_ALWAYS                  (0x0)      /* No PIN is needed               */
#define ACCESS_PIN_1                   (0x1)      /* PIN 1 is needed                */
#define ACCESS_PIN_2                   (0x2)      /* PIN 2 is needed                */
/*
 * Value constants for op_mode
 */
#define OP_NORMAL_SIM                  (0x0)      /* normal SIM card                */
#define OP_TEST_SIM                    (0x1)      /* test SIM card                  */
/*
 * Value constants for hplmn
 */
#define HPLMN_DEF                      (0xa)      /* default time period for home PLMN search */
/*
 * Value constants for synccs
 */
#define SYNC_START_CALL                (0x1)      /* Start present checks if needed during calls */
#define SYNC_STOP_CALL                 (0x2)      /* Stop present checks if running */
#define SYNC_DEACTIVATE                (0x3)      /* Deactivate SIM card            */
/*
 * Value constants for proc
 */
#define SIM_INITIALISATION             (0x0)      /* initialisation                 */
#define SIM_FDN_ENABLE                 (0x1)      /* FDN enabling                   */
#define SIM_FDN_DISABLE                (0x2)      /* FDN disabling                  */
/*
 * Value constants for mmi_pro_file
 */
#define SIM_MMI_ADN                    (0x80)     /* MMI ADN support, if set        */
#define SIM_MMI_FDN                    (0x40)     /* MMI FDN support, if set        */
#define SIM_MMI_BDN                    (0x20)     /* MMI BDN support, if set        */
/*
 * Value constants for stk_pro_file
 */
#define SAT_TP1_PRF_DNL                (0x1)      /* Profile download (redundant definition) */
#define SAT_TP1_SMS_DNL                (0x2)      /* SMS-PP data download           */
#define SAT_TP1_CB_DNL                 (0x4)      /* Cell Broadcast data download   */
#define SAT_TP1_MENU_SEL               (0x8)      /* Menu selection                 */
#define SAT_TP1_9E_XX                  (0x10)     /* '9E XX' response code for SIM data download error */
#define SAT_TP1_TIMER_EXP              (0x20)     /* Timer expiration (Class 3)     */
#define SAT_TP1_CC_USSD                (0x40)     /* USSD string data object supported in Call Control */
#define SAT_TP1_CC_ON_REDIAL           (0x80)     /* Call Control by SIM always performed on automatic redial */
#define SAT_TP2_CMD_RES                (0x1)      /* Command result (generic)       */
#define SAT_TP2_CC                     (0x2)      /* Call Control by SIM            */
#define SAT_TP2_CC_CELL_ID             (0x4)      /* Cell Identity included in Call Control by SIM */
#define SAT_TP2_MOSMC                  (0x8)      /* MO SM Control by SIM (Class 3) */
#define SAT_TP2_ALPHA_ID               (0x10)     /* Alpha identifier according to clause 9 */
#define SAT_TP2_UCS2_ENTRY             (0x20)     /* UCS2 entry supported           */
#define SAT_TP2_UCS2_DSPL              (0x40)     /* UCS2 display supported         */
#define SAT_TP2_DSPL_EXT               (0x80)     /* extended display length supported (Class 3) */
#define SAT_TP3_DSPL_TXT               (0x1)      /* Proactive SIM: Display Text    */
#define SAT_TP3_GET_INKEY              (0x2)      /* Proactive SIM: Get Inkey       */
#define SAT_TP3_GET_INPUT              (0x4)      /* Proactive SIM: Get Input       */
#define SAT_TP3_MORE_TIME              (0x8)      /* Proactive SIM: More Time       */
#define SAT_TP3_PLAY_TONE              (0x10)     /* Proactive SIM: Play Tone       */
#define SAT_TP3_POLL_ITV               (0x20)     /* Proactive SIM: Poll Interval   */
#define SAT_TP3_POLL_OFF               (0x40)     /* Proactive SIM: Polling Off     */
#define SAT_TP3_REFRESH                (0x80)     /* Proactive SIM: Refresh         */
#define SAT_TP4_SEL_ITEM               (0x1)      /* Proactive SIM: Select Item     */
#define SAT_TP4_SEND_SMS               (0x2)      /* Proactive SIM: Send SM         */
#define SAT_TP4_SEND_SS                (0x4)      /* Proactive SIM: Send SS         */
#define SAT_TP4_SEND_USSD              (0x8)      /* Proactive SIM: Send USSD (Class 3) */
#define SAT_TP4_SETUP_CALL             (0x10)     /* Proactive SIM: Set up Call     */
#define SAT_TP4_SETUP_MENU             (0x20)     /* Proactive SIM: Set up Menu     */
#define SAT_TP4_PLI_PLMN_IMEI          (0x40)     /* Proactive SIM: Provide Local Informaton (PLMN, Cell ID, IMEI) */
#define SAT_TP4_PLI_NMR                (0x80)     /* Proactive SIM: Provide Local Informaton (NMR) */
#define SAT_TP5_EVENT_LIST             (0x1)      /* Proactive SIM: Set up Event List (Class 3) */
#define SAT_TP5_MT_CALL                (0x2)      /* Event: Moblile Terminated Call (Class 3) */
#define SAT_TP5_CALL_CONN              (0x4)      /* Event: Call connected (Class 3) */
#define SAT_TP5_CALL_DISC              (0x8)      /* Event: Call disconnected (Class 3) */
#define SAT_TP5_LOC_STATUS             (0x10)     /* Event: Location status (Class 3) */
#define SAT_TP5_USER_ACT               (0x20)     /* Event: User activity (Class 3) */
#define SAT_TP5_SCR_AVAIL              (0x40)     /* Event: Idle screen available (Class 3) */
#define SAT_TP5_CDR_STATUS             (0x80)     /* Event: Card reader status (Class a) */
#define SAT_TP6_LANG_SEL               (0x1)      /* Event: Language Selection (Class 3) */
#define SAT_TP6_BROWS_TERM             (0x2)      /* Event: Browser Termination (Class c) */
#define SAT_TP6_DATA_AVAIL             (0x4)      /* Event: Data available (Class e) */
#define SAT_TP6_CHANNEL_STAT           (0x8)      /* Event: Channel status (Class e) */
#define SAT_TP7_PW_ON_CD               (0x1)      /* Proactive SIM: Power on Card (Class a) */
#define SAT_TP7_PW_OFF_CD              (0x2)      /* Proactive SIM: Power off Card (Class a) */
#define SAT_TP7_PF_CD_ADPU             (0x4)      /* Proactive SIM: Perform Card ADPU (Class a) */
#define SAT_TP7_GET_CDR_STATUS         (0x8)      /* Proactive SIM: Get Card Reader Status (Class a) */
#define SAT_TP7_GET_CDR_IDENT          (0x10)     /* Proactive SIM: Get Card Reader Identifier (Class a) */
#define SAT_TP8_TMNG_ST                (0x1)      /* Proactive SIM: Timer Management (start, stop) (Class 3) */
#define SAT_TP8_TMNG_VAL               (0x2)      /* Proactive SIM: Timer Management (get current value) (Class 3) */
#define SAT_TP8_PLI_DTT                (0x4)      /* Proactive SIM: Provide Local Information (date, time, tz) (Class 3) */
#define SAT_TP8_BIN_GET_INKEY          (0x8)      /* Binary choice in Get Inkey (Class 3) */
#define SAT_TP8_IDLE_TXT               (0x10)     /* Proactive SIM: Set up Idle Mode Text (Class 3) */
#define SAT_TP8_AT_CMD                 (0x20)     /* Proactive SIM: Run AT command (Class b) */
#define SAT_TP8_AI2_SETUP_CALL         (0x40)     /* 2nd alpha identifier in Set up Call (Class 3) */
#define SAT_TP8_CCP2_CC                (0x80)     /* 2nd capability configuration parameter with Call Control (Class 3) */
#define SAT_TP9_SUST_DSPL_TXT          (0x1)      /* Sustained Display Text (Class 3) */
#define SAT_TP9_DTMF_CMD               (0x2)      /* Send DTMF Command (Class 3)    */
#define SAT_TP9_BCCH_COD               (0x4)      /* BCCH coding according to subclause 12.19 (Class 3) */
#define SAT_TP9_PLI_LANG               (0x8)      /* Proactive SIM: Provide Local Information (Language) (Rel. 99) */
#define SAT_TP9_PLI_TIMING_ADV         (0x10)     /* Proactive SIM: Provide Local Information (Timing Adv ance) (Rel. 99) */
#define SAT_TP9_LANG_NOTIFY            (0x20)     /* Proactive SIM: Language Notification (Class 3) */
#define SAT_TP9_LAUNCH_BROWSER         (0x40)     /* Proactive SIM: Launch Browser (Class c) */
#define SAT_TP10_SFTKEY_SEL_ITEM       (0x1)      /* Soft key support for SELECT ITEM */
#define SAT_TP10_SFTKEY_SETUP_MENU     (0x2)      /* Soft key support for SET UP MENU */
#define SAT_TP11_MAX_NR_SFTKEY         (0xff)     /* Maximum number of soft keys available */
#define SAT_TP12_OPEN_CHANNEL          (0x1)      /* Proactive SIM: OPEN CHANNEL (Class e) */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -