FreeCalypso > hg > leo2moko-debug
comparison g23m/condat/ms/src/atb/ATBPbFS.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
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 |