comparison src/aci2/mfw/mfw_ffs.h @ 3:93999a60b835

src/aci2, src/condat2: import of g23m/condat source pieces from TCS211
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 26 Sep 2016 00:29:36 +0000
parents
children
comparison
equal deleted inserted replaced
2:c41a534f33c6 3:93999a60b835
1 /*
2 +--------------------------------------------------------------------+
3 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_ffs.h $|
4 | $Author:: $Revision:: 1 $|
5 | CREATED: $Modtime:: $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 MODULE : mfw_ffs
10
11 PURPOSE : This module contains FFS Interface function declarations.
12
13 HISTORY:
14
15 Nov 14, 2005 REF: OMAPS00044445 xdeepadh
16 Description: Implementation of Test Menu for AAC
17 Solution: The existing MP3 test Application has been enhanced to support the AAC file testing.
18 The interfaces have been made generic to support both MP3 and AAC files.
19
20 Sep 27,2005 REF: SPR 34402 xdeepadh
21 Bug:Mono option is always highlighted even when Stereo is selected
22 Fix:The channel setting will be saved in the FFS, which will be retrieved later
23 and the selected channel will be higlighted.
24
25 Aug 22 2005, xpradipg - LOCOSTO-ENH-31154
26 Description: Application to test camera
27 Solution: Implemented the camera application with following functionalities
28 preview, snapshot and image saving.
29
30 Apr 14, 2005 REF: CRR 29991 xpradipg
31 Description: Optimisation 5: Remove the static allocation and use dynamic
32 allocation/ deallocation for pb_list and black_list
33 Solution: The static definition is removed and replaced with the dynamic
34 allocation
35
36
37 Aug 25, 2004 REF: CRR 20655 xnkulkar
38 Description: Voice Memo functionality not working
39 Solution: Added the prototype for flash_makedir() function.
40
41 */
42
43 #ifndef MFW_FFS_H_
44 #define MFW_FFS_H_
45
46 /* BEGIN ADD: Sumit : Req ID: : 31-Mar-2005*/
47 #ifndef NEPTUNE_BOARD
48 /* END ADD: Sumit : Req ID: : 31-Mar-2005*/
49 #include "ffs/ffs.h" /*SPR 1920*/
50 /* BEGIN ADD: Sumit : Req ID: : 31-Mar-2005*/
51 #else
52 #include "ffs.h"
53 #endif
54 /* END ADD: Sumit : Req ID: : 31-Mar-2005*/
55
56 #ifndef PCM_2_FFS
57 #include "ffs_coat.h"
58 #endif
59
60 #ifdef FF_MMI_RINGTONE
61 #define MAX_RINGER_FILE_SIZE 50
62 #endif
63 typedef struct
64 { uint8 IMEI[16]; /* in ASCII*/
65 uint8 IMEI_bcd[8]; /*in BCD*/
66 /*SPR 1725 removed date time and alarm data*/
67 /*Call timers*/
68 uint32 last_call_duration;
69 uint32 incoming_calls_duration;
70 uint32 outgoing_calls_duration;
71
72 /*MSSET data*/
73
74 uint8 output_volume;
75 uint8 external_audio;
76 uint8 voice_memo_position;
77 uint8 PLMN_selection_mode;
78 uint8 CLIR; //seem to only be used for supplementary services.
79 // Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken)
80 // Storing the CF state in Flash
81 uint8 CFState;
82
83 //Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken)
84 // Comented "uint8 CLIP" as it is not being used anywhere in the code currently.
85 // uint8 CLIP;
86 uint8 redial_mode;
87 uint8 call_info_display;
88 uint8 contrast;
89 uint8 brightness;
90 uint8 backlight_duration;
91 uint8 recent_ldn_ref;
92 uint8 recent_lrn_ref;
93 uint8 recent_upn_ref;
94 uint8 time_format;
95
96 /* Network Log */
97 uint8 net_log_status; /* status */
98 uint8 plmn_name[20]; /* plmn name */
99 uint8 network_name [6]; /* plmn name numeric */
100
101 /*Setting status*/
102
103 uint8 settings_status;
104
105 uint8 voice_mail[22];
106
107 /*mailbox number*/
108 uint8 mbn_AlphId[10];
109 uint8 mbn_len;
110 uint8 mbn_numTp;
111 uint8 mbn_Num[10];
112
113 /*ringtones etc for MMisounds*/
114 uint8 ringer; // index of permanent active tune in soundlist and ringerItem
115 uint8 vibrator; // vibrator
116 uint8 volumeSetting; // values (0 = silent, 4= loud, 5 = increasing)
117 uint8 keypadOn; // on/off values
118 uint8 AlarmOn;
119 uint8 OrganiserAlert;
120 uint8 CreditLow;
121 uint8 SMSTone;
122 uint8 SMSBroadcast;
123 uint8 battLow;
124 uint8 earpiece;
125 uint8 language;
126 uint8 Equalizer;
127
128 /*Data for MmiSmsBroadcast*/
129
130
131 //Predictive text Flags
132 uint8 PredTextAvailable;
133 uint8 PredTextSelected;
134
135 //API - 01/10/02
136 //Concatenate Flags
137 uint8 ConcatenateStatus;
138
139 //API - 06/12/02
140 //Idle Screen Background image
141 uint8 IdleScreenBgd;
142 uint8 MainMenuBgd;
143 uint8 ProviderNetworkShow;
144
145 //CPHS ALS info
146 uint8 als_selLine;
147 uint8 als_statLine;
148
149 uint8 ccbs_status; /* Marcus: CCBS: 13/11/2002 */
150
151 /* MC SPR 1392, call deflection flag*/
152 uint8 call_deflection;
153
154
155 /* SPR#1352 - SH - TTY */
156 uint8 ttyAlwaysOn;
157
158 /*API CQ10203 - Add the Flash define for Validity Period here*/
159 uint8 vp_rel;
160 uint8 image_usr_obj; // xrashmic 7 Dec, 2004 MMI-SPR-26161 and MMI-SPR-23965
161 uint8 audio_usr_obj; // xrashmic 7 Dec, 2004 MMI-SPR-26161 and MMI-SPR-23965
162 // Aug 22 2005, xpradipg - LOCOSTO-ENH-31154
163 #ifdef FF_MMI_TEST_CAMERA
164 uint8 camera_file_counter;
165 #endif
166 //Nov 14, 2005 REF: OMAPS00044445 xdeepadh
167 #if defined(FF_MMI_TEST_MP3) || defined(FF_MMI_TEST_AAC)
168 //Sep 27,2005 REF: SPR 34402 xdeepadh
169 //Variable to store the state of mp3 channel
170 uint8 player_channel_state;
171 #endif
172 #ifdef FF_MMI_RINGTONE
173 char cpRingerFilePath [MAX_RINGER_FILE_SIZE];
174 char cpSMSFilePath[MAX_RINGER_FILE_SIZE];
175 char cpAlarmFilePath[MAX_RINGER_FILE_SIZE];
176 #endif
177 } FlashData;
178
179 extern FlashData FFS_flashData;
180
181 //flash access routines
182 effs_t flash_write(void);
183 int flash_read(void);
184 /* Marcus: Issue 1719: 11/02/2003:
185 * Changed return type to int: zero (EFFS_OK) if successful,
186 * presumably -ve for errors, as in FFS_ERRORS (else read less than asked
187 * for, but that value is internal to the function)
188 */
189 effs_t flash_update(void);
190
191 //Generic flash access routines.
192 effs_t flash_data_write(const char* dir_name, const char* file_name, void* data_pointer, int data_size);
193 int flash_data_read(const char* dir_name, const char* file_name, void* data_pointer, int data_size);
194 /* Marcus: Issue 1719: 11/02/2003:
195 * Changed return type to int: data_size if successful,
196 * presumably -ve for errors, as in FFS_ERRORS (else read less than asked for)
197 */
198
199 /* Aug 25, 2004 REF: CRR 20655 xnkulkar
200 Added the prototype for flash_makedir() function
201 */
202 void flash_makedir(char * dir_name);
203 // Apr 14, 2005 REF: CRR 29991 xpradipg
204 #ifdef FF_MMI_OPTIM
205 int8 flash_MMI_blackList_open( );
206 void flash_MMI_blackList_close(int8 handle);
207 int flash_MMI_blackList_write(U8 *data, SHORT len, SHORT offset);
208 int flash_MMI_blackList_read(int8 file,U8* data, SHORT len, SHORT offset);
209 #ifdef PCM_2_FFS
210 T_FFS_SIZE ffs_ReadRecord(const char *name, void * addr, int size, int index, int recsize);
211 T_FFS_RET ffs_WriteRecord(const char *name, void * addr, int size, int index, int recsize);
212 #endif
213 #endif
214 #endif