📄 mfw_ffs.h
字号:
#ifndef MFW_FFS_H_
#define MFW_FFS_H_
#include "ffs.h"
#include "ffs_coat.h"
typedef struct
{ uint8 IMEI[16]; /* in ASCII*/
uint8 IMEI_bcd[8]; /*in BCD*/
/*SPR 1725 removed date time and alarm data*/
/*Call timers*/
uint32 last_call_duration;
uint32 incoming_calls_duration;
uint32 outgoing_calls_duration;
/*MSSET data*/
uint8 output_volume;
uint8 external_audio;
uint8 voice_memo_position;
uint8 PLMN_selection_mode;
uint8 CLIR; //seem to only be used for supplementary services.
uint8 CLIP;
uint8 redial_mode;
uint8 call_info_display;
uint8 contrast;
uint8 brightness;
uint8 backlight_duration;
uint8 recent_ldn_ref;
uint8 recent_lrn_ref;
uint8 recent_upn_ref;
uint8 time_format;
/* Network Log */
uint8 net_log_status; /* status */
uint8 plmn_name[20]; /* plmn name */
uint8 network_name [6]; /* plmn name numeric */
/*Setting status*/
uint8 settings_status;
uint8 voice_mail[22];
/*mailbox number*/
uint8 mbn_AlphId[10];
uint8 mbn_len;
uint8 mbn_numTp;
uint8 mbn_Num[10];
/*ringtones etc for MMisounds*/
uint8 ringer; // index of permanent active tune in soundlist and ringerItem
uint8 vibrator; // vibrator
uint8 volumeSetting; // values (0 = silent, 4= loud, 5 = increasing)
uint8 keypadOn; // on/off values
uint8 AlarmOn;
uint8 OrganiserAlert;
uint8 CreditLow;
uint8 SMSTone;
uint8 SMSBroadcast;
uint8 battLow;
uint8 earpiece;
uint8 language;
uint8 Equalizer;
/*Data for MmiSmsBroadcast*/
//T_SMSCB_ATT cb_attributes[MAX_MIDS]; /* list of attributes of messages stored in fifo */
int16 sn; /* serial number in integer format */
uint16 mid; /* message identification */
uint8 dcs; /* data coding scheme */
uint8 page; /* number of this page */
uint8 pages; /* number of total pages */
uint8 msg_len; /* length of short message */
uint8 status; /* Read status of this message. */
uint8 name[10]; /* Alphanumeric message tag. */
uint8 next_link;
uint8 header[25]; //header information for the menu list
uint8 start_page; //indicate the first page of the multipage; need for the menu list
//GW 05/07/01 - Reduced buffer size by 1.3k to allow link
uint8 cb_buffer[10*93+1]; /* fifo buffer for received cell broadcast messages */
uint8 used_pointer; //start point of the free space link list
uint8 free_pointer; //start point of the data link list
//Predictive text Flags
uint8 PredTextAvailable;
uint8 PredTextSelected;
//API - 01/10/02
//Concatenate Flags
uint8 ConcatenateStatus;
//API - 06/12/02
//Idle Screen Background image
uint8 IdleScreenBgd;
uint8 MainMenuBgd;
uint8 ProviderNetworkShow;
//CPHS ALS info
uint8 als_selLine;
uint8 als_statLine;
uint8 ccbs_status; /* Marcus: CCBS: 13/11/2002 */
/* MC SPR 1392, call deflection flag*/
uint8 call_deflection;
/* SPR#1352 - SH - TTY */
uint8 ttyAlwaysOn;
} FlashData;
extern FlashData FFS_flashData;
//flash access routines
effs_t flash_write(void);
int flash_read(void);
/* Marcus: Issue 1719: 11/02/2003:
* Changed return type to int: zero (EFFS_OK) if successful,
* presumably -ve for errors, as in FFS_ERRORS (else read less than asked
* for, but that value is internal to the function)
*/
effs_t flash_update(void);
//Generic flash access routines.
effs_t flash_data_write(const char* dir_name, const char* file_name, void* data_pointer, int data_size);
int flash_data_read(const char* dir_name, const char* file_name, void* data_pointer, int data_size);
/* Marcus: Issue 1719: 11/02/2003:
* Changed return type to int: data_size if successful,
* presumably -ve for errors, as in FFS_ERRORS (else read less than asked for)
*/
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -