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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
|
/* -*- 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_NAS_H_
#define _LIBQMI_GLIB_QMI_ENUMS_NAS_H_
/*****************************************************************************/
/* Helper enums for the 'QMI NAS Event Report' indication */
/**
* QmiNasRadioInterface:
* @QMI_NAS_RADIO_INTERFACE_NONE: None, no service.
* @QMI_NAS_RADIO_INTERFACE_CDMA_1X: CDMA2000 1X.
* @QMI_NAS_RADIO_INTERFACE_CDMA_1XEVDO: CDMA2000 HRPD (1xEV-DO).
* @QMI_NAS_RADIO_INTERFACE_AMPS: AMPS.
* @QMI_NAS_RADIO_INTERFACE_GSM: GSM.
* @QMI_NAS_RADIO_INTERFACE_UMTS: UMTS.
* @QMI_NAS_RADIO_INTERFACE_LTE: LTE.
* @QMI_NAS_RADIO_INTERFACE_TD_SCDMA: TD-SCDMA.
*
* Radio interface technology.
*/
typedef enum {
QMI_NAS_RADIO_INTERFACE_NONE = 0x00,
QMI_NAS_RADIO_INTERFACE_CDMA_1X = 0x01,
QMI_NAS_RADIO_INTERFACE_CDMA_1XEVDO = 0x02,
QMI_NAS_RADIO_INTERFACE_AMPS = 0x03,
QMI_NAS_RADIO_INTERFACE_GSM = 0x04,
QMI_NAS_RADIO_INTERFACE_UMTS = 0x05,
QMI_NAS_RADIO_INTERFACE_LTE = 0x08,
QMI_NAS_RADIO_INTERFACE_TD_SCDMA = 0x09
} QmiNasRadioInterface;
/**
* QmiNasActiveBand:
* @QMI_NAS_ACTIVE_BAND_BC_0: Band class 0.
* @QMI_NAS_ACTIVE_BAND_BC_1: Band class 1.
* @QMI_NAS_ACTIVE_BAND_BC_2: Band class 2.
* @QMI_NAS_ACTIVE_BAND_BC_3: Band class 3.
* @QMI_NAS_ACTIVE_BAND_BC_4: Band class 4.
* @QMI_NAS_ACTIVE_BAND_BC_5: Band class 5.
* @QMI_NAS_ACTIVE_BAND_BC_6: Band class 6.
* @QMI_NAS_ACTIVE_BAND_BC_7: Band class 7.
* @QMI_NAS_ACTIVE_BAND_BC_8: Band class 8.
* @QMI_NAS_ACTIVE_BAND_BC_9: Band class 9.
* @QMI_NAS_ACTIVE_BAND_BC_10: Band class 10.
* @QMI_NAS_ACTIVE_BAND_BC_11: Band class 11.
* @QMI_NAS_ACTIVE_BAND_BC_12: Band class 12.
* @QMI_NAS_ACTIVE_BAND_BC_13: Band class 13.
* @QMI_NAS_ACTIVE_BAND_BC_14: Band class 14.
* @QMI_NAS_ACTIVE_BAND_BC_15: Band class 15.
* @QMI_NAS_ACTIVE_BAND_BC_16: Band class 16.
* @QMI_NAS_ACTIVE_BAND_BC_17: Band class 17.
* @QMI_NAS_ACTIVE_BAND_BC_18: Band class 18.
* @QMI_NAS_ACTIVE_BAND_BC_19: Band class 19.
* @QMI_NAS_ACTIVE_BAND_GSM_450: GSM 450.
* @QMI_NAS_ACTIVE_BAND_GSM_480: GSM 480.
* @QMI_NAS_ACTIVE_BAND_GSM_750: GSM 750.
* @QMI_NAS_ACTIVE_BAND_GSM_850: GSM 850.
* @QMI_NAS_ACTIVE_BAND_GSM_900_EXTENDED: GSM 900 (Extended).
* @QMI_NAS_ACTIVE_BAND_GSM_900_PRIMARY: GSM 900 (Primary).
* @QMI_NAS_ACTIVE_BAND_GSM_900_RAILWAYS: GSM 900 (Railways).
* @QMI_NAS_ACTIVE_BAND_GSM_1800: GSM 1800.
* @QMI_NAS_ACTIVE_BAND_GSM_1900: GSM 1900.
* @QMI_NAS_ACTIVE_BAND_WCDMA_2100: WCDMA 2100.
* @QMI_NAS_ACTIVE_BAND_WCDMA_PCS_1900: WCDMA PCS 1900.
* @QMI_NAS_ACTIVE_BAND_WCDMA_DCS_1800: WCDMA DCS 1800.
* @QMI_NAS_ACTIVE_BAND_WCDMA_1700_US: WCDMA 1700 (U.S.).
* @QMI_NAS_ACTIVE_BAND_WCDMA_850: WCDMA 850.
* @QMI_NAS_ACTIVE_BAND_WCDMA_800: WCDMA 800.
* @QMI_NAS_ACTIVE_BAND_WCDMA_2600: WCDMA 2600.
* @QMI_NAS_ACTIVE_BAND_WCDMA_900: WCDMA 900.
* @QMI_NAS_ACTIVE_BAND_WCDMA_1700_JAPAN: WCDMA 1700 (Japan).
* @QMI_NAS_ACTIVE_BAND_WCDMA_1500_JAPAN: WCDMA 1500 (Japan).
* @QMI_NAS_ACTIVE_BAND_WCDMA_850_JAPAN: WCDMA 850 (Japan).
* @QMI_NAS_ACTIVE_BAND_EUTRA_1: E-UTRA band 1.
* @QMI_NAS_ACTIVE_BAND_EUTRA_2: E-UTRA band 2.
* @QMI_NAS_ACTIVE_BAND_EUTRA_3: E-UTRA band 3.
* @QMI_NAS_ACTIVE_BAND_EUTRA_4: E-UTRA band 4.
* @QMI_NAS_ACTIVE_BAND_EUTRA_5: E-UTRA band 5.
* @QMI_NAS_ACTIVE_BAND_EUTRA_6: E-UTRA band 6.
* @QMI_NAS_ACTIVE_BAND_EUTRA_7: E-UTRA band 7.
* @QMI_NAS_ACTIVE_BAND_EUTRA_8: E-UTRA band 8.
* @QMI_NAS_ACTIVE_BAND_EUTRA_9: E-UTRA band 9.
* @QMI_NAS_ACTIVE_BAND_EUTRA_10: E-UTRA band 10.
* @QMI_NAS_ACTIVE_BAND_EUTRA_11: E-UTRA band 11.
* @QMI_NAS_ACTIVE_BAND_EUTRA_12: E-UTRA band 12.
* @QMI_NAS_ACTIVE_BAND_EUTRA_13: E-UTRA band 13.
* @QMI_NAS_ACTIVE_BAND_EUTRA_14: E-UTRA band 14.
* @QMI_NAS_ACTIVE_BAND_EUTRA_17: E-UTRA band 17.
* @QMI_NAS_ACTIVE_BAND_EUTRA_18: E-UTRA band 18.
* @QMI_NAS_ACTIVE_BAND_EUTRA_19: E-UTRA band 19.
* @QMI_NAS_ACTIVE_BAND_EUTRA_20: E-UTRA band 20.
* @QMI_NAS_ACTIVE_BAND_EUTRA_21: E-UTRA band 21.
* @QMI_NAS_ACTIVE_BAND_EUTRA_24: E-UTRA band 24.
* @QMI_NAS_ACTIVE_BAND_EUTRA_25: E-UTRA band 25.
* @QMI_NAS_ACTIVE_BAND_EUTRA_33: E-UTRA band 33.
* @QMI_NAS_ACTIVE_BAND_EUTRA_34: E-UTRA band 34.
* @QMI_NAS_ACTIVE_BAND_EUTRA_35: E-UTRA band 35.
* @QMI_NAS_ACTIVE_BAND_EUTRA_36: E-UTRA band 36.
* @QMI_NAS_ACTIVE_BAND_EUTRA_37: E-UTRA band 37.
* @QMI_NAS_ACTIVE_BAND_EUTRA_38: E-UTRA band 38.
* @QMI_NAS_ACTIVE_BAND_EUTRA_39: E-UTRA band 39.
* @QMI_NAS_ACTIVE_BAND_EUTRA_40: E-UTRA band 40.
* @QMI_NAS_ACTIVE_BAND_EUTRA_41: E-UTRA band 41.
* @QMI_NAS_ACTIVE_BAND_EUTRA_42: E-UTRA band 42.
* @QMI_NAS_ACTIVE_BAND_EUTRA_43: E-UTRA band 43.
* @QMI_NAS_ACTIVE_BAND_TDSCDMA_A: TD-SCDMA Band A.
* @QMI_NAS_ACTIVE_BAND_TDSCDMA_B: TD-SCDMA Band B.
* @QMI_NAS_ACTIVE_BAND_TDSCDMA_C: TD-SCDMA Band C.
* @QMI_NAS_ACTIVE_BAND_TDSCDMA_D: TD-SCDMA Band D.
* @QMI_NAS_ACTIVE_BAND_TDSCDMA_E: TD-SCDMA Band E.
* @QMI_NAS_ACTIVE_BAND_TDSCDMA_F: TD-SCDMA Band F.
*
* Band classes.
*/
typedef enum {
QMI_NAS_ACTIVE_BAND_BC_0 = 0,
QMI_NAS_ACTIVE_BAND_BC_1 = 1,
QMI_NAS_ACTIVE_BAND_BC_2 = 2,
QMI_NAS_ACTIVE_BAND_BC_3 = 3,
QMI_NAS_ACTIVE_BAND_BC_4 = 4,
QMI_NAS_ACTIVE_BAND_BC_5 = 5,
QMI_NAS_ACTIVE_BAND_BC_6 = 6,
QMI_NAS_ACTIVE_BAND_BC_7 = 7,
QMI_NAS_ACTIVE_BAND_BC_8 = 8,
QMI_NAS_ACTIVE_BAND_BC_9 = 9,
QMI_NAS_ACTIVE_BAND_BC_10 = 10,
QMI_NAS_ACTIVE_BAND_BC_11 = 11,
QMI_NAS_ACTIVE_BAND_BC_12 = 12,
QMI_NAS_ACTIVE_BAND_BC_13 = 13,
QMI_NAS_ACTIVE_BAND_BC_14 = 14,
QMI_NAS_ACTIVE_BAND_BC_15 = 15,
QMI_NAS_ACTIVE_BAND_BC_16 = 16,
QMI_NAS_ACTIVE_BAND_BC_17 = 17,
QMI_NAS_ACTIVE_BAND_BC_18 = 18,
QMI_NAS_ACTIVE_BAND_BC_19 = 19,
QMI_NAS_ACTIVE_BAND_GSM_450 = 40,
QMI_NAS_ACTIVE_BAND_GSM_480 = 41,
QMI_NAS_ACTIVE_BAND_GSM_750 = 42,
QMI_NAS_ACTIVE_BAND_GSM_850 = 43,
QMI_NAS_ACTIVE_BAND_GSM_900_EXTENDED = 44,
QMI_NAS_ACTIVE_BAND_GSM_900_PRIMARY = 45,
QMI_NAS_ACTIVE_BAND_GSM_900_RAILWAYS = 46,
QMI_NAS_ACTIVE_BAND_GSM_1800 = 47,
QMI_NAS_ACTIVE_BAND_GSM_1900 = 48,
QMI_NAS_ACTIVE_BAND_WCDMA_2100 = 80,
QMI_NAS_ACTIVE_BAND_WCDMA_PCS_1900 = 81,
QMI_NAS_ACTIVE_BAND_WCDMA_DCS_1800 = 82,
QMI_NAS_ACTIVE_BAND_WCDMA_1700_US = 83,
QMI_NAS_ACTIVE_BAND_WCDMA_850 = 84,
QMI_NAS_ACTIVE_BAND_WCDMA_800 = 85,
QMI_NAS_ACTIVE_BAND_WCDMA_2600 = 86,
QMI_NAS_ACTIVE_BAND_WCDMA_900 = 87,
QMI_NAS_ACTIVE_BAND_WCDMA_1700_JAPAN = 88,
QMI_NAS_ACTIVE_BAND_WCDMA_1500_JAPAN = 90,
QMI_NAS_ACTIVE_BAND_WCDMA_850_JAPAN = 91,
QMI_NAS_ACTIVE_BAND_EUTRA_1 = 120,
QMI_NAS_ACTIVE_BAND_EUTRA_2 = 121,
QMI_NAS_ACTIVE_BAND_EUTRA_3 = 122,
QMI_NAS_ACTIVE_BAND_EUTRA_4 = 123,
QMI_NAS_ACTIVE_BAND_EUTRA_5 = 124,
QMI_NAS_ACTIVE_BAND_EUTRA_6 = 125,
QMI_NAS_ACTIVE_BAND_EUTRA_7 = 126,
QMI_NAS_ACTIVE_BAND_EUTRA_8 = 127,
QMI_NAS_ACTIVE_BAND_EUTRA_9 = 128,
QMI_NAS_ACTIVE_BAND_EUTRA_10 = 129,
QMI_NAS_ACTIVE_BAND_EUTRA_11 = 130,
QMI_NAS_ACTIVE_BAND_EUTRA_12 = 131,
QMI_NAS_ACTIVE_BAND_EUTRA_13 = 132,
QMI_NAS_ACTIVE_BAND_EUTRA_14 = 133,
QMI_NAS_ACTIVE_BAND_EUTRA_17 = 134,
QMI_NAS_ACTIVE_BAND_EUTRA_18 = 143,
QMI_NAS_ACTIVE_BAND_EUTRA_19 = 144,
QMI_NAS_ACTIVE_BAND_EUTRA_20 = 145,
QMI_NAS_ACTIVE_BAND_EUTRA_21 = 146,
QMI_NAS_ACTIVE_BAND_EUTRA_24 = 147,
QMI_NAS_ACTIVE_BAND_EUTRA_25 = 148,
QMI_NAS_ACTIVE_BAND_EUTRA_33 = 135,
QMI_NAS_ACTIVE_BAND_EUTRA_34 = 136,
QMI_NAS_ACTIVE_BAND_EUTRA_35 = 137,
QMI_NAS_ACTIVE_BAND_EUTRA_36 = 138,
QMI_NAS_ACTIVE_BAND_EUTRA_37 = 139,
QMI_NAS_ACTIVE_BAND_EUTRA_38 = 140,
QMI_NAS_ACTIVE_BAND_EUTRA_39 = 141,
QMI_NAS_ACTIVE_BAND_EUTRA_40 = 142,
QMI_NAS_ACTIVE_BAND_EUTRA_41 = 149,
QMI_NAS_ACTIVE_BAND_EUTRA_42 = 150,
QMI_NAS_ACTIVE_BAND_EUTRA_43 = 151,
QMI_NAS_ACTIVE_BAND_TDSCDMA_A = 200,
QMI_NAS_ACTIVE_BAND_TDSCDMA_B = 201,
QMI_NAS_ACTIVE_BAND_TDSCDMA_C = 202,
QMI_NAS_ACTIVE_BAND_TDSCDMA_D = 203,
QMI_NAS_ACTIVE_BAND_TDSCDMA_E = 204,
QMI_NAS_ACTIVE_BAND_TDSCDMA_F = 205
} QmiNasActiveBand;
/**
* QmiNasNetworkServiceDomain:
* @QMI_NAS_NETWORK_SERVICE_DOMAIN_CS: Circuit switched.
* @QMI_NAS_NETWORK_SERVICE_DOMAIN_PS: Packet switched.
* @QMI_NAS_NETWORK_SERVICE_DOMAIN_CS_PS: Circuit and packet switched.
*
* Network Service Domain.
*/
typedef enum {
QMI_NAS_NETWORK_SERVICE_DOMAIN_CS = 1,
QMI_NAS_NETWORK_SERVICE_DOMAIN_PS = 2,
QMI_NAS_NETWORK_SERVICE_DOMAIN_CS_PS = 3,
} QmiNasNetworkServiceDomain;
/**
* QmiNasEvdoSinrLevel:
* @QMI_NAS_EVDO_SINR_LEVEL_0: -9 dB.
* @QMI_NAS_EVDO_SINR_LEVEL_1: -6 dB.
* @QMI_NAS_EVDO_SINR_LEVEL_2: -4.5 dB.
* @QMI_NAS_EVDO_SINR_LEVEL_3: -3 dB.
* @QMI_NAS_EVDO_SINR_LEVEL_4: -2 dB.
* @QMI_NAS_EVDO_SINR_LEVEL_5: +1 dB.
* @QMI_NAS_EVDO_SINR_LEVEL_6: +3 dB.
* @QMI_NAS_EVDO_SINR_LEVEL_7: +6 dB.
* @QMI_NAS_EVDO_SINR_LEVEL_8: +9 dB.
*
* EV-DO SINR level.
*/
typedef enum {
QMI_NAS_EVDO_SINR_LEVEL_0 = 0,
QMI_NAS_EVDO_SINR_LEVEL_1 = 1,
QMI_NAS_EVDO_SINR_LEVEL_2 = 2,
QMI_NAS_EVDO_SINR_LEVEL_3 = 3,
QMI_NAS_EVDO_SINR_LEVEL_4 = 4,
QMI_NAS_EVDO_SINR_LEVEL_5 = 5,
QMI_NAS_EVDO_SINR_LEVEL_6 = 6,
QMI_NAS_EVDO_SINR_LEVEL_7 = 7,
QMI_NAS_EVDO_SINR_LEVEL_8 = 8
} QmiNasEvdoSinrLevel;
#endif /* _LIBQMI_GLIB_QMI_ENUMS_NAS_H_ */
|