comparison src/ui3/mfw/mfw_em.h @ 432:f914fb46e1a5

src/ui3/mfw: file renames to make the case consistent
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 22 Jan 2018 00:40:31 +0000
parents src/ui3/mfw/Mfw_em.h@e8ddbb0837ed
children
comparison
equal deleted inserted replaced
431:b006702b48ca 432:f914fb46e1a5
1 #ifndef _MFW_EM_H_
2 #define MFW_EM_H_
3
4 /*
5 +--------------------------------------------------------------------+
6 | PROJECT: MMI-Framework (8417) $Workfile:: mfw_em.h $|
7 | $Author: KGT $Revision:: 1 $|
8 | CREATED: 13.02.2001 $Modtime:: 13.02.2001 $|
9 | STATE : code |
10 +--------------------------------------------------------------------+
11
12 MODULE : MFW_EM
13
14 PURPOSE : Interfaces between ACI EM Driver and MMI.
15
16 ********************************************************************************
17 $History: Mfw_em.h
18
19 Apr 24, 2006 ERT: OMAPS00067603 x0043642
20 Description: Engineering mode
21 Solution: Added Enums to handle different em categories.
22 $End
23
24
25
26 *************************************Includes*************************************
27 */
28
29 #include "mfw_mfw.h"
30 #include "mfw_sys.h"
31
32 /*
33 *************************************Datatypes*************************************
34 */
35
36 typedef enum MFW_EM_DataType
37 {
38 #ifndef NEPTUNE_BOARD
39 EM_MOBILE_INFO = 0x01,
40 EM_SERVING_CELL_PARAMS = 0x02,
41 EM_NEIGHBOURING_CELL_PARAMS = 0x04,
42 EM_LOCATION_PARAMS = 0x08,
43 EM_CIPH_HOP_DTX_PARAMS = 0x10,
44 EM_GPRS_PARAMS = 0x20
45 #else /* NEPTUNE BOARD */ /*EngMode */
46 EM_SERVING_CELL_PARAMS,
47 EM_SERVING_CELL_RF_PARAMS,
48 EM_SERVING_CHANNEL_PARAMS,
49 EM_AMR_PARAMS,
50 EM_SNDCP_PARAMS,
51 EM_USERLEVEL_PARAMS,
52 EM_LLCTRACING_PARAMS,
53 EM_RLC_MAC_PARAMS,
54 EM_GMM_INFO_PARAMS,
55 EM_CALL_STATUS_PARAMS,
56 EM_LAYER_MESSAGE_PARAMS,
57 EM_NEIGHBOURING_CELL_PARAMS,
58 EM_WCDMA_LAYER_MESSAGE_PARAMS,
59 EM_3G_INFO_PARAMS,
60 EM_PACKET_DATA_PARAMS
61 #endif
62 } MfwEmDataType;
63
64 #ifndef NEPTUNE_BOARD /*EngMode */
65 typedef struct
66 {
67 /*software_versions*/
68 char SIM_version[MAX_VER];
69 char CC_version[MAX_VER];
70 char SS_version[MAX_VER];
71 char SMS_version[MAX_VER];
72 char MM_version[MAX_VER];
73 char RR_version[MAX_VER];
74 char DL_version[MAX_VER];
75 char ALR_version[MAX_VER];
76
77 char IMEI[16];
78 char IMSI[16];
79 ULONG TMSI; /*SPR 1554, changed from LONG to ULONG*/
80 }MFW_EM_Mobile_Info;
81
82 typedef struct
83 {
84 USHORT arfcn;
85 UBYTE RSSI; //Received field strength
86 UBYTE RXQ; //received quality
87 UBYTE RLT; //radio link timeout counter
88 SHORT C1; //C1 Path lost criterion
89 SHORT C2; //C2 Parameter - often the same as RSSI for SC
90 UBYTE BSIC; //Base Station ID Code
91 UBYTE TAV; //Timing Advanced
92 USHORT LAC; //Location Area Code
93 }MFW_EM_Serving_Cell_Parameters;
94
95 typedef struct
96 {
97 UBYTE NUM; //number of neighbouring cells
98 USHORT arfcn[7];//channel numbers
99 UBYTE RSSI[7];//received signal strength
100 SHORT C2[7];//received C2 Parameter
101 USHORT LAC_NC[7]; //Location Area Code
102 UBYTE BSIC_NC[7]; //Base Station ID Code
103 } MFW_EM_Neighbour_Cell_Parameters;
104
105 typedef struct
106 {
107 UBYTE LUP;//Location update period
108 UBYTE MCC[4];//mobile country code
109 UBYTE MNC[4];//mobile network code
110 USHORT LAC; //location area code
111 /*SPR 1554, removed cell id */
112 }MFW_EM_Location_Parameters;
113
114 typedef struct
115 {
116 UBYTE ciph_status; //ciphering status
117 /*USHORT ma[65]; //MA list after time
118 USHORT ma2[65];//MA list before time*/
119 USHORT HSN; //hopping sequence number
120 UBYTE DTX_status;
121 }MFW_EM_Ciph_hop_DTX_Parameters;
122
123 typedef struct
124 { /*SPR 1554, changed the data structure to only include the NMO*/
125 UBYTE NMO; //network mode of operation
126 UBYTE NDTS; //number of Downlink Timeslots
127 UBYTE RAC; //Routing Area Color
128 SHORT C31; //C31 Criterion
129 SHORT C32; //C32 Criterion
130 }
131 MFW_EM_GPRS_Parameter;
132
133 typedef struct
134 {
135 MFW_EM_Mobile_Info MobileInfo;
136 MFW_EM_Serving_Cell_Parameters SCInfo;
137 MFW_EM_Neighbour_Cell_Parameters NCInfo;
138 MFW_EM_Location_Parameters LocInfo;
139 MFW_EM_Ciph_hop_DTX_Parameters CHDTXInfo;
140 MFW_EM_GPRS_Parameter GPRSInfo;
141 }
142 MFW_EM_Data;
143
144 #endif
145
146
147 /*
148 *************************************Prototypes*************************************
149 */
150
151 /* Initialise mfw_em module(which initialises EM driver);*/
152 int Mfw_em_init(void);
153
154 /* Bind events specified by mask to an MMI call-back function.*/
155 MfwHnd Mfw_em_create(MfwHnd hWin, MfwEvt event, MfwCb cb_func);
156
157 /*Deallocate any memory for the module.*/
158 void Mfw_em_exit(void);
159
160 /* Request specified data from EM Driver.*/
161 int Mfw_em_get_data(MfwEmDataType type);
162
163 /* Added to remove warning Aug - 11 */
164 MfwRes em_delete (MfwHnd h);
165 EXTERN UBYTE dspl_Enable (UBYTE in_Enable);
166 /* End - remove warning */
167
168 #endif
169