FreeCalypso > hg > leo2moko-debug
comparison g23m/condat/ms/src/mfw/Mfw_em.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 #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 /* | |
18 *************************************Includes************************************* | |
19 */ | |
20 | |
21 #include "mfw_mfw.h" | |
22 #include "mfw_sys.h" | |
23 | |
24 /* | |
25 *************************************Datatypes************************************* | |
26 */ | |
27 | |
28 typedef enum MFW_EM_DataType | |
29 { | |
30 EM_MOBILE_INFO = 0x01, | |
31 EM_SERVING_CELL_PARAMS = 0x02, | |
32 EM_NEIGHBOURING_CELL_PARAMS = 0x04, | |
33 EM_LOCATION_PARAMS = 0x08, | |
34 EM_CIPH_HOP_DTX_PARAMS = 0x10, | |
35 EM_GPRS_PARAMS = 0x20 | |
36 } MfwEmDataType; | |
37 | |
38 typedef struct | |
39 { | |
40 /*software_versions*/ | |
41 char SIM_version[MAX_VER]; | |
42 char CC_version[MAX_VER]; | |
43 char SS_version[MAX_VER]; | |
44 char SMS_version[MAX_VER]; | |
45 char MM_version[MAX_VER]; | |
46 char RR_version[MAX_VER]; | |
47 char DL_version[MAX_VER]; | |
48 char ALR_version[MAX_VER]; | |
49 | |
50 char IMEI[16]; | |
51 char IMSI[16]; | |
52 ULONG TMSI; /*SPR 1554, changed from LONG to ULONG*/ | |
53 }MFW_EM_Mobile_Info; | |
54 | |
55 typedef struct | |
56 { | |
57 USHORT arfcn; | |
58 UBYTE RSSI; //Received field strength | |
59 UBYTE RXQ; //received quality | |
60 UBYTE RLT; //radio link timeout counter | |
61 SHORT C1; //C1 Path lost criterion | |
62 SHORT C2; //C2 Parameter - often the same as RSSI for SC | |
63 UBYTE BSIC; //Base Station ID Code | |
64 UBYTE TAV; //Timing Advanced | |
65 USHORT LAC; //Location Area Code | |
66 }MFW_EM_Serving_Cell_Parameters; | |
67 | |
68 typedef struct | |
69 { | |
70 UBYTE NUM; //number of neighbouring cells | |
71 USHORT arfcn[7];//channel numbers | |
72 UBYTE RSSI[7];//received signal strength | |
73 SHORT C2[7];//received C2 Parameter | |
74 USHORT LAC_NC[7]; //Location Area Code | |
75 UBYTE BSIC_NC[7]; //Base Station ID Code | |
76 } MFW_EM_Neighbour_Cell_Parameters; | |
77 | |
78 typedef struct | |
79 { | |
80 UBYTE LUP;//Location update period | |
81 UBYTE MCC[4];//mobile country code | |
82 UBYTE MNC[4];//mobile network code | |
83 USHORT LAC; //location area code | |
84 /*SPR 1554, removed cell id */ | |
85 }MFW_EM_Location_Parameters; | |
86 | |
87 typedef struct | |
88 { | |
89 UBYTE ciph_status; //ciphering status | |
90 /*USHORT ma[65]; //MA list after time | |
91 USHORT ma2[65];//MA list before time*/ | |
92 USHORT HSN; //hopping sequence number | |
93 UBYTE DTX_status; | |
94 }MFW_EM_Ciph_hop_DTX_Parameters; | |
95 | |
96 typedef struct | |
97 { /*SPR 1554, changed the data structure to only include the NMO*/ | |
98 UBYTE NMO; //network mode of operation | |
99 UBYTE NDTS; //number of Downlink Timeslots | |
100 UBYTE RAC; //Routing Area Color | |
101 SHORT C31; //C31 Criterion | |
102 SHORT C32; //C32 Criterion | |
103 } | |
104 MFW_EM_GPRS_Parameter; | |
105 | |
106 typedef struct | |
107 { | |
108 MFW_EM_Mobile_Info MobileInfo; | |
109 MFW_EM_Serving_Cell_Parameters SCInfo; | |
110 MFW_EM_Neighbour_Cell_Parameters NCInfo; | |
111 MFW_EM_Location_Parameters LocInfo; | |
112 MFW_EM_Ciph_hop_DTX_Parameters CHDTXInfo; | |
113 MFW_EM_GPRS_Parameter GPRSInfo; | |
114 } | |
115 MFW_EM_Data; | |
116 | |
117 | |
118 | |
119 /* | |
120 *************************************Prototypes************************************* | |
121 */ | |
122 | |
123 /* Initialise mfw_em module(which initialises EM driver);*/ | |
124 int Mfw_em_init(); | |
125 | |
126 /* Bind events specified by mask to an MMI call-back function.*/ | |
127 MfwHnd Mfw_em_create(MfwHnd hWin, MfwEvt event, MfwCb cb_func); | |
128 | |
129 /*Deallocate any memory for the module.*/ | |
130 void Mfw_em_exit(); | |
131 | |
132 /* Request specified data from EM Driver.*/ | |
133 int Mfw_em_get_data(MfwEmDataType type); | |
134 | |
135 | |
136 #endif | |
137 |