1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* libqmi-glib -- GLib/GIO based library to control QMI devices
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
* Copyright (C) 2012 Google Inc.
*/
#ifndef _LIBQMI_GLIB_QMI_ENUMS_PDS_H_
#define _LIBQMI_GLIB_QMI_ENUMS_PDS_H_
#if !defined (__LIBQMI_GLIB_H_INSIDE__) && !defined (LIBQMI_GLIB_COMPILATION)
#error "Only <libqmi-glib.h> can be included directly."
#endif
/**
* SECTION: qmi-enums-pds
* @title: PDS enumerations and flags
*
* This section defines enumerations and flags used in the PDS service
* interface.
*/
/*****************************************************************************/
/* Helper enums for the 'QMI PDS Event Report' indication */
/**
* QmiPdsOperationMode:
* @QMI_PDS_OPERATION_MODE_UNKNOWN: Unknown (position not fixed yet).
* @QMI_PDS_OPERATION_MODE_STANDALONE: Standalone.
* @QMI_PDS_OPERATION_MODE_MS_BASED: MS based.
* @QMI_PDS_OPERATION_MODE_MS_ASSISTED: MS assisted.
*
* Operation mode used to compute the position.
*/
typedef enum {
QMI_PDS_OPERATION_MODE_UNKNOWN = -1,
QMI_PDS_OPERATION_MODE_STANDALONE = 0,
QMI_PDS_OPERATION_MODE_MS_BASED = 1,
QMI_PDS_OPERATION_MODE_MS_ASSISTED = 2
} QmiPdsOperationMode;
/**
* QmiPdsPositionSessionStatus:
* @QMI_PDS_POSITION_SESSION_STATUS_SUCCESS: Success.
* @QMI_PDS_POSITION_SESSION_STATUS_IN_PROGRESS: In progress.
* @QMI_PDS_POSITION_SESSION_STATUS_GENERAL_FAILURE: General failure.
* @QMI_PDS_POSITION_SESSION_STATUS_TIMEOUT: Timeout.
* @QMI_PDS_POSITION_SESSION_STATUS_USER_ENDED_SESSION: User ended session.
* @QMI_PDS_POSITION_SESSION_STATUS_BAD_PARAMETER: Bad parameter.
* @QMI_PDS_POSITION_SESSION_STATUS_PHONE_OFFLINE: Phone is offline.
* @QMI_PDS_POSITION_SESSION_STATUS_ENGINE_LOCKED: Engine locked.
* @QMI_PDS_POSITION_SESSION_STATUS_E911_SESSION_IN_PROGRESS: Emergency call in progress.
*
* Status of the positioning session.
*/
typedef enum {
QMI_PDS_POSITION_SESSION_STATUS_SUCCESS = 0x00,
QMI_PDS_POSITION_SESSION_STATUS_IN_PROGRESS = 0x01,
QMI_PDS_POSITION_SESSION_STATUS_GENERAL_FAILURE = 0x02,
QMI_PDS_POSITION_SESSION_STATUS_TIMEOUT = 0x03,
QMI_PDS_POSITION_SESSION_STATUS_USER_ENDED_SESSION = 0x04,
QMI_PDS_POSITION_SESSION_STATUS_BAD_PARAMETER = 0x05,
QMI_PDS_POSITION_SESSION_STATUS_PHONE_OFFLINE = 0x06,
QMI_PDS_POSITION_SESSION_STATUS_ENGINE_LOCKED = 0x07,
QMI_PDS_POSITION_SESSION_STATUS_E911_SESSION_IN_PROGRESS = 0x08
} QmiPdsPositionSessionStatus;
/**
* QmiPdsDataValid:
* @QMI_PDS_DATA_VALID_TIMESTAMP_CALENDAR: Timestamp calendar (GPS time).
* @QMI_PDS_DATA_VALID_TIMESTAMP_UTC: Timestamp (UTC).
* @QMI_PDS_DATA_VALID_LEAP_SECONDS: Leap seconds.
* @QMI_PDS_DATA_VALID_TIME_UNCERTAINTY: Time uncertainty.
* @QMI_PDS_DATA_VALID_LATITUDE: Latitude.
* @QMI_PDS_DATA_VALID_LONGITUDE: Longitude.
* @QMI_PDS_DATA_VALID_ELLIPSOID_ALTITUDE: Ellipsoid altitude.
* @QMI_PDS_DATA_VALID_MEAN_SEA_LEVEL_ALTITUDE: Mean sea level altitude.
* @QMI_PDS_DATA_VALID_HORIZONTAL_SPEED: Horizontal speed.
* @QMI_PDS_DATA_VALID_VERTICAL_SPEED: Vertical speed.
* @QMI_PDS_DATA_VALID_HEADING: Heading.
* @QMI_PDS_DATA_VALID_HORIZONTAL_UNCERTAINTY_CIRCULAR: Horizontal uncertainty circular.
* @QMI_PDS_DATA_VALID_HORIZONTAL_UNCERTAINTY_ELLIPSE_SEMI_MAJOR: Horizontal uncertainty ellipse semi-major.
* @QMI_PDS_DATA_VALID_HORIZONTAL_UNCERTAINTY_ELLIPSE_SEMI_MINOR: Horizontal uncertainty ellipse semi-minor.
* @QMI_PDS_DATA_VALID_HORIZONTAL_UNCERTAINTY_ELLIPSE_ORIENT_AZIMUTH: Horizontal uncertainty ellipse orient azimuth.
* @QMI_PDS_DATA_VALID_VERTICAL_UNCERTAINTY: Vertical uncertainty.
* @QMI_PDS_DATA_VALID_HORIZONTAL_VELOCITY_UNCERTAINTY: Horizontal velocity uncertainty.
* @QMI_PDS_DATA_VALID_VERTICAL_VELOCITY_UNCERTAINTY: Vertical velocity uncertainty.
* @QMI_PDS_DATA_VALID_HORIZONTAL_CONFIDENCE: Horizontal confidence.
* @QMI_PDS_DATA_VALID_POSITION_DOP: Position dillution of precision.
* @QMI_PDS_DATA_VALID_HORIZONTAL_DOP: Horizontal dillution of precision.
* @QMI_PDS_DATA_VALID_VERTICAL_DOP: Vertical dillution of precision.
* @QMI_PDS_DATA_VALID_OPERATING_MODE: Operating mode.
*
* Flags to indicate which position data parameters are valid.
*/
typedef enum {
QMI_PDS_DATA_VALID_TIMESTAMP_CALENDAR = 1 << 0,
QMI_PDS_DATA_VALID_TIMESTAMP_UTC = 1 << 1,
QMI_PDS_DATA_VALID_LEAP_SECONDS = 1 << 2,
QMI_PDS_DATA_VALID_TIME_UNCERTAINTY = 1 << 3,
QMI_PDS_DATA_VALID_LATITUDE = 1 << 4,
QMI_PDS_DATA_VALID_LONGITUDE = 1 << 5,
QMI_PDS_DATA_VALID_ELLIPSOID_ALTITUDE = 1 << 6,
QMI_PDS_DATA_VALID_MEAN_SEA_LEVEL_ALTITUDE = 1 << 7,
QMI_PDS_DATA_VALID_HORIZONTAL_SPEED = 1 << 8,
QMI_PDS_DATA_VALID_VERTICAL_SPEED = 1 << 9,
QMI_PDS_DATA_VALID_HEADING = 1 << 10,
QMI_PDS_DATA_VALID_HORIZONTAL_UNCERTAINTY_CIRCULAR = 1 << 11,
QMI_PDS_DATA_VALID_HORIZONTAL_UNCERTAINTY_ELLIPSE_SEMI_MAJOR = 1 << 12,
QMI_PDS_DATA_VALID_HORIZONTAL_UNCERTAINTY_ELLIPSE_SEMI_MINOR = 1 << 13,
QMI_PDS_DATA_VALID_HORIZONTAL_UNCERTAINTY_ELLIPSE_ORIENT_AZIMUTH = 1 << 14,
QMI_PDS_DATA_VALID_VERTICAL_UNCERTAINTY = 1 << 15,
QMI_PDS_DATA_VALID_HORIZONTAL_VELOCITY_UNCERTAINTY = 1 << 16,
QMI_PDS_DATA_VALID_VERTICAL_VELOCITY_UNCERTAINTY = 1 << 17,
QMI_PDS_DATA_VALID_HORIZONTAL_CONFIDENCE = 1 << 18,
QMI_PDS_DATA_VALID_POSITION_DOP = 1 << 19,
QMI_PDS_DATA_VALID_HORIZONTAL_DOP = 1 << 20,
QMI_PDS_DATA_VALID_VERTICAL_DOP = 1 << 21,
QMI_PDS_DATA_VALID_OPERATING_MODE = 1 << 22
} QmiPdsDataValid;
/*****************************************************************************/
/* Helper enums for the 'QMI PDS Get GPS Service State' request/response */
/**
* QmiPdsTrackingSessionState:
* @QMI_PDS_TRACKING_SESSION_STATE_UNKNOWN: Unknown state.
* @QMI_PDS_TRACKING_SESSION_STATE_INACTIVE: Session inactive.
* @QMI_PDS_TRACKING_SESSION_STATE_ACTIVE: Session active.
*
* State of the tracking session.
*/
typedef enum {
QMI_PDS_TRACKING_SESSION_STATE_UNKNOWN = 0,
QMI_PDS_TRACKING_SESSION_STATE_INACTIVE = 1,
QMI_PDS_TRACKING_SESSION_STATE_ACTIVE = 2
} QmiPdsTrackingSessionState;
/*****************************************************************************/
/* Helper enums for the 'QMI PDS Get Default Tracking Session' request/response */
/**
* QmiPdsOperatingMode:
* @QMI_PDS_OPERATING_MODE_STANDALONE: Standalone (GPS only).
* @QMI_PDS_OPERATING_MODE_MS_BASED: MS-based.
* @QMI_PDS_OPERATING_MODE_MS_ASSISTED: MS-assisted (A-GPS).
*
* GPS operating mode.
*/
typedef enum {
QMI_PDS_OPERATING_MODE_STANDALONE = 0,
QMI_PDS_OPERATING_MODE_MS_BASED = 1,
QMI_PDS_OPERATING_MODE_MS_ASSISTED = 2,
} QmiPdsOperatingMode;
/*****************************************************************************/
/* Helper enums for the 'QMI PDS Get AGPS Config' request/response */
/**
* QmiPdsNetworkMode:
* @QMI_PDS_NETWORK_MODE_UMTS: UMTS.
* @QMI_PDS_NETWORK_MODE_CDMA: CDMA.
*
* Network mode used during the A-GPS setup.
*/
typedef enum {
QMI_PDS_NETWORK_MODE_UMTS = 0,
QMI_PDS_NETWORK_MODE_CDMA = 1,
} QmiPdsNetworkMode;
#endif /* _LIBQMI_GLIB_QMI_ENUMS_PDS_H_ */
|