comparison src/ui3/mfw/mfw_sima.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: GSM-MFW (?) $Workfile:: mfw_sima.h $|
4 | $Author:: Es $Revision:: 1 $|
5 | CREATED: 14.10.98 $Modtime:: 6.10.99 12:21 $|
6 | STATE : code |
7 +--------------------------------------------------------------------+
8
9 PURPOSE : Types definitions for MMI framework
10 .
11
12 Jan 16, 2006 DR: OMAPS00061460 - Shashi Shekar B.S.
13 Description: SAT Icon support
14 Solution : SAT icon support added.
15
16 */
17
18 #ifndef DEF_MFW_SIMA_HEADER
19 #define DEF_MFW_SIMA_HEADER
20
21 /* Contents of the Elementary Files from SIM card */
22 typedef struct
23 {
24 UBYTE display_condition;
25 UBYTE service_provider [LONG_NAME];
26 } T_EF_SPN;
27
28 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460
29 #ifdef FF_MMI_SAT_ICON
30 /* SIM record read parameters */
31 typedef struct
32 {
33 USHORT data_id; /* EF file to be read */
34 USHORT offset; /* Offset to file to be read */
35 UBYTE record_number; /* Record number of EF file */
36 UBYTE len; /* Length of record */
37 UBYTE max_length; /* Max records */
38 } T_SIM_ACCESS_PARAM;
39
40 /* Structure to hold the Image instance contents */
41 typedef struct
42 {
43 UBYTE image_width; /* Image Width */
44 UBYTE image_height; /* Image Height*/
45 UBYTE image_coding; /* 11 -> B/W, 21 -> Color image, xx -> RFU */
46 USHORT image_instance_file_id; /* File Id of the image instance */
47 USHORT image_offset; /* Offset of the image instance */
48 USHORT image_instance_length; /* Length of image instance data */
49 } T_IMAGE_INSTANCE;
50
51 /* Contents of the Elementary Files from SIM card for IMG */
52 typedef struct
53 {
54 UBYTE number_of_image_instance;
55 T_IMAGE_INSTANCE image_instance;
56 } T_EF_IMG;
57 #endif
58
59 EXTERN void sima_init (void);
60 EXTERN void rAT_PlusCFUNP (T_SIM_MMI_INSERT_IND * mmi_insert_ind);
61 EXTERN UBYTE qAT_PlusCPINNO (void);
62 EXTERN void sim_read_sim (USHORT data_id, UBYTE len, UBYTE max_length);
63 // Shashi Shekar B.S., a0876501, Jan 16, 2006, DR: OMAPS00061460
64 #ifdef FF_MMI_SAT_ICON
65 EXTERN void sim_read_sim_icon(T_SIM_ACCESS_PARAM *sim_icon_read_param);
66 #endif
67 EXTERN void sim_read_sim_cb (SHORT table_id);
68 EXTERN void sim_write_sim (USHORT data_id, UBYTE * data, UBYTE length);
69 EXTERN void sim_write_sim_cb(SHORT table_id);
70
71
72 #endif