blob: 78c865ef3da841029be6b8fb6b8e4c71355e5690 [file] [log] [blame]
yu.dongc33b3072024-08-21 23:14:49 -07001/*****************************************************************************
2* Copyright Statement:
3* --------------------
4* This software is protected by Copyright and the information contained
5* herein is confidential. The software may not be copied and the information
6* contained herein may not be used or disclosed except with the written
7* permission of MediaTek Inc. (C) 2005
8*
9* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
10* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
11* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
12* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
13* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
14* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
15* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
16* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
17* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
18* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
19* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
20* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
21*
22* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
23* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
24* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
25* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
26* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
27*
28* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
29* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
30* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
31* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
32* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
33*
34*****************************************************************************/
35
36/*******************************************************************************
37 * Filename:
38 * ---------
39 * gps2lcsp_enum.h
40 *
41 * Project:
42 * --------
43 * MAUI
44 *
45 * Description:
46 * ------------
47 * This file is the enum of GPS
48 *
49 * Author:Wang Hai
50 * -------
51 * -------
52 *
53 *============================================================================
54 * HISTORY
55 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
56 *------------------------------------------------------------------------------
57 * removed!
58 *
59 * removed!
60 * removed!
61 * removed!
62 * removed!
63 *
64 * removed!
65 * removed!
66 * removed!
67 *
68 * removed!
69 * removed!
70 * removed!
71 *
72 * removed!
73 * removed!
74 * removed!
75 *
76 * removed!
77 * removed!
78 * removed!
79 *
80 * removed!
81 * removed!
82 * removed!
83 *
84 * removed!
85 * removed!
86 * removed!
87 *
88 * removed!
89 * removed!
90 * removed!
91 *
92 * removed!
93 * removed!
94 * removed!
95 *
96 * removed!
97 * removed!
98 * removed!
99 *
100 * removed!
101 * removed!
102 * removed!
103 *
104 * removed!
105 * removed!
106 * removed!
107 *------------------------------------------------------------------------------
108 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
109 *============================================================================
110 *******************************************************************************/
111#ifndef __GPS_ENUM_H__
112#define __GPS_ENUM_H__
113
114typedef enum
115{
116 GPS_ERR_NO_ERROR = 0,
117 GPS_ERR_UNKOWN_ERR,
118 GPS_ERR_NOT_ENOUGH_SAT,
119 GPS_ERR_LOC_CALC_DATA_MISS,
120 GPS_ERR_ASSIST_DATA_MISS,
121 GPS_ERR_TOO_MANY_REQ,
122 GPS_ERR_LOC_REQ_NOT_PROCESSED,
123 GPS_ERR_REQ_TIMEOUT,
124 GPS_ERR_REQ_METHOD_NOT_SUPPORT, /* for RRLP usage */
125 GPS_ERR_REQ_REF_BTS_NOT_SERV /* for RRLP usage */
126
127 ,GPS_ERR_REQ_REF_TIME_NOT_MEASUREED /* for UTRAN GPS ref time */
128 ,GPS_ERR_REQ_REF_SFN_NOT_DECODED /* for ULCS usage */
129
130} gps_error_code_enum;
131
132
133typedef enum
134{
135 GPS_RESULT_OK,
136 GPS_RESULT_ERROR,
137 GPS_RESULT_END
138} gps_result_enum;
139
140
141typedef enum
142{
143 GPS_ASSIST_RTI = 0, /*PMTK717*/
144 GPS_ASSIST_ACQUISITION, /*PMTK718*/
145 GPS_ASSIST_ALMANAC, /*PMTK711*/
146 GPS_ASSIST_UTC, /*PMTK716*/
147 GPS_ASSIST_IONOSPHERE, /*PMTK715*/
148 GPS_ASSIST_NAVIGATION_MODEL, /*PMTK710*/
149 GPS_ASSIST_DGPS_CORRECTION, /*PMTK720*/
150 GPS_ASSIST_REF_LOCATION, /*PMTK713*/
151 GPS_ASSIST_REF_TIME /*PMTK712*/
152} gps_assist_data_type_enum;
153
154
155typedef enum
156{
157 GPS_VELOCITY_HOR,
158 GPS_VELOCITY_HOR_AND_VER,
159 GPS_VELOCITY_HOR_UNCERT,
160 GPS_VELOCITY_HOR_AND_VER_UNCERT,
161 GPS_VELOCITY_END
162} gps_velocity_type_enum;
163
164#define GPS_ASSIST_WRONG_ASSIST_DATA_TYPE 0
165
166#define GPS_ASSIST_MASK_ALMANAC (1<<0)
167#define GPS_ASSIST_MASK_UTC (1<<1)
168#define GPS_ASSIST_MASK_IONOSPHERE (1<<2)
169#define GPS_ASSIST_MASK_NAVIGATION_MODEL (1<<3)
170#define GPS_ASSIST_MASK_DGPS_CORRECTION (1<<4)
171#define GPS_ASSIST_MASK_REF_LOCATION (1<<5)
172#define GPS_ASSIST_MASK_REF_TIME (1<<6)
173#define GPS_ASSIST_MASK_ACQUISITION (1<<7)
174#define GPS_ASSIST_MASK_RTI (1<<8)
175
176/* Adeline */
177#define GPS_ASSIST_MB_MANDATORY_MASK (GPS_ASSIST_MASK_UTC | \
178 GPS_ASSIST_MASK_IONOSPHERE | \
179 GPS_ASSIST_MASK_NAVIGATION_MODEL | \
180 GPS_ASSIST_MASK_REF_LOCATION | \
181 GPS_ASSIST_MASK_REF_TIME | \
182 GPS_ASSIST_MASK_RTI)
183
184#define GPS_ASSIST_MA_MANDATORY_MASK (GPS_ASSIST_MASK_ACQUISITION | \
185 GPS_ASSIST_MASK_REF_TIME)
186
187
188#define GPS_ASSIST_TIME_INDEPENDENT_MASK (GPS_ASSIST_MASK_REF_LOCATION)
189
190
191#define GPS_DEFAULT_PORT (0xAA)
192
193typedef enum
194{
195 GPS_CHIP_WORK_MODE_MA = 0,
196 GPS_CHIP_WORK_MODE_MB,
197 GPS_CHIP_WORK_MODE_NO_LOCK
198} gps_chip_work_mode_enum;
199
200// NEW
201/* ENUMERATED SFN-TOW-Uncertainty */
202typedef enum
203{
204 UAGPS_CP_SFN_TOW_UNCERTAINTY_NONE,
205 UAGPS_CP_SFN_TOW_UNCERTAINTY_10MS_THRESHOLD,
206 UAGPS_CP_SFN_TOW_UNCERTAINTY_MICROSECOND
207
208} uagps_cp_sfn_tow_uncertainty_type;
209
210/* ENUMERATED UTRAN-GPS-DriftRate */
211typedef enum
212{
213 UAGPS_CP_UTRAN_GPS_DRIFTRATE_0,
214 UAGPS_CP_UTRAN_GPS_DRIFTRATE_1,
215 UAGPS_CP_UTRAN_GPS_DRIFTRATE_2,
216 UAGPS_CP_UTRAN_GPS_DRIFTRATE_5,
217 UAGPS_CP_UTRAN_GPS_DRIFTRATE_10,
218 UAGPS_CP_UTRAN_GPS_DRIFTRATE_15,
219 UAGPS_CP_UTRAN_GPS_DRIFTRATE_25,
220 UAGPS_CP_UTRAN_GPS_DRIFTRATE_50,
221 UAGPS_CP_UTRAN_GPS_DRIFTRATE_MINUS_1,
222 UAGPS_CP_UTRAN_GPS_DRIFTRATE_MINUS_2,
223 UAGPS_CP_UTRAN_GPS_DRIFTRATE_MINUS_5,
224 UAGPS_CP_UTRAN_GPS_DRIFTRATE_MINUS_10,
225 UAGPS_CP_UTRAN_GPS_DRIFTRATE_MINUS_15,
226 UAGPS_CP_UTRAN_GPS_DRIFTRATE_MINUS_25,
227 UAGPS_CP_UTRAN_GPS_DRIFTRATE_MINUS_50
228
229} uagps_cp_utran_gps_driftrate;
230
231typedef enum
232{
233 LCS_UP_SIM_SOURCE_NOT_CARE, /* for user plane */
234 LCS_CP_FROM_SIM1, /* for control plane Gemini SIM1 or single SIM */
235 LCS_CP_FROM_SIM2, /* for control plane Gemini SIM2 */
236 LCS_CP_FROM_SIM3, /* for control plane Gemini SIM3 */
237 LCS_CP_FROM_SIM4, /* for control plane Gemini SIM4 */
238 LCS_UP_FROM_SIM1, /* for user plane Gemini SIM1 or single SIM */
239 LCS_UP_FROM_SIM2, /* for user plane Gemini SIM2 */
240 LCS_UP_FROM_SIM3, /* for user plane Gemini SIM3 */
241 LCS_UP_FROM_SIM4 /* for user plane Gemini SIM4 */
242} lcs_sim_source_enum;
243
244#endif /*__GPS_ENUM_H__*/
245