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

📄 m_sms.val

📁 GSM手机设计软件代码
💻 VAL
📖 第 1 页 / 共 2 页
字号:
 */
#define SMS_UDHI_NOT_INCLUDED          (0x0)      /* No user data header included   */
#define SMS_UDHI_INCLUDED              (0x1)      /* User data header included      */
/*
 * Value constants for tp_sri
 */
#define SMS_SRI_NO_RETURN              (0x0)      /* A status report will not be returned to the SME */
#define SMS_SRI_RETURN                 (0x1)      /* A status report will be returned to the SME */
/*
 * Value constants for tp_mms
 */
#define SMS_MMS_MORE_MESSAGES          (0x0)      /* More messages are waiting for the MS in this SC */
#define SMS_MMS_NO_MORE_MESSAGES       (0x1)      /* No more messages are waiting for the MS in this SC */
/*
 * Value constants for tp_pid
 */
#define SMS_PID_DEFAULT                (0x0)      
#define SMS_PID_SM_TYPE_0              (0x40)     /* Short Message Type 0           */
#define SMS_PID_REP_SM_TYPE_1          (0x41)     /* Replace Short Message Type 1   */
#define SMS_PID_REP_SM_TYPE_2          (0x42)     /* Replace Short Message Type 2   */
#define SMS_PID_REP_SM_TYPE_3          (0x43)     /* Replace Short Message Type 3   */
#define SMS_PID_REP_SM_TYPE_4          (0x44)     /* Replace Short Message Type 4   */
#define SMS_PID_REP_SM_TYPE_5          (0x45)     /* Replace Short Message Type 5   */
#define SMS_PID_REP_SM_TYPE_6          (0x46)     /* Replace Short Message Type 6   */
#define SMS_PID_REP_SM_TYPE_7          (0x47)     /* Replace Short Message Type 7   */
#define SMS_PID_RET_CALL_MSG           (0x5f)     /* Return Call Message            */
#define SMS_PID_ME_DOWNLOAD            (0x7d)     /* ME Data Download               */
#define SMS_PID_ME_DEPERSON            (0x7e)     /* ME Depersonalization SM        */
#define SMS_PID_SIM_DOWNLOAD           (0x7f)     /* SIM Data Download              */
/*
 * Value constants for tp_dcs
 */
#define SMS_DCS_GRP_DEF                (0x0)      /* Coding group: uncompressed, no message class */
#define SMS_DCS_GRP_CLASS              (0x10)     /* Coding group: uncompressed, with message class */
#define SMS_DCS_GRP_COMPR              (0x20)     /* Coding group: compressed, no message class */
#define SMS_DCS_GRP_CLASS_COMPR        (0x30)     /* Coding group: compressed, with message class */
#define SMS_DCS_GRP_MW_DISCD           (0xc0)     /* Coding group: message waiting, discard */
#define SMS_DCS_GRP_MW_STORE           (0xd0)     /* Coding group: message waiting, store */
#define SMS_DCS_GRP_MW_STORE_UCS2      (0xe0)     /* Coding group: message waiting, store, UCS2 coded */
#define SMS_DCS_DATA_CLASS             (0xf0)     /* Coding group: data coding, with message class */
/*
 * Value constants for tp_fcs
 */
#define SMS_FCS_TM_IW_NOT_SUP          (0x80)     /* Telematic interworking not supported (MO) */
#define SMS_FCS_SM_0_NOT_SUP           (0x81)     /* Short Message Type 0 not supported (MO, MT) */
#define SMS_FCS_CANT_REP_SM            (0x82)     /* Cannot replace short message (MO, MT) */
#define SMS_FCS_TP_PID_UNSPEC          (0x8f)     /* Unspecified TP-PID error (MO, MT) */
#define SMS_FCS_DCS_NOT_SUP            (0x90)     /* Data coding scheme (alphabet) not supported (MO) */
#define SMS_FCS_CLASS_NOT_SUP          (0x91)     /* Message class not supported (MT) */
#define SMS_FCS_TP_DCS_UNSPEC          (0x9f)     /* Unspecified TP-DCS error (MO, MT) */
#define SMS_FCS_CMD_CANT_ACT           (0xa0)     /* Command cannot be actioned (MO) */
#define SMS_FCS_CMD_NOT_SUP            (0xa1)     /* Command unsupported (MO)       */
#define SMS_FCS_TP_CMD_UNSPEC          (0xaf)     /* Unspecified TP-Command error (MO) */
#define SMS_FCS_TPDU_NOT_SUP           (0xb0)     /* TPDU not supported (MO, MT)    */
#define SMS_FCS_SC_BUSY                (0xc0)     /* SC busy (MO)                   */
#define SMS_FCS_NO_SC_SUBSCRIPT        (0xc1)     /* No SC subscription (MO)        */
#define SMS_FCS_SC_SYS_FAIL            (0xc2)     /* SC system failure (MO)         */
#define SMS_FCS_INV_SME_ADDR           (0xc3)     /* Invalid SME address (MO)       */
#define SMS_FCS_DEST_SME_BARRED        (0xc4)     /* Destination SME barred (MO)    */
#define SMS_FCS_REJ_DUPL_SM            (0xc5)     /* SM rejected-duplicate SM (MO)  */
#define SMS_FCS_TPVPF_NOT_SUP          (0xc6)     /* Validity Period Format not supported (MO) */
#define SMS_FCS_TPVP_NOT_SUP           (0xc7)     /* Validity Period not supported (MO) */
#define SMS_FCS_SIM_MEM_FULL           (0xd0)     /* SIM SMS storage full (MT)      */
#define SMS_FCS_NO_SMS_MEM_IN_MS       (0xd1)     /* No SMS storage capability in SIM (MT) */
#define SMS_FCS_ERROR_IN_MS            (0xd2)     /* Error in MS (MT)               */
#define SMS_FCS_MEM_CAP_EXCEED         (0xd3)     /* Memory Capacity exceeded (MO, MT) */
#define SMS_FCS_SAT_BUSY               (0xd4)     /* SIM Application Toolkit busy (MT) */
#define SMS_FCS_SAT_DNL_ERROR          (0xd5)     /* SIM Data Download error (MT)   */
#define SMS_FCS_UNSPECIFIED            (0xff)     /* Unspecified error cause (MO, MT) */
/*
 * Value constants for tp_udl_p
 */
#define SMS_UD_NOT_INCLUDED            (0x0)      /* No user data included          */
#define SMS_UD_INCLUDED                (0x1)      /* User data included             */
/*
 * Value constants for tp_dcs_p
 */
#define SMS_DCS_NOT_INCLUDED           (0x0)      /* No data coding scheme included */
#define SMS_DCS_INCLUDED               (0x1)      /* Data coding scheme included    */
/*
 * Value constants for tp_pid_p
 */
#define SMS_PID_NOT_INCLUDED           (0x0)      /* No protocol identifier included */
#define SMS_PID_INCLUDED               (0x1)      /* Protocol identifier included   */
/*
 * Value constants for tp_srr
 */
#define SMS_SRR_NOT_REQUESTED          (0x0)      /* A status report is not requested */
#define SMS_SRR_REQUESTED              (0x1)      /* A status report is requested   */
/*
 * Value constants for tp_vpf
 */
#define SMS_VPF_NOT_PRESENT            (0x0)      /* TP-VP field not present        */
#define SMS_VPF_ENHANCED               (0x1)      /* TP-VP field present in enhanced format */
#define SMS_VPF_RELATIVE               (0x2)      /* TP-VP field present and integer represented (relative) */
#define SMS_VPF_ABSOLUTE               (0x3)      /* TP-VP field present and semi-octet represented (absolute) */
/*
 * Value constants for tp_rd
 */
#define SMS_RD_ACCEPT                  (0x0)      /* Accept duplicated SMS submit   */
#define SMS_RD_REJECT                  (0x1)      /* Reject duplicated SMS submit   */
/*
 * Value constants for tp_srq
 */
#define SMS_SRQ_SUBMIT                 (0x0)      /* The SMS status report is the result of a SMS submit */
#define SMS_SRQ_COMMAND                (0x1)      /* The SMS status report is the result of a SMS command or enquiry */
/*
 * Value constants for tp_st
 */
#define SMS_ST_SM_REC_BY_SME           (0x0)      /* Short message received by the SME */
#define SMS_ST_SM_FORW_SC              (0x1)      /* Short message forwarded by the SC, not confirmed */
#define SMS_ST_SM_REP_BY_SC            (0x2)      /* Short message replaced by the SC */
#define SMS_ST_CONGESTION              (0x20)     /* Congestion (T)                 */
#define SMS_ST_SMS_BUSY                (0x21)     /* SME is busy (T)                */
#define SMS_ST_NO_RESPONSE             (0x22)     /* No response from the SME (T)   */
#define SMS_ST_SERV_REJ                (0x23)     /* Service rejected (T)           */
#define SMS_ST_QUAL_NOT_AVAIL          (0x24)     /* Quality of service not available (T) */
#define SMS_ST_ERR_IN_SME              (0x25)     /* Error in SME (T)               */
#define SMS_ST_REM_PROC_ERR            (0x40)     /* Remote procedure error (P)     */
#define SMS_ST_INCOMP_DEST             (0x41)     /* Incompatible destination (P)   */
#define SMS_ST_CON_REJ_BY_SME          (0x42)     /* Connection rejected by SME (P) */
#define SMS_ST_NOT_OBTAINABLE          (0x43)     /* Not obtainable (P)             */
#define SMS_ST_QUAL_NOT_AVAIL_P        (0x44)     /* Quality of service not available (P) */
#define SMS_ST_NO_INTERWORK            (0x45)     /* No interworking available (P)  */
#define SMS_ST_SM_VP_EXP               (0x46)     /* Short message validity period expired (P) */
#define SMS_ST_SM_DEL_BY_SME           (0x47)     /* Short message deleted by originating SME (P) */
#define SMS_ST_SM_DEL_BY_SC            (0x48)     /* Short message deleted by SC administration (P) */
#define SMS_ST_SM_NOT_EXIST            (0x49)     /* Short message not exists (P)   */
#define SMS_ST_CONGESTION2             (0x60)     /* Congestion (P)                 */
#define SMS_ST_SMS_BUSY2               (0x61)     /* SME is busy (P)                */
#define SMS_ST_NO_RESPONSE2            (0x62)     /* No response from the SME (P)   */
#define SMS_ST_SERV_REJ2               (0x63)     /* Service rejected (P)           */
#define SMS_ST_QUAL_NOT_AVAIL2         (0x64)     /* Quality of service not available (P) */
#define SMS_ST_ERR_IN_SME2             (0x65)     /* Error in SME (P)               */
/*
 * Value constants for tp_ct
 */
#define SMS_CT_ENQUIRY                 (0x0)      /* Enquiry to submitted short message */
#define SMS_CT_CANCEL_REP              (0x1)      /* Cancel status report request   */
#define SMS_CT_DELETE                  (0x2)      /* Delete short message           */
#define SMS_CT_ENABLE                  (0x3)      /* Enable status report request   */

/*
 * user defined constants
 */
#define SIM_PDU_BIT_LEN                (0x578)    
#define TPDU_BIT_LEN                   (0x520)    
#define MAX_SMS_ADDR_DIG               (0x14)     
#define MAX_SMS_SGL_CHAR               (0xa0)     
#define MAX_SMS_DATA_LEN               (0xa0)     

#include "CDG_LEAVE.h"


#endif

⌨️ 快捷键说明

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