comparison src/ui3/mfw/mfw_ffs.h @ 420:e8ddbb0837ed

src/ui3: initial import of TCS3/LoCosto BMI & MFW code
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 21 Jan 2018 03:09:00 +0000
parents
children
comparison
equal deleted inserted replaced
419:59143cd42ec7 420:e8ddbb0837ed
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
16 Nov 22, 2007 DR: OMAPS00152315 x0080701(Bharat)
17 Description: MP3 - AAC cannot be disabled in Locosto
18 Solution: MP3 AAC Flags Usage have been corrected
19
20 April 03 2007 ER:OMAPS00116772 x0061088(Prachi)
21 Description:Support of 1.3 Mpixel camera on Locosto Plus
22 Solution: added new member cam_auto_save in structure FlashData
23
24 Mar 28, 2007 DR: OMAPS00122762 x0039928
25 Description: MM: Deleting a PCM Voice Memo message in one particular memory,
26 delete them in all memories
27 Solution: voice memo position and pcm voice memo position is provided for all the devices.
28
29 Oct 30 2006, OMAPS00098881 x0039928(sumanth)
30 Removal of power variant
31
32 Oct 8 2006 OMAPS00097714 x0039928(sumanth)
33 TTY HCO/VCO options in MMI
34
35
36 xashmic 27 Sep 2006, OMAPS00096389
37 ENH - a) Providing static menu for re-selection of enum options for enumeration
38 b) Popup menu displayed on connect event, can be enabled or disabled via menu option
39
40 xashmic 9 Sep 2006, OMAPS00092732
41 USBMS ER
42
43 June 27, 2006 REF:DVT OMAPS00083709 x0043642
44 Description: RT: New feilds should be added at the end of the FlashData structure.
45 Solution: Moved line1 and line2 attributes to the end of the structure.
46
47
48 June 7, 2006 REF:ER OMAPS00078882 x0043642
49 Description: RT: MTC causes TTY primitive even when TTY is not requested causing GTT crash
50 Solution: Moved tty_audio_mode attribute to the end of the structure.
51
52 Mar 15, 2006 ER: OMAPS00067709 x0pleela
53 Description: Voice Buffering implementation on C+ for PTT via PCM API
54 Solution: Added new field "pcm_voice_memo_position" into the structure "FlashData"
55 to hold the recording duration for PCM voice memo
56
57 May 30, 2006 DR: OMAPS00070657 x0pleela
58 Description: CPHS feature on Locosto-Lite
59 Solution: For ALS feature,
60 a) Added a new macro MAX_LINE_NAME_SIZE
61 b) Added two new elements into "FlashData" structure to store the
62 alphanumeric name for line 1 and line2
63
64 Apr 06, 2006 ERT: OMAPS00070660 x0039928(sumanth)
65 Description: Need to reduce flash foot-print for Locosto Lite
66 Solution: Voice Memo feature is put under the flag #ifndef FF_NO_VOICE_MEMO to compile
67 out voice memo feature if the above flag is enabled.
68
69 Nov 14, 2005 REF: OMAPS00044445 xdeepadh
70 Description: Implementation of Test Menu for AAC
71 Solution: The existing MP3 test Application has been enhanced to support the AAC file testing.
72 The interfaces have been made generic to support both MP3 and AAC files.
73
74 Sep 27,2005 REF: SPR 34402 xdeepadh
75 Bug:Mono option is always highlighted even when Stereo is selected
76 Fix:The channel setting will be saved in the FFS, which will be retrieved later
77 and the selected channel will be higlighted.
78
79 Aug 22 2005, xpradipg - LOCOSTO-ENH-31154
80 Description: Application to test camera
81 Solution: Implemented the camera application with following functionalities
82 preview, snapshot and image saving.
83
84 Apr 14, 2005 REF: CRR 29991 xpradipg
85 Description: Optimisation 5: Remove the static allocation and use dynamic
86 allocation/ deallocation for pb_list and black_list
87 Solution: The static definition is removed and replaced with the dynamic
88 allocation
89
90
91 Aug 25, 2004 REF: CRR 20655 xnkulkar
92 Description: Voice Memo functionality not working
93 Solution: Added the prototype for flash_makedir() function.
94
95
96
97 Mar 28, 2006 REF:ER OMAPS00071798 x0043642
98 Added new options in BMI to accept the value for tty audio mode,
99 and the accepted value is passed as parameter in function call sAT_PercentCTTY
100 */
101
102 #ifndef MFW_FFS_H_
103 #define MFW_FFS_H_
104
105 /* BEGIN ADD: Sumit : Req ID: : 31-Mar-2005*/
106 #ifndef NEPTUNE_BOARD
107 /* END ADD: Sumit : Req ID: : 31-Mar-2005*/
108 #include "ffs/ffs.h" /*SPR 1920*/
109 /* BEGIN ADD: Sumit : Req ID: : 31-Mar-2005*/
110 #else
111 #include "ffs.h"
112 #endif
113 /* END ADD: Sumit : Req ID: : 31-Mar-2005*/
114
115 #ifndef PCM_2_FFS
116 #include "ffs_coat.h"
117 #endif
118
119 #ifdef FF_MMI_RINGTONE
120 #define MAX_RINGER_FILE_SIZE 50
121 #endif
122
123 //x0pleela 25 May, 2006 DR: OMAPS00070657
124 #ifdef FF_CPHS
125 #define MAX_LINE_NAME_SIZE 10
126 #endif
127
128
129 typedef enum{
130 SNAP_STG_FFS=0,
131 SNAP_STG_NORMS,
132 SNAP_STG_NAND,
133 SNAP_STG_MMC
134 }SNAP_STG;
135
136
137 typedef enum{
138 CAM_RESOLUTION_VGA = 0,
139 CAM_RESOLUTION_QCIF,
140 CAM_RESOLUTION_SXGA
141 }CAM_RESOLUTION;
142
143
144 typedef struct
145 { uint8 IMEI[16]; /* in ASCII*/
146 uint8 IMEI_bcd[8]; /*in BCD*/
147 /*SPR 1725 removed date time and alarm data*/
148 /*Call timers*/
149 uint32 last_call_duration;
150 uint32 incoming_calls_duration;
151 uint32 outgoing_calls_duration;
152
153 /*MSSET data*/
154 uint8 output_volume;
155 uint8 external_audio;
156 #ifndef FF_NO_VOICE_MEMO
157 #ifdef FF_MMI_FILEMANAGER
158 uint8 voice_memo_position[4]; /*Mar 28, 2007 DR: OMAPS00122762 x0039928 */
159 #else
160 uint8 voice_memo_position;
161 #endif
162 #endif
163 //x0pleela 24 Feb, 2006 ER OMAPS00067709
164 //To hold the recording duration for PCM voice memo
165 #ifdef FF_PCM_VM_VB
166 #ifdef FF_MMI_FILEMANAGER
167 uint8 pcm_voice_memo_position[4]; /* Mar 28, 2007 DR: OMAPS00122762 x0039928 */
168 #else
169 uint8 pcm_voice_memo_position;
170 #endif
171 #endif
172 uint8 PLMN_selection_mode;
173 uint8 CLIR; //seem to only be used for supplementary services.
174 // Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken)
175 // Storing the CF state in Flash
176 uint8 CFState;
177
178 //Jun 23, 2004 REF: CRR MMI-SPR-13599 Rashmi C N(Sasken)
179 // Comented "uint8 CLIP" as it is not being used anywhere in the code currently.
180 // uint8 CLIP;
181 uint8 redial_mode;
182 uint8 call_info_display;
183 uint8 contrast;
184 uint8 brightness;
185 uint8 backlight_duration;
186 uint8 recent_ldn_ref;
187 uint8 recent_lrn_ref;
188 uint8 recent_upn_ref;
189 uint8 time_format;
190
191 /* Network Log */
192 uint8 net_log_status; /* status */
193 uint8 plmn_name[20]; /* plmn name */
194 uint8 network_name [7]; /* plmn name numeric *//* x0039928 - Lint warning removal */
195
196 /*Setting status*/
197
198 uint8 settings_status;
199
200 uint8 voice_mail[22];
201
202 /*mailbox number*/
203 uint8 mbn_AlphId[10];
204 uint8 mbn_len;
205 uint8 mbn_numTp;
206 uint8 mbn_Num[10];
207
208 /*ringtones etc for MMisounds*/
209 uint8 ringer; // index of permanent active tune in soundlist and ringerItem
210 uint8 vibrator; // vibrator
211 uint8 volumeSetting; // values (0 = silent, 4= loud, 5 = increasing)
212 uint8 keypadOn; // on/off values
213 uint8 AlarmOn;
214 uint8 OrganiserAlert;
215 uint8 CreditLow;
216 uint8 SMSTone;
217 uint8 SMSBroadcast;
218 uint8 battLow;
219 uint8 earpiece;
220 uint8 language;
221 uint8 Equalizer;
222
223 /*Data for MmiSmsBroadcast*/
224
225
226 //Predictive text Flags
227 uint8 PredTextAvailable;
228 uint8 PredTextSelected;
229
230 //API - 01/10/02
231 //Concatenate Flags
232 uint8 ConcatenateStatus;
233
234 //API - 06/12/02
235 //Idle Screen Background image
236 uint8 IdleScreenBgd;
237 uint8 MainMenuBgd;
238 uint8 ProviderNetworkShow;
239
240 //CPHS ALS info
241 uint8 als_selLine;
242 uint8 als_statLine;
243 uint8 ccbs_status; /* Marcus: CCBS: 13/11/2002 */
244
245 /* MC SPR 1392, call deflection flag*/
246 uint8 call_deflection;
247
248
249 /* SPR#1352 - SH - TTY */
250 uint8 ttyAlwaysOn;
251 /*x0039928 OMAPS00097714 HCO/VCO option - added to store the type of TTY profile (normal/HCO/VCO)*/
252 #ifdef FF_TTY_HCO_VCO
253 uint8 ttyPfType;
254 #endif
255
256 /*API CQ10203 - Add the Flash define for Validity Period here*/
257 uint8 vp_rel;
258 uint8 image_usr_obj; // xrashmic 7 Dec, 2004 MMI-SPR-26161 and MMI-SPR-23965
259 uint8 audio_usr_obj; // xrashmic 7 Dec, 2004 MMI-SPR-26161 and MMI-SPR-23965
260 // Aug 22 2005, xpradipg - LOCOSTO-ENH-31154
261 #if defined(FF_MMI_TEST_CAMERA) ||defined(FF_MMI_CAMERA_APP)
262 uint8 camera_file_counter;
263 #endif
264 //Nov 14, 2005 REF: OMAPS00044445 xdeepadh
265
266 /* Nov 22, 2007 DR: OMAPS00152315 x0080701(Bharat) -- Commented #if defined */
267 // #if defined(FF_MMI_TEST_MP3) || defined(FF_MMI_TEST_AAC)
268 //Sep 27,2005 REF: SPR 34402 xdeepadh
269 //Variable to store the state of mp3 channel
270 uint8 player_channel_state;
271 // #endif
272 /* Nov 22, 2007 DR: OMAPS00152315 x0080701(Bharat) -- Commented #endif */
273
274 #ifdef FF_MMI_RINGTONE
275 char cpRingerFilePath [MAX_RINGER_FILE_SIZE];
276 char cpSMSFilePath[MAX_RINGER_FILE_SIZE];
277 char cpAlarmFilePath[MAX_RINGER_FILE_SIZE];
278 #endif
279
280
281 /* June 27, 2006 REF:DVT OMAPS00083709 x0043642 */
282 #ifdef FF_CPHS
283 char line1[MAX_LINE_NAME_SIZE+1]; // name of line1
284 char line2[MAX_LINE_NAME_SIZE+1]; // name of line2
285 #endif
286
287
288 /* June 7, 2006 REF:ER OMAPS00078882 */
289 /*Removed tty_audio_mode from top and added here to solve OMAPS00078882*/
290 #ifdef NEPTUNE_BOARD
291 uint8 tty_audio_mode;
292 #endif
293 //xashmic 9 Sep 2006, OMAPS00092732
294 //xashmic 27 Sep 2006, OMAPS00096389
295 #ifdef FF_MMI_USBMS
296 //0th bit - PS shutdown enable/disable
297 //1st bit - Popup menu enable/disable
298 uint8 usb_ms_flags;
299 #endif
300 /* To store the power management duration */
301 #ifdef NEPTUNE_BOARD
302 #ifdef MMI_POWER_MANAGEMENT_TEST
303 uint8 pm_duration;
304 #endif
305 #endif
306 /*OMAPS00098881 (removal of power variant) x0039928(sumanth)
307 This variable is used to store the status of LCD refresh
308 1 - refresh needed
309 0 - refresh not needed*/
310 #ifdef FF_POWER_MANAGEMENT
311 BOOL refresh;
312 #endif
313 /*OMAPS00098351 (NITZ) x0066814(Geetha)*/
314 #ifdef FF_TIMEZONE
315 uint8 nitz_option;
316 #endif
317 UBYTE snap_storage;
318 UBYTE voicememo_storage;
319 UBYTE PCM_voicememo_storage;
320 UBYTE voicebuffer_storage;
321
322 //April 03 2007 ER:OMAPS00116772 x0061088(Prachi)
323 #ifdef FF_MMI_CAMERA_APP
324 UBYTE cam_auto_save;
325 //added by prachi
326 #if CAM_SENSOR == 1
327 UBYTE cam_resolution;
328 UBYTE cam_changed_resolution;
329 #endif
330 #endif
331 } FlashData;
332
333 extern FlashData FFS_flashData;
334
335 //flash access routines
336 effs_t flash_write(void);
337 int flash_read(void);
338 /* Marcus: Issue 1719: 11/02/2003:
339 * Changed return type to int: zero (EFFS_OK) if successful,
340 * presumably -ve for errors, as in FFS_ERRORS (else read less than asked
341 * for, but that value is internal to the function)
342 */
343 effs_t flash_update(void);
344
345 //Generic flash access routines.
346 effs_t flash_data_write(const char* dir_name, const char* file_name, void* data_pointer, int data_size);
347 int flash_data_read(const char* dir_name, const char* file_name, void* data_pointer, int data_size);
348 /* Marcus: Issue 1719: 11/02/2003:
349 * Changed return type to int: data_size if successful,
350 * presumably -ve for errors, as in FFS_ERRORS (else read less than asked for)
351 */
352
353 /* Aug 25, 2004 REF: CRR 20655 xnkulkar
354 Added the prototype for flash_makedir() function
355 */
356 void flash_makedir(char * dir_name);
357 // Apr 14, 2005 REF: CRR 29991 xpradipg
358 #ifdef FF_MMI_OPTIM
359 int8 flash_MMI_blackList_open( );
360 void flash_MMI_blackList_close(int8 handle);
361 int flash_MMI_blackList_write(U8 *data, SHORT len, SHORT offset);
362 int flash_MMI_blackList_read(int8 file,U8* data, SHORT len, SHORT offset);
363 #ifdef PCM_2_FFS
364 T_FFS_SIZE ffs_ReadRecord(const char *name, void * addr, int size, int index, int recsize);
365 T_FFS_RET ffs_WriteRecord(const char *name, void * addr, int size, int index, int recsize);
366 #endif
367 #endif
368 /* Added to remove warning Aug - 11 */
369 #ifdef NEPTUNE_BOARD
370 EXTERN int32 ffs_fread(const int8 *name, void *addr, int32 size);
371 EXTERN int8 ffs_fwrite(const int8 *pathname, void *src, int32 size);
372 #endif
373 /* End - remove warning Aug - 11 */
374 #endif