Debian Codegraph @

src/libqmi-glib/qmi-flags64-dms.h

raw
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * libqmi-glib -- GLib/GIO based library to control QMI devices
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301 USA.
19 *
20 * Copyright (C) 2012 Lanedo GmbH.
21 * Copyright (C) 2012 Google, Inc.
22 * Copyright (C) 2012-2017 Aleksander Morgado <[email protected]>
23 */
24
25 #ifndef _LIBQMI_GLIB_QMI_FLAGS64_DMS_H_
26 #define _LIBQMI_GLIB_QMI_FLAGS64_DMS_H_
27
28 #if !defined (__LIBQMI_GLIB_H_INSIDE__) && !defined (LIBQMI_GLIB_COMPILATION)
29 #error "Only <libqmi-glib.h> can be included directly."
30 #endif
31
32 #include <glib.h>
33
34 /*****************************************************************************/
35 /* Helper enums for the 'QMI DMS Get Band Capability' message */
36
37 /**
38 * QmiDmsBandCapability:
39 * @QMI_DMS_BAND_CAPABILITY_BC_0_A_SYSTEM: Band class 0, A-system.
40 * @QMI_DMS_BAND_CAPABILITY_BC_0_B_SYSTEM: Band class 0, B-system.
41 * @QMI_DMS_BAND_CAPABILITY_BC_1_ALL_BLOCKS: Band class 1, all blocks.
42 * @QMI_DMS_BAND_CAPABILITY_BC_2: Band class 2.
43 * @QMI_DMS_BAND_CAPABILITY_BC_3_A_SYSTEM: Band class 3, A-system.
44 * @QMI_DMS_BAND_CAPABILITY_BC_4_ALL_BLOCKS: Band class 4, all blocks.
45 * @QMI_DMS_BAND_CAPABILITY_BC_5_ALL_BLOCKS: Band class 5, all blocks.
46 * @QMI_DMS_BAND_CAPABILITY_BC_6: Band class 6.
47 * @QMI_DMS_BAND_CAPABILITY_BC_7: Band class 7.
48 * @QMI_DMS_BAND_CAPABILITY_BC_8: Band class 8.
49 * @QMI_DMS_BAND_CAPABILITY_BC_9: Band class 9.
50 * @QMI_DMS_BAND_CAPABILITY_BC_10: Band class 10.
51 * @QMI_DMS_BAND_CAPABILITY_BC_11: Band class 11.
52 * @QMI_DMS_BAND_CAPABILITY_BC_12: Band class 12.
53 * @QMI_DMS_BAND_CAPABILITY_BC_14: Band class 14.
54 * @QMI_DMS_BAND_CAPABILITY_BC_15: Band class 15.
55 * @QMI_DMS_BAND_CAPABILITY_BC_16: Band class 16.
56 * @QMI_DMS_BAND_CAPABILITY_BC_17: Band class 17.
57 * @QMI_DMS_BAND_CAPABILITY_BC_18: Band class 18.
58 * @QMI_DMS_BAND_CAPABILITY_BC_19: Band class 19.
59 * @QMI_DMS_BAND_CAPABILITY_GSM_DCS_1800: GSM DCS band.
60 * @QMI_DMS_BAND_CAPABILITY_GSM_900_EXTENDED: GSM Extended GSM band (900).
61 * @QMI_DMS_BAND_CAPABILITY_GSM_900_PRIMARY: GSM Primary GSM band (900).
62 * @QMI_DMS_BAND_CAPABILITY_GSM_450: GSM 450 band.
63 * @QMI_DMS_BAND_CAPABILITY_GSM_480: GSM 480 band.
64 * @QMI_DMS_BAND_CAPABILITY_GSM_750: GSM 750 band.
65 * @QMI_DMS_BAND_CAPABILITY_GSM_850: GSM 850 band.
66 * @QMI_DMS_BAND_CAPABILITY_GSM_900_RAILWAYS: GSM railways band (900).
67 * @QMI_DMS_BAND_CAPABILITY_GSM_PCS_1900: GSM PCS band (1900).
68 * @QMI_DMS_BAND_CAPABILITY_WCDMA_2100: WCDMA 2100 band (Europe, Japan, China).
69 * @QMI_DMS_BAND_CAPABILITY_WCDMA_PCS_1900: WCDMA PCS 1900 band (US).
70 * @QMI_DMS_BAND_CAPABILITY_WCDMA_DCS_1800: WCDMA DCS 1800 band (Europe, China).
71 * @QMI_DMS_BAND_CAPABILITY_WCDMA_1700_US: WCDMA 1700 band (US).
72 * @QMI_DMS_BAND_CAPABILITY_WCDMA_850_US: WCDMA 850 band (US).
73 * @QMI_DMS_BAND_CAPABILITY_WCDMA_800: QWCDMA 850 band (Japan).
74 * @QMI_DMS_BAND_CAPABILITY_WCDMA_2600: WCDMA 2600 band (Europe).
75 * @QMI_DMS_BAND_CAPABILITY_WCDMA_900: WCDMA 900 band (Europe, Japan).
76 * @QMI_DMS_BAND_CAPABILITY_WCDMA_1700_JAPAN: WCDMA 1700 band (Japan).
77 * @QMI_DMS_BAND_CAPABILITY_WCDMA_850_JAPAN: WCDMA 850 band (Japan)
78 * @QMI_DMS_BAND_CAPABILITY_WCDMA_1500: WCDMA 1500 band.
79 *
80 * Frequency band capabilities.
81 *
82 * This type is bit to bit compatible with #QmiNasBandPreference.
83 *
84 * Since: 1.0
85 */
86 typedef enum { /*< since=1.0 >*/
87 QMI_DMS_BAND_CAPABILITY_BC_0_A_SYSTEM = 1 << 0,
88 QMI_DMS_BAND_CAPABILITY_BC_0_B_SYSTEM = 1 << 1,
89 QMI_DMS_BAND_CAPABILITY_BC_1_ALL_BLOCKS = 1 << 2,
90 QMI_DMS_BAND_CAPABILITY_BC_2 = 1 << 3,
91 QMI_DMS_BAND_CAPABILITY_BC_3_A_SYSTEM = 1 << 4,
92 QMI_DMS_BAND_CAPABILITY_BC_4_ALL_BLOCKS = 1 << 5,
93 QMI_DMS_BAND_CAPABILITY_BC_5_ALL_BLOCKS = 1 << 6,
94 QMI_DMS_BAND_CAPABILITY_GSM_DCS_1800 = 1 << 7,
95 QMI_DMS_BAND_CAPABILITY_GSM_900_EXTENDED = 1 << 8,
96 QMI_DMS_BAND_CAPABILITY_GSM_900_PRIMARY = 1 << 9,
97 QMI_DMS_BAND_CAPABILITY_BC_6 = 1 << 10,
98 QMI_DMS_BAND_CAPABILITY_BC_7 = 1 << 11,
99 QMI_DMS_BAND_CAPABILITY_BC_8 = 1 << 12,
100 QMI_DMS_BAND_CAPABILITY_BC_9 = 1 << 13,
101 QMI_DMS_BAND_CAPABILITY_BC_10 = 1 << 14,
102 QMI_DMS_BAND_CAPABILITY_BC_11 = 1 << 15,
103 QMI_DMS_BAND_CAPABILITY_GSM_450 = 1 << 16,
104 QMI_DMS_BAND_CAPABILITY_GSM_480 = 1 << 17,
105 QMI_DMS_BAND_CAPABILITY_GSM_750 = 1 << 18,
106 QMI_DMS_BAND_CAPABILITY_GSM_850 = 1 << 19,
107 QMI_DMS_BAND_CAPABILITY_GSM_900_RAILWAYS = 1 << 20,
108 QMI_DMS_BAND_CAPABILITY_GSM_PCS_1900 = 1 << 21,
109 QMI_DMS_BAND_CAPABILITY_WCDMA_2100 = 1 << 22,
110 QMI_DMS_BAND_CAPABILITY_WCDMA_PCS_1900 = 1 << 23,
111 QMI_DMS_BAND_CAPABILITY_WCDMA_DCS_1800 = 1 << 24,
112 QMI_DMS_BAND_CAPABILITY_WCDMA_1700_US = 1 << 25,
113 QMI_DMS_BAND_CAPABILITY_WCDMA_850_US = 1 << 26,
114 QMI_DMS_BAND_CAPABILITY_WCDMA_800 = 1 << 27,
115 QMI_DMS_BAND_CAPABILITY_BC_12 = 1 << 28,
116 QMI_DMS_BAND_CAPABILITY_BC_14 = 1 << 29,
117 /* Bit 30 reserved */
118 QMI_DMS_BAND_CAPABILITY_BC_15 = ((guint64) 1) << 31,
119 /* Bits 32-47 reserved */
120 QMI_DMS_BAND_CAPABILITY_WCDMA_2600 = ((guint64) 1) << 48,
121 QMI_DMS_BAND_CAPABILITY_WCDMA_900 = ((guint64) 1) << 49,
122 QMI_DMS_BAND_CAPABILITY_WCDMA_1700_JAPAN = ((guint64) 1) << 50,
123 /* Bits 51-55 reserved */
124 QMI_DMS_BAND_CAPABILITY_BC_16 = ((guint64) 1) << 56,
125 QMI_DMS_BAND_CAPABILITY_BC_17 = ((guint64) 1) << 57,
126 QMI_DMS_BAND_CAPABILITY_BC_18 = ((guint64) 1) << 58,
127 QMI_DMS_BAND_CAPABILITY_BC_19 = ((guint64) 1) << 59,
128 QMI_DMS_BAND_CAPABILITY_WCDMA_850_JAPAN = ((guint64) 1) << 60,
129 QMI_DMS_BAND_CAPABILITY_WCDMA_1500 = ((guint64) 1) << 61,
130 /* Bits 62-63 reserved */
131 } QmiDmsBandCapability;
132
133 /**
134 * QmiDmsLteBandCapability:
135 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_1: LTE EUTRAN Band 1
136 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_2: LTE EUTRAN Band 2.
137 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_3: LTE EUTRAN Band 3.
138 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_4: LTE EUTRAN Band 4.
139 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_5: LTE EUTRAN Band 5.
140 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_6: LTE EUTRAN Band 6.
141 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_7: LTE EUTRAN Band 7.
142 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_8: LTE EUTRAN Band 8.
143 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_9: LTE EUTRAN Band 9.
144 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_10: LTE EUTRAN Band 10.
145 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_11: LTE EUTRAN Band 11.
146 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_12: LTE EUTRAN Band 12.
147 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_13: LTE EUTRAN Band 13.
148 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_14: LTE EUTRAN Band 14.
149 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_17: LTE EUTRAN Band 17.
150 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_18: LTE EUTRAN Band 18.
151 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_19: LTE EUTRAN Band 19.
152 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_20: LTE EUTRAN Band 20.
153 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_21: LTE EUTRAN Band 21.
154 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_24: LTE EUTRAN Band 24.
155 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_25: LTE EUTRAN Band 25.
156 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_26: LTE EUTRAN Band 26.
157 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_27: LTE EUTRAN Band 27.
158 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_28: LTE EUTRAN Band 28.
159 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_29: LTE EUTRAN Band 29.
160 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_30: LTE EUTRAN Band 30.
161 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_31: LTE EUTRAN Band 31.
162 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_32: LTE EUTRAN Band 32.
163 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_33: LTE EUTRAN Band 33.
164 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_34: LTE EUTRAN Band 34.
165 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_35: LTE EUTRAN Band 35.
166 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_36: LTE EUTRAN Band 36.
167 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_37: LTE EUTRAN Band 37.
168 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_38: LTE EUTRAN Band 38.
169 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_39: LTE EUTRAN Band 39.
170 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_40: LTE EUTRAN Band 40.
171 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_41: LTE EUTRAN Band 41.
172 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_42: LTE EUTRAN Band 42.
173 * @QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_43: LTE EUTRAN Band 43.
174 *
175 * LTE-specific Frequency bands.
176 *
177 * Since: 1.0
178 */
179 typedef enum { /*< since=1.0 >*/
180 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_1 = 1 << 0,
181 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_2 = 1 << 1,
182 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_3 = 1 << 2,
183 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_4 = 1 << 3,
184 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_5 = 1 << 4,
185 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_6 = 1 << 5,
186 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_7 = 1 << 6,
187 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_8 = 1 << 7,
188 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_9 = 1 << 8,
189 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_10 = 1 << 9,
190 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_11 = 1 << 10,
191 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_12 = 1 << 11,
192 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_13 = 1 << 12,
193 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_14 = 1 << 13,
194 /* Bit 14-15 reserved */
195 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_17 = 1 << 16,
196 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_18 = 1 << 17,
197 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_19 = 1 << 18,
198 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_20 = 1 << 19,
199 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_21 = 1 << 20,
200 /* Bit 21-22 reserved */
201 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_24 = 1 << 23,
202 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_25 = 1 << 24,
203 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_26 = 1 << 25,
204 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_27 = 1 << 26,
205 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_28 = 1 << 27,
206 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_29 = 1 << 28,
207 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_30 = 1 << 29,
208 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_31 = 1 << 30,
209 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_32 = ((guint64) 1) << 31,
210 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_33 = ((guint64) 1) << 32,
211 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_34 = ((guint64) 1) << 33,
212 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_35 = ((guint64) 1) << 34,
213 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_36 = ((guint64) 1) << 35,
214 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_37 = ((guint64) 1) << 36,
215 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_38 = ((guint64) 1) << 37,
216 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_39 = ((guint64) 1) << 38,
217 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_40 = ((guint64) 1) << 39,
218 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_41 = ((guint64) 1) << 40,
219 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_42 = ((guint64) 1) << 41,
220 QMI_DMS_LTE_BAND_CAPABILITY_EUTRAN_43 = ((guint64) 1) << 42
221 /* Bit 43-64 reserved */
222 } QmiDmsLteBandCapability;
223
224 #endif /* _LIBQMI_GLIB_QMI_FLAGS64_DMS_H_ */