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

📄 smsal_structs.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:
 * ---------
 *	smsal_structs.h
 *
 * Project:
 * --------
 *   MAUI
 *
 * Description:
 * ------------
 *   This file is intends for defining data structures used in SMSAL context.
 *
 * 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!
 *
 * 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.
*
********************************************************************************/


#ifndef _SMSAL_STRUCTS_H
#define _SMSAL_STRUCTS_H


/* if some header should be include before this one */
#ifndef _SMSAL_L4C_ENUM_H
#error "smsal_l4c_enum.h should be included before smsal_structs.h"
#endif

#ifndef _L4C2SMSAL_STRUCT_H
#error "l4c2smsal_struct.h should be included before smsal_structs.h"
#endif

#ifndef _SMSAL_PEER_STRUCT_H
#error "smsal_peer_struct.h should be included before smsal_structs.h"
#endif

#ifndef _MNSMS_STRUCT_H
#error "mnsms_struct.h should be included before smsal_structs.h"
#endif


#define SMSAL_MAX_FILE 18

typedef struct _nvram_smsal_common_param_struct smsal_nvm_common_param_struct;

struct _read_file_aux_info_struct;

typedef struct _read_file_aux_info_struct smsal_read_file_aux_info_struct;

typedef kal_uint8 (*READ_FILE_FUNC)(kal_uint8, /* id */
                                   smsal_read_file_aux_info_struct *,
                                   peer_buff_struct  *, 
                                   local_para_struct *);

typedef void (*READ_FILE_FINISH_FUNC)(kal_uint8, /* id */
                                      kal_bool  /* result */);

typedef struct
{  
   kal_bool       is_used; 
   kal_uint8      file_id;
   kal_uint8      read_type;
   READ_FILE_FUNC succ_fn_ptr;   
   READ_FILE_FUNC fail_fn_ptr;   
} file_list_struct;

struct _read_file_aux_info_struct
{
   kal_uint32            file_type_bitmap;  /* 0: sim, 1: nvram
                                             * bit0: 1st read file
                                             * bit1: 2nd read file, so on 
                                             */
                                             
   kal_bool              occur_error;       /* whether occur error during
                                             * reading files */
   kal_uint8             current_read_idx;  /* index of current read file */
   kal_uint16            record_no;         /* current record no */
   kal_uint16            number;            /* store number of records */
   kal_uint16            nvram_rec_amount;  /* nvram multiple recoder reading */
   kal_uint16            nvram_rec_decoded; /* number of record already prcessed */
   kal_bool              send_init_cnf;     /* for SIM refresh during SMSAL initialization */

   kal_uint8             msg_box_seq_num;   /* used during startup */

   file_list_struct      file[SMSAL_MAX_FILE];
   READ_FILE_FINISH_FUNC finish_fn_ptr;     
};

/* Message Waiting Indication Status */
typedef struct
{
   //kal_uint8 waiting_ind;
   kal_uint8 waiting_num[NUM_OF_MSG_WAITING_TYPE];
} smsal_mwis_struct;

typedef struct 
{
   kal_uint8         type_of_info;
   kal_bool          need_store;
   kal_bool          is_msg_wait;
   kal_bool          is_show_num[NUM_OF_MSG_WAITING_TYPE];
   kal_bool          is_clear[NUM_OF_MSG_WAITING_TYPE];
   kal_bool          ind_flag[NUM_OF_MSG_WAITING_TYPE];
   smsal_mwis_struct mwis;    
} smsal_msg_waiting_struct;

#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#endif

typedef struct
{
   /* smsal_mb_entry_state_enum */
   kal_uint8                       state;
                                    /* state of the entry */

   /* smsal_storage_enum */
   kal_uint8                        storage_type;                                    
                                    /* storage type of the entry */

   /* smsal_mti_enum */
   kal_uint8                        mti;
                                    /* message type identifier */

   kal_uint8                        status;        
                                    /* status of the message */

   kal_uint16                       record_no;     
                                    /* indicate record number in storage */

   kal_uint16                       mb_type_ind;     
                                    /* bitmap for specific type SM, ie. PID with replace type,  */
                                    /* FO with reply path.                                      */

} smsal_mb_entry_struct;

#if 0
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
/* under construction !*/
#ifdef __CPHS__
/* under construction !*/
/* under construction !*/
#endif
/* under construction !*/
#endif

typedef struct
{     
   kal_uint16   inbox_sim_num;
   kal_uint16   outbox_sim_num;
   
#ifdef __SMS_ME_STORAGE__   
   kal_uint16   inbox_me_num;
   kal_uint16   outbox_me_num;
#endif

   kal_uint16	sim_msg_num;   	/* maximum number of 
                                    supported messages in SIM */
   kal_uint16   used_sim_msg_num;
   
#ifdef __SMS_ME_STORAGE__
   kal_uint16	me_msg_num;       /* maximum number of 
                                    supported messages in ME */
   kal_uint16  used_me_msg_num;
#endif
   
} smsal_storage_num_struct;


typedef struct
{      
   l4_name_struct       profile_name;
                        /* store alpha-identifier */

   kal_uint8	         para_ind;                              
                        /* Parameter Indicator */

   kal_uint8	         vp;                                    
                        /*	Validity period */

   kal_uint8	         pid;                                   
                        /*	Protocol identifier */

   kal_uint8	         dcs;                                   
                        /*	Data coding scheme */

   sms_addr_struct      sca;  
                        /* Service Centre Address */

   sms_addr_struct      da;  
                        /* Destination Address */

} smsal_profile_element_struct;

/* KEEP this struct even SAT is not supported */
typedef struct 
{
   sms_addr_struct        sc_addr;
   sms_addr_struct        dest_addr;   
} smsal_sat_addr_struct;


typedef struct
{
   kal_int32 dest_port; /* -1: invalid port */

⌨️ 快捷键说明

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