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

📄 l4c2smsal_struct.h

📁 最新MTK手机软件源码
💻 H
📖 第 1 页 / 共 2 页
字号:
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/

/*****************************************************************************
 *
 * Filename:
 * ---------
 *   l4c2smsal_struct.h
 *
 * Project:
 * --------
 *   MAUI
 *
 * Description:
 * ------------
 *
 * Author:
 * -------
 * -------
 *
 *============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *------------------------------------------------------------------------------
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
 *============================================================================
 ****************************************************************************/

/********************************************************************************
*  Copyright Statement:
*  --------------------
*
*  This product has been developed using a protocol stack
*  developed by Sasken Communication Technologies Limited.
*
********************************************************************************/


/*******************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2002
*
*******************************************************************************
 *  FILENAME : l4c2smsal_struct.h
 *  SYNOPSIS : Functions for encoding/decoding.
 *
 *                      R E V I S I O N    H I S T O R Y
 *
 */
#ifndef _L4C2SMSAL_STRUCT_H
#define _L4C2SMSAL_STRUCT_H

#ifndef _L4C_AUX_STRUCT_H /* for l4c_number_struct */
#error include "l4c_aux_struct.h" before l4c2smsal_struct.h
#endif

#ifdef __MCD__
#ifndef _MCD_L4_COMMON_H /* for l4_addr_bcd_struct */
#error include "mcd_l4_common.h" before l4c2smsal_struct.h
#endif
#else
#ifndef _L4_COMMON_STRUCT_H /* for l4_addr_bcd_struct */
#error include "l4_common_struct.h" before l4c2smsal_struct.h
#endif
#endif /* __MCD__ */

typedef struct 
{
	kal_uint8  fo;
	kal_uint8  pid;
	kal_uint8  dcs;
	kal_uint8  ori_dcs;

	kal_uint8  vp_format;
	kal_uint8  vp;

	kal_uint16 no_msg_data;
	l4_addr_bcd_struct sca;
	l4_addr_bcd_struct da;

} smsal_submit_msg_hdr_struct;
/* to replace smsal_submit_msg_struct */

typedef struct 
{
	kal_uint8 fo;
	kal_uint8 pid;
	kal_uint8 dcs;
	kal_uint8 ori_dcs;

	kal_uint8 pading;
	kal_uint8 scts[7];

	kal_uint16 no_msg_data;
	l4_addr_bcd_struct sca;
	l4_addr_bcd_struct oa;

} smsal_deliver_msg_hdr_struct;
/* to replace smsal_deliver_msg_struct */

typedef struct 
{
	kal_uint8 fo;
	kal_uint8 pid;
	kal_uint8 dcs;
	kal_uint8 ori_dcs;

	kal_uint8 mr;
	kal_uint8 scts[7];

	kal_uint16 no_msg_data;
	l4_addr_bcd_struct ra;
	kal_uint8 dt[7];
	kal_uint8 st;

} smsal_status_report_msg_hdr_struct;
/* to replace smsal_status_report_msg_struct; */

typedef struct 
{
	kal_uint8 fo;
	kal_uint8 ct;
	kal_uint8 mn;
	kal_uint8 pid;
	kal_uint16 no_msg_data;
	l4_addr_bcd_struct da;
} smsal_command_msg_hdr_struct;
/* to replace smsal_command_msg_struct; */

typedef struct 
{
	kal_uint8 profile_no_tag;
	kal_uint8 profile_no;
	kal_uint8 para_ind;
	kal_uint8 pid;
	kal_uint8 dcs;
	kal_uint8 vp;
	kal_uint8 udhi;
	kal_uint8 da_tag;
	l4_addr_bcd_struct da;
	l4_addr_bcd_struct sc_addr;
} smsal_send_msg_req_hdr_struct;
/* to replace smsal_send_msg_req_struct */

typedef union {
   smsal_deliver_msg_hdr_struct       deliver;
   smsal_submit_msg_hdr_struct        submit;
   smsal_status_report_msg_hdr_struct status_rep;
} smsal_header_info_union;

typedef struct {
    kal_uint16 ref; /* concat. message reference*/
    kal_uint8 total_seg; /* total segments*/
    kal_uint8 seg; /* indicate which segment*/
} smsal_concat_struct;

typedef struct {
    kal_uint8  mti; /* smsal_mti_enum */
    kal_uint8  status; /* Status of message*/
    kal_uint8  storage_type;
    kal_uint16 index; /* Index of message*/
} smsal_inbox_struct;

typedef struct {
    kal_uint8  mti; /* smsal_mti_enum */
    kal_uint8  status; /* Status of message*/
    kal_uint8  storage_type;
    kal_uint16 index; /* Index of message*/
} smsal_outbox_struct;

typedef struct {
    kal_uint16 msg_count; /* Message Count*/
    smsal_inbox_struct inbox_list[40];
} smsal_inbox_list_struct;

typedef struct {
    kal_uint16 msg_count; /* Message Count*/
    smsal_outbox_struct outbox_list[40];
} smsal_outbox_list_struct;

typedef struct {
    kal_uint8 mt; /* MT Service Mode*/
    kal_uint8 mo; /* MO Service Mode*/
    kal_uint8 bm; /* Broadcast Message Service Mode*/
} smsal_service_mode_struct;

typedef struct {
    kal_uint8 mode; /* Buffering Mode*/
    kal_uint8 mt; /* MT Message Route Mode*/
    kal_uint8 ds; /* Status Report Route Mode*/
    kal_uint8 bm; /* Broadcast Message Route Mode*/
} smsal_mt_msg_route_struct;

typedef struct {
    kal_uint8 mem1; /* Storage type for Memory1*/
    kal_uint8 mem2; /* Storage type for Memory2*/
    kal_uint8 mem3; /* Storage type for Memory3*/
} smsal_select_mem_struct;

typedef struct {
    kal_uint8 mem1; /* Storage type for Memory1*/
    kal_uint8 mem2; /* Storage type for Memory2*/
    kal_uint8 mem3; /* Storage type for Memory3*/
    kal_uint16 used1;
    kal_uint16 used2;
    kal_uint16 used3;
    kal_uint16 total1;
    kal_uint16 total2;
    kal_uint16 total3;
} smsal_prefer_storage_struct;

typedef struct {
    l4_name_struct name;
    l4_addr_bcd_struct addr;
    kal_uint8 capability_id;
    kal_uint8 extension_id;
} smsal_mailbox_addr_struct;

typedef struct {
    kal_uint8 ref_count;
    kal_uint16 msg_len;
    kal_uint8 src_id; /* Source Code*/
    kal_bool is_sim_change; /* TRUE: if last IMSI changed */
    kal_uint8 init_type;
} l4csmsal_init_req_struct;

typedef struct {
    kal_uint8 ref_count;
    kal_uint16 msg_len;
} l4csmsal_de_init_req_struct;

typedef struct {
    kal_uint8  ref_count;
    kal_uint16 msg_len;

    kal_uint8  src_id; /* Source Code*/
    kal_uint8  req_type; /* Request Type*/
    kal_uint8  status; /* Status*/
    kal_uint8  change_status; /* change status*/
    kal_uint16 index; /* Message Index*/
} l4csmsal_read_req_struct;

typedef struct {
    kal_uint8 ref_count;
    kal_uint16 msg_len;
    kal_uint8 src_id;
    kal_uint8 dest_no; /* Specify set target, profile_no or line_no*/
    kal_uint16 para_ind; /* Specify which parameters shall be set*/
    kal_uint8 fo;
    kal_uint8 support_concat;
    kal_uint8 direct_display;
    kal_uint8 bearer_serivce;
    smsal_select_mem_struct prefer_mem;
    smsal_mailbox_addr_struct mailbox_addr;
    kal_uint8 vp;
    kal_uint8 pid;
    kal_uint8 dcs;
    l4_addr_bcd_struct sca;
    l4_name_struct profile_name;
    kal_uint8 cbch_req;
    kal_bool  is_all_language_on;
} l4csmsal_set_parameter_req_struct;

typedef struct {
    kal_uint8  ref_count;
    kal_uint16 msg_len;
    kal_uint8  src_id;
    kal_uint8  profile_no;        //if para_ind=SMSAL_PARA_SAVE_PROFILE, only this field is available. (For AT only)
    kal_uint16 para_ind;         /* Specify which parameters shall be set*/
    kal_uint8  pid;               //SMSAL_PARA_PID
    kal_uint8  dcs;               //SMSAL_PARA_DCS
    kal_uint8  vp;                //SMSAL_PARA_VP
    l4_addr_bcd_struct sca;       //SMSAL_PARA_SCA
    l4_name_struct profile_name;  //SMSAL_PARA_PROFILE_NAME
} l4csmsal_set_profile_para_req_struct;

typedef struct {
    kal_uint8  ref_count;
    kal_uint16 msg_len;
    kal_uint8  src_id;
    kal_uint8  dest_no;  /* line_no for mailbox_addr */
    kal_uint16 para_ind; /* Specify which parameters shall be set*/
    kal_uint8  fo;                 //SMSAL_COM_PARA_FO
    kal_uint8  bearer_serivce;     //SMSAL_COM_PARA_BEARER
    kal_uint8  status_report;      //SMSAL_COM_STATUS_REP 
    kal_uint8  reply_path;         //SMSAL_COM_REPLY_PATH 
    kal_uint8  cbch_req;           //SMSAL_COM_CBCH_REQ
    kal_uint8  is_all_language_on; //SMSAL_COM_PARA_ALL_CB_LANG
    smsal_select_mem_struct prefer_mem;     //SMSAL_COM_PARA_PREFER_MEM
    smsal_mailbox_addr_struct mailbox_addr; //SMSAL_COM_PARA_MAILBOX_ADDR
} l4csmsal_set_common_para_req_struct;



typedef struct {
    kal_uint8  ref_count;
    kal_uint16 msg_len;

    kal_uint8  src_id;
    kal_uint8  req_type;
    kal_uint8  seq_num;
    kal_uint8  fdn_check; //true: FDN enable
    kal_uint8  mms_mode; 
    kal_uint16 reply_index;
    kal_uint16 message_len; /* Length of Message*/
    union {
       smsal_send_msg_req_hdr_struct      submit;
       smsal_command_msg_hdr_struct       command;
    } msg_header;  
} l4csmsal_send_req_struct;

typedef struct {
    kal_uint8 ref_count;
    kal_uint16 msg_len;
} l4csmsal_send_abort_struct;

typedef struct {
    kal_uint8  ref_count;
    kal_uint16 msg_len;

    kal_uint8  src_id;
    kal_uint8  fdn_check; //true: FDN enable
    kal_uint16 index;
    kal_uint16 reply_index;
    kal_uint8  da_tag; /* Indicate whether to use da as destination address*/
    l4_addr_bcd_struct da; /* Destination Address*/
} l4csmsal_send_from_storage_req_struct;

typedef struct {
    kal_uint8  ref_count;
    kal_uint16 msg_len;

    kal_uint8  src_id;
    kal_uint8  status;
    kal_uint8 scts[7];

⌨️ 快捷键说明

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