comparison src/ui3/atb/ATBPbFS.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 * PB_RECS_PER_FILE
3 *
4 * Specifies how many records should be stored in
5 * each file on the flash.
6 *********************************************/
7
8 #define PB_RECS_PER_FILE 10
9
10 /*********************************************
11 * PB_xxx_UPPER_LIMIT
12 *
13 * The absolute maximum size of various aspects
14 * of the records stored on the file system. Used
15 * to keep values read in from file within a
16 * sensible range.
17 *********************************************/
18
19 #define PB_RECORDS_UPPER_LIMIT 500
20 #define PB_ALPHATAG_UPPER_LIMIT 500
21 #define PB_NUMBER_UPPER_LIMIT 500
22 #define PB_EXT_UPPER_LIMIT 500
23
24
25 /**********************************************
26 * T_PB_FSDATA
27 *
28 * Internal information for FS
29 *********************************************/
30
31 typedef struct
32 {
33 SHORT records_max;
34 SHORT alpha_max;
35 SHORT number_max;
36 SHORT ext_max;
37 SHORT record_size;
38 T_FFS_FD info_file;
39 SHORT fileID;
40 T_FFS_FD file;
41 }
42 T_PB_FSDATA;
43
44 /**********************************************
45 * T_PB_FSINFO
46 *
47 * Information about phonebook -
48 * e.g. is SIM or FFS selected ?
49 *********************************************/
50
51 typedef struct
52 {
53 UBYTE type_selected; /* The current selected phonebook */
54 SHORT records_max;
55 SHORT alpha_max;
56 SHORT number_max;
57 SHORT ext_max;
58 }
59 T_PB_FSINFO;
60
61 /**********************************************
62 * LOCAL FUNCTION PROTOTYPES
63 *
64 *********************************************/
65
66 void FS_file_GetIndex(SHORT phys_index, SHORT *fileIndex, SHORT *recIndex);
67 void FS_file_GetName(char *filename, SHORT phonebook_id, SHORT fileIndex);
68 SHORT FS_file_OpenForRec(SHORT phonebook_id, SHORT phys_index);
69
70
71
72