Debian Codegraph @

src/libqmi-glib/qmi-enums-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-2017 Aleksander Morgado <[email protected]>
22 */
23
24 #ifndef _LIBQMI_GLIB_QMI_ENUMS_DMS_H_
25 #define _LIBQMI_GLIB_QMI_ENUMS_DMS_H_
26
27 #include <glib.h>
28
29 #if !defined (__LIBQMI_GLIB_H_INSIDE__) && !defined (LIBQMI_GLIB_COMPILATION)
30 #error "Only <libqmi-glib.h> can be included directly."
31 #endif
32
33 /**
34 * SECTION: qmi-enums-dms
35 * @title: DMS enumerations and flags
36 * @short_description: Enumerations and flags in the DMS service.
37 *
38 * This section defines enumerations and flags used in the DMS service
39 * interface.
40 */
41
42 /*****************************************************************************/
43 /* Helper enums for the 'QMI DMS Get Capabilities' message */
44
45 /**
46 * QmiDmsDataServiceCapability:
47 * @QMI_DMS_DATA_SERVICE_CAPABILITY_NONE: No data services supported.
48 * @QMI_DMS_DATA_SERVICE_CAPABILITY_CS: Only CS supported.
49 * @QMI_DMS_DATA_SERVICE_CAPABILITY_PS: Only PS supported.
50 * @QMI_DMS_DATA_SERVICE_CAPABILITY_SIMULTANEOUS_CS_PS: Simultaneous CS and PS supported.
51 * @QMI_DMS_DATA_SERVICE_CAPABILITY_NON_SIMULTANEOUS_CS_PS: Non simultaneous CS and PS supported.
52 *
53 * Data service capability.
54 *
55 * Since: 1.0
56 */
57 typedef enum { /*< since=1.0 >*/
58 QMI_DMS_DATA_SERVICE_CAPABILITY_NONE = 0,
59 QMI_DMS_DATA_SERVICE_CAPABILITY_CS = 1,
60 QMI_DMS_DATA_SERVICE_CAPABILITY_PS = 2,
61 QMI_DMS_DATA_SERVICE_CAPABILITY_SIMULTANEOUS_CS_PS = 3,
62 QMI_DMS_DATA_SERVICE_CAPABILITY_NON_SIMULTANEOUS_CS_PS = 4
63 } QmiDmsDataServiceCapability;
64
65 /**
66 * QmiDmsSimCapability:
67 * @QMI_DMS_SIM_CAPABILITY_NOT_SUPPORTED: SIM not supported.
68 * @QMI_DMS_SIM_CAPABILITY_SUPPORTED: SIM is supported.
69 *
70 * SIM capability.
71 *
72 * Since: 1.0
73 */
74 typedef enum { /*< since=1.0 >*/
75 QMI_DMS_SIM_CAPABILITY_NOT_SUPPORTED = 1,
76 QMI_DMS_SIM_CAPABILITY_SUPPORTED = 2
77 } QmiDmsSimCapability;
78
79 /**
80 * QmiDmsRadioInterface:
81 * @QMI_DMS_RADIO_INTERFACE_CDMA20001X: CDMA2000 1x.
82 * @QMI_DMS_RADIO_INTERFACE_EVDO: CDMA2000 HRPD (1xEV-DO)
83 * @QMI_DMS_RADIO_INTERFACE_GSM: GSM.
84 * @QMI_DMS_RADIO_INTERFACE_UMTS: UMTS.
85 * @QMI_DMS_RADIO_INTERFACE_LTE: LTE.
86 * @QMI_DMS_RADIO_INTERFACE_TDS: TDS. Since 1.32.
87 * @QMI_DMS_RADIO_INTERFACE_5GNR: 5G NR. Since 1.26.
88 *
89 * Radio interface type.
90 *
91 * Since: 1.0
92 */
93 typedef enum { /*< since=1.0 >*/
94 QMI_DMS_RADIO_INTERFACE_CDMA20001X = 1,
95 QMI_DMS_RADIO_INTERFACE_EVDO = 2,
96 QMI_DMS_RADIO_INTERFACE_GSM = 4,
97 QMI_DMS_RADIO_INTERFACE_UMTS = 5,
98 QMI_DMS_RADIO_INTERFACE_LTE = 8,
99 QMI_DMS_RADIO_INTERFACE_TDS = 9,
100 QMI_DMS_RADIO_INTERFACE_5GNR = 10,
101 } QmiDmsRadioInterface;
102
103 /*****************************************************************************/
104 /* Helper enums for the 'QMI DMS Get Power State' message */
105
106 /**
107 * QmiDmsPowerState:
108 * @QMI_DMS_POWER_STATE_EXTERNAL_SOURCE: Powered by an external source.
109 * @QMI_DMS_POWER_STATE_BATTERY_CONNECTED: Battery is connected.
110 * @QMI_DMS_POWER_STATE_BATTERY_CHARGING: Battery is currently being charged.
111 * @QMI_DMS_POWER_STATE_FAULT: Recognized power fault.
112 *
113 * Flags specifying the current power state.
114 *
115 * If @QMI_DMS_POWER_STATE_EXTERNAL_SOURCE is set, the device is powerered by an
116 * external source; otherwise it is powered by a battery.
117 *
118 * If @QMI_DMS_POWER_STATE_BATTERY_CONNECTED is set, the battery is connected;
119 * otherwise the battery is not connected.
120 *
121 * If @QMI_DMS_POWER_STATE_BATTERY_CHARGING is set, the battery is being charged;
122 * otherwise the battery is not being charged.
123 *
124 * If @QMI_DMS_POWER_STATE_FAULT is set, a power fault has been detected.
125 *
126 * Since: 1.0
127 */
128 typedef enum { /*< since=1.0 >*/
129 QMI_DMS_POWER_STATE_EXTERNAL_SOURCE = 1 << 0,
130 QMI_DMS_POWER_STATE_BATTERY_CONNECTED = 1 << 1,
131 QMI_DMS_POWER_STATE_BATTERY_CHARGING = 1 << 2,
132 QMI_DMS_POWER_STATE_FAULT = 1 << 3,
133 } QmiDmsPowerState;
134
135 /*****************************************************************************/
136 /* Helper enums for the 'QMI DMS UIM Set PIN Protection' message */
137
138 /**
139 * QmiDmsUimPinId:
140 * @QMI_DMS_UIM_PIN_ID_PIN: PIN.
141 * @QMI_DMS_UIM_PIN_ID_PIN2: PIN2.
142 *
143 * The PIN identifier.
144 *
145 * Since: 1.0
146 */
147 typedef enum { /*< since=1.0 >*/
148 QMI_DMS_UIM_PIN_ID_PIN = 1,
149 QMI_DMS_UIM_PIN_ID_PIN2 = 2
150 } QmiDmsUimPinId;
151
152 /*****************************************************************************/
153 /* Helper enums for the 'QMI DMS UIM Get PIN Status' message */
154
155 /**
156 * QmiDmsUimPinStatus:
157 * @QMI_DMS_UIM_PIN_STATUS_NOT_INITIALIZED: Not initialized.
158 * @QMI_DMS_UIM_PIN_STATUS_ENABLED_NOT_VERIFIED: Enabled, not verified.
159 * @QMI_DMS_UIM_PIN_STATUS_ENABLED_VERIFIED: Enabled, verified.
160 * @QMI_DMS_UIM_PIN_STATUS_DISABLED: Disabled.
161 * @QMI_DMS_UIM_PIN_STATUS_BLOCKED: Blocked.
162 * @QMI_DMS_UIM_PIN_STATUS_PERMANENTLY_BLOCKED: Permanently Blocked.
163 * @QMI_DMS_UIM_PIN_STATUS_UNBLOCKED: Unblocked.
164 * @QMI_DMS_UIM_PIN_STATUS_CHANGED: Changed.
165 *
166 * The PIN status.
167 *
168 * Since: 1.0
169 */
170 typedef enum { /*< since=1.0 >*/
171 QMI_DMS_UIM_PIN_STATUS_NOT_INITIALIZED = 0,
172 QMI_DMS_UIM_PIN_STATUS_ENABLED_NOT_VERIFIED = 1,
173 QMI_DMS_UIM_PIN_STATUS_ENABLED_VERIFIED = 2,
174 QMI_DMS_UIM_PIN_STATUS_DISABLED = 3,
175 QMI_DMS_UIM_PIN_STATUS_BLOCKED = 4,
176 QMI_DMS_UIM_PIN_STATUS_PERMANENTLY_BLOCKED = 5,
177 QMI_DMS_UIM_PIN_STATUS_UNBLOCKED = 6,
178 QMI_DMS_UIM_PIN_STATUS_CHANGED = 7,
179 } QmiDmsUimPinStatus;
180
181 /*****************************************************************************/
182 /* Helper enums for the 'QMI DMS Get Operating Mode' message */
183
184 /**
185 * QmiDmsOperatingMode:
186 * @QMI_DMS_OPERATING_MODE_ONLINE: Device can acquire a system and make calls.
187 * @QMI_DMS_OPERATING_MODE_LOW_POWER: Device has temporarily disabled RF.
188 * @QMI_DMS_OPERATING_MODE_PERSISTENT_LOW_POWER: Device has disabled RF and state persists even after a reset.
189 * @QMI_DMS_OPERATING_MODE_FACTORY_TEST: Special mode for manufacturer tests.
190 * @QMI_DMS_OPERATING_MODE_OFFLINE: Device has deactivated RF and is partially shutdown.
191 * @QMI_DMS_OPERATING_MODE_RESET: Device is in the process of power cycling.
192 * @QMI_DMS_OPERATING_MODE_SHUTTING_DOWN: Device is in the process of shutting down.
193 * @QMI_DMS_OPERATING_MODE_MODE_ONLY_LOW_POWER: Mode-only Low Power.
194 * @QMI_DMS_OPERATING_MODE_UNKNOWN: Unknown.
195 *
196 * Operating mode of the device.
197 *
198 * Since: 1.0
199 */
200 typedef enum { /*< since=1.0 >*/
201 QMI_DMS_OPERATING_MODE_ONLINE = 0,
202 QMI_DMS_OPERATING_MODE_LOW_POWER = 1,
203 QMI_DMS_OPERATING_MODE_FACTORY_TEST = 2,
204 QMI_DMS_OPERATING_MODE_OFFLINE = 3,
205 QMI_DMS_OPERATING_MODE_RESET = 4,
206 QMI_DMS_OPERATING_MODE_SHUTTING_DOWN = 5,
207 QMI_DMS_OPERATING_MODE_PERSISTENT_LOW_POWER = 6,
208 QMI_DMS_OPERATING_MODE_MODE_ONLY_LOW_POWER = 7,
209 QMI_DMS_OPERATING_MODE_UNKNOWN = 0xFF
210 } QmiDmsOperatingMode;
211
212 /**
213 * QmiDmsOfflineReason:
214 * @QMI_DMS_OFFLINE_REASON_HOST_IMAGE_MISCONFIGURATION: Host image misconfiguration.
215 * @QMI_DMS_OFFLINE_REASON_PRI_IMAGE_MISCONFIGURATION: PRI image misconfiguration.
216 * @QMI_DMS_OFFLINE_REASON_PRI_VERSION_INCOMPATIBLE: PRI version incompatible.
217 * @QMI_DMS_OFFLINE_REASON_DEVICE_MEMORY_FULL: Memory full, cannot copy PRI information.
218 *
219 * Reasons for being in Offline (@QMI_DMS_OPERATING_MODE_OFFLINE) state.
220 *
221 * Since: 1.0
222 */
223 typedef enum { /*< since=1.0 >*/
224 QMI_DMS_OFFLINE_REASON_HOST_IMAGE_MISCONFIGURATION = 1 << 0,
225 QMI_DMS_OFFLINE_REASON_PRI_IMAGE_MISCONFIGURATION = 1 << 1,
226 QMI_DMS_OFFLINE_REASON_PRI_VERSION_INCOMPATIBLE = 1 << 2,
227 QMI_DMS_OFFLINE_REASON_DEVICE_MEMORY_FULL = 1 << 3
228 } QmiDmsOfflineReason;
229
230 /*****************************************************************************/
231 /* Helper enums for the 'QMI DMS Get Time' message */
232
233 /**
234 * QmiDmsTimeSource:
235 * @QMI_DMS_TIME_SOURCE_DEVICE: 32 kHz device clock.
236 * @QMI_DMS_TIME_SOURCE_CDMA_NETWORK: CDMA network.
237 * @QMI_DMS_TIME_SOURCE_HDR_NETWORK: HDR network.
238 *
239 * Source of the timestamp.
240 *
241 * Since: 1.0
242 */
243 typedef enum { /*< since=1.0 >*/
244 QMI_DMS_TIME_SOURCE_DEVICE = 0,
245 QMI_DMS_TIME_SOURCE_CDMA_NETWORK = 1,
246 QMI_DMS_TIME_SOURCE_HDR_NETWORK = 2,
247 } QmiDmsTimeSource;
248
249 /*****************************************************************************/
250 /* Helper enums for the 'QMI DMS Get Activation State' message */
251
252 /**
253 * QmiDmsActivationState:
254 * @QMI_DMS_ACTIVATION_STATE_NOT_ACTIVATED: Service not activated.
255 * @QMI_DMS_ACTIVATION_STATE_ACTIVATED: Service is activated.
256 * @QMI_DMS_ACTIVATION_STATE_CONNECTING: Connection in progress for automatic activation.
257 * @QMI_DMS_ACTIVATION_STATE_CONNECTED: Connection connected for automatic activation.
258 * @QMI_DMS_ACTIVATION_STATE_OTASP_AUTHENTICATED: OTASP security authenticated.
259 * @QMI_DMS_ACTIVATION_STATE_OTASP_NAM: OTASP NAM downloaded.
260 * @QMI_DMS_ACTIVATION_STATE_OTASP_MDN: OTASP MDN downloaded.
261 * @QMI_DMS_ACTIVATION_STATE_OTASP_IMSI: OTASP IMSI downloaded.
262 * @QMI_DMS_ACTIVATION_STATE_OTASP_PRL: OTASP PRL downloaded.
263 * @QMI_DMS_ACTIVATION_STATE_OTASP_SPC: OTASP SPC downloaded.
264 * @QMI_DMS_ACTIVATION_STATE_OTASP_COMMITED: OTASP settings committed.
265 *
266 * State of the service activation.
267 *
268 * Since: 1.0
269 */
270 typedef enum { /*< since=1.0 >*/
271 QMI_DMS_ACTIVATION_STATE_NOT_ACTIVATED = 0x00,
272 QMI_DMS_ACTIVATION_STATE_ACTIVATED = 0x01,
273 QMI_DMS_ACTIVATION_STATE_CONNECTING = 0x02,
274 QMI_DMS_ACTIVATION_STATE_CONNECTED = 0x03,
275 QMI_DMS_ACTIVATION_STATE_OTASP_AUTHENTICATED = 0x04,
276 QMI_DMS_ACTIVATION_STATE_OTASP_NAM = 0x05,
277 QMI_DMS_ACTIVATION_STATE_OTASP_MDN = 0x06,
278 QMI_DMS_ACTIVATION_STATE_OTASP_IMSI = 0x07,
279 QMI_DMS_ACTIVATION_STATE_OTASP_PRL = 0x08,
280 QMI_DMS_ACTIVATION_STATE_OTASP_SPC = 0x09,
281 QMI_DMS_ACTIVATION_STATE_OTASP_COMMITED = 0x0A
282 } QmiDmsActivationState;
283
284 /*****************************************************************************/
285 /* Helper enums for the 'QMI DMS UIM Get CK Status' message */
286
287 /**
288 * QmiDmsUimFacility:
289 * @QMI_DMS_UIM_FACILITY_PN: Network personalization facility.
290 * @QMI_DMS_UIM_FACILITY_PU: Network subset personalization facility.
291 * @QMI_DMS_UIM_FACILITY_PP: Service provider facility.
292 * @QMI_DMS_UIM_FACILITY_PC: Corporate personalization facility.
293 * @QMI_DMS_UIM_FACILITY_PF: UIM personalization facility.
294 *
295 * UIM personalization facilities.
296 *
297 * Since: 1.0
298 */
299 typedef enum { /*< since=1.0 >*/
300 QMI_DMS_UIM_FACILITY_PN = 0,
301 QMI_DMS_UIM_FACILITY_PU = 1,
302 QMI_DMS_UIM_FACILITY_PP = 2,
303 QMI_DMS_UIM_FACILITY_PC = 3,
304 QMI_DMS_UIM_FACILITY_PF = 4
305 } QmiDmsUimFacility;
306
307 /**
308 * QmiDmsUimFacilityState:
309 * @QMI_DMS_UIM_FACILITY_STATE_DEACTIVATED: Facility is deactivated.
310 * @QMI_DMS_UIM_FACILITY_STATE_ACTIVATED: Facility is activated.
311 * @QMI_DMS_UIM_FACILITY_STATE_BLOCKED: Facility is blocked.
312 *
313 * State of the UIM facility.
314 *
315 * Since: 1.0
316 */
317 typedef enum { /*< since=1.0 >*/
318 QMI_DMS_UIM_FACILITY_STATE_DEACTIVATED = 0,
319 QMI_DMS_UIM_FACILITY_STATE_ACTIVATED = 1,
320 QMI_DMS_UIM_FACILITY_STATE_BLOCKED = 2
321 } QmiDmsUimFacilityState;
322
323 /*****************************************************************************/
324 /* Helper enums for the 'QMI DMS UIM Get State' message */
325
326 /**
327 * QmiDmsUimState:
328 * @QMI_DMS_UIM_STATE_INITIALIZATION_COMPLETED: UIM initialization completed.
329 * @QMI_DMS_UIM_STATE_LOCKED_OR_FAILED: UIM is locked or failed.
330 * @QMI_DMS_UIM_STATE_NOT_PRESENT: No UIM in the device.
331 * @QMI_DMS_UIM_STATE_RESERVED: Reserved, unknown.
332 * @QMI_DMS_UIM_STATE_UNKNOWN: UIM state currently unavailable.
333 *
334 * State of the UIM.
335 *
336 * Since: 1.0
337 */
338 typedef enum { /*< since=1.0 >*/
339 QMI_DMS_UIM_STATE_INITIALIZATION_COMPLETED = 0x00,
340 QMI_DMS_UIM_STATE_LOCKED_OR_FAILED = 0x01,
341 QMI_DMS_UIM_STATE_NOT_PRESENT = 0x02,
342 QMI_DMS_UIM_STATE_RESERVED = 0x03,
343 QMI_DMS_UIM_STATE_UNKNOWN = 0xFF
344 } QmiDmsUimState;
345
346 /*****************************************************************************/
347 /* Helper enums for the 'QMI DMS Set Time' message */
348
349 /**
350 * QmiDmsTimeReferenceType:
351 * @QMI_DMS_TIME_REFERENCE_TYPE_USER: User time.
352 *
353 * Time reference type.
354 *
355 * Since: 1.0
356 */
357 typedef enum { /*< since=1.0 >*/
358 QMI_DMS_TIME_REFERENCE_TYPE_USER = 0
359 } QmiDmsTimeReferenceType;
360
361 /*****************************************************************************/
362 /* Helper enums for the 'QMI DMS Get Firmware Preference' message */
363
364 /**
365 * QmiDmsFirmwareImageType:
366 * @QMI_DMS_FIRMWARE_IMAGE_TYPE_MODEM: Modem image.
367 * @QMI_DMS_FIRMWARE_IMAGE_TYPE_PRI: PRI image.
368 *
369 * Type of firmware image.
370 *
371 * Since: 1.0
372 */
373 typedef enum { /*< since=1.0 >*/
374 QMI_DMS_FIRMWARE_IMAGE_TYPE_MODEM = 0,
375 QMI_DMS_FIRMWARE_IMAGE_TYPE_PRI = 1
376 } QmiDmsFirmwareImageType;
377
378 /*****************************************************************************/
379 /* Helper enums for the 'QMI DMS Get Boot Image Download Mode' message */
380
381 /**
382 * QmiDmsBootImageDownloadMode:
383 * @QMI_DMS_BOOT_IMAGE_DOWNLOAD_MODE_NORMAL: Normal operation.
384 * @QMI_DMS_BOOT_IMAGE_DOWNLOAD_MODE_BOOT_AND_RECOVERY: Boot and recovery image download mode.
385 *
386 * Specifies the mode for the next boot.
387 *
388 * Since: 1.18
389 */
390 typedef enum { /*< since=1.18 >*/
391 QMI_DMS_BOOT_IMAGE_DOWNLOAD_MODE_NORMAL = 0,
392 QMI_DMS_BOOT_IMAGE_DOWNLOAD_MODE_BOOT_AND_RECOVERY = 1,
393 } QmiDmsBootImageDownloadMode;
394
395 /*****************************************************************************/
396 /* Helper enums for the 'QMI DMS Get MAC Address' message */
397
398 /**
399 * QmiDmsMacType:
400 * @QMI_DMS_MAC_TYPE_WLAN: WLAN MAC address.
401 * @QMI_DMS_MAC_TYPE_BT: Bluetooth MAC address.
402 *
403 * Specifies the device from which the MAC address should be queried.
404 *
405 * Since: 1.26
406 */
407 typedef enum { /*< since=1.26 >*/
408 QMI_DMS_MAC_TYPE_WLAN = 0,
409 QMI_DMS_MAC_TYPE_BT = 1,
410 } QmiDmsMacType;
411
412 /*****************************************************************************/
413 /* Helper enums for the 'QMI DMS HP Change Device Mode' message */
414
415 /**
416 * QmiDmsHpDeviceMode:
417 * @QMI_DMS_HP_DEVICE_MODE_FASTBOOT: Fastboot download mode.
418 *
419 * HP specific device modes.
420 *
421 * Since: 1.18
422 */
423 typedef enum { /*< since=1.18 >*/
424 QMI_DMS_HP_DEVICE_MODE_FASTBOOT = 5,
425 } QmiDmsHpDeviceMode;
426
427 /*****************************************************************************/
428 /* Helper enums for the 'QMI DMS Swi Get USB Composition' message */
429
430 /**
431 * QmiDmsSwiUsbComposition:
432 * @QMI_DMS_SWI_USB_COMPOSITION_UNKNOWN: Unknown.
433 * @QMI_DMS_SWI_USB_COMPOSITION_0: HIP, DM, NMEA, AT, MDM1, MDM2, MDM3, MS.
434 * @QMI_DMS_SWI_USB_COMPOSITION_1: HIP, DM, NMEA, AT, MDM1, MS.
435 * @QMI_DMS_SWI_USB_COMPOSITION_2: HIP, DM, NMEA, AT, NIC1, MS.
436 * @QMI_DMS_SWI_USB_COMPOSITION_3: HIP, DM, NMEA, AT, MDM1, NIC1, MS.
437 * @QMI_DMS_SWI_USB_COMPOSITION_4: HIP, DM, NMEA, AT, NIC1, NIC2, NIC3, MS.
438 * @QMI_DMS_SWI_USB_COMPOSITION_5: HIP, DM, NMEA, AT, ECM1, MS.
439 * @QMI_DMS_SWI_USB_COMPOSITION_6: DM, NMEA, AT, QMI.
440 * @QMI_DMS_SWI_USB_COMPOSITION_7: DM, NMEA, AT, RMNET1, RMNET2, RMNET3.
441 * @QMI_DMS_SWI_USB_COMPOSITION_8: DM, NMEA, AT, MBIM.
442 * @QMI_DMS_SWI_USB_COMPOSITION_9: MBIM.
443 * @QMI_DMS_SWI_USB_COMPOSITION_10: NMEA, MBIM.
444 * @QMI_DMS_SWI_USB_COMPOSITION_11: DM, MBIM.
445 * @QMI_DMS_SWI_USB_COMPOSITION_12: DM, NMEA, MBIM.
446 * @QMI_DMS_SWI_USB_COMPOSITION_13: Dual configuration: USB composition 6 and USB composition 8.
447 * @QMI_DMS_SWI_USB_COMPOSITION_14: Dual configuration: USB composition 6 and USB composition 9.
448 * @QMI_DMS_SWI_USB_COMPOSITION_15: Dual configuration: USB composition 6 and USB composition 10.
449 * @QMI_DMS_SWI_USB_COMPOSITION_16: Dual configuration: USB composition 6 and USB composition 11.
450 * @QMI_DMS_SWI_USB_COMPOSITION_17: Dual configuration: USB composition 6 and USB composition 12.
451 * @QMI_DMS_SWI_USB_COMPOSITION_18: Dual configuration: USB composition 7 and USB composition 8.
452 * @QMI_DMS_SWI_USB_COMPOSITION_19: Dual configuration: USB composition 7 and USB composition 9.
453 * @QMI_DMS_SWI_USB_COMPOSITION_20: Dual configuration: USB composition 7 and USB composition 10.
454 * @QMI_DMS_SWI_USB_COMPOSITION_21: Dual configuration: USB composition 7 and USB composition 11.
455 * @QMI_DMS_SWI_USB_COMPOSITION_22: Dual configuration: USB composition 7 and USB composition 12.
456 *
457 * Sierra Wireless USB composition modes.
458 *
459 * Since: 1.20
460 */
461 typedef enum { /*< since=1.20 >*/
462 QMI_DMS_SWI_USB_COMPOSITION_UNKNOWN = -1,
463 QMI_DMS_SWI_USB_COMPOSITION_0 = 0,
464 QMI_DMS_SWI_USB_COMPOSITION_1 = 1,
465 QMI_DMS_SWI_USB_COMPOSITION_2 = 2,
466 QMI_DMS_SWI_USB_COMPOSITION_3 = 3,
467 QMI_DMS_SWI_USB_COMPOSITION_4 = 4,
468 QMI_DMS_SWI_USB_COMPOSITION_5 = 5,
469 QMI_DMS_SWI_USB_COMPOSITION_6 = 6,
470 QMI_DMS_SWI_USB_COMPOSITION_7 = 7,
471 QMI_DMS_SWI_USB_COMPOSITION_8 = 8,
472 QMI_DMS_SWI_USB_COMPOSITION_9 = 9,
473 QMI_DMS_SWI_USB_COMPOSITION_10 = 10,
474 QMI_DMS_SWI_USB_COMPOSITION_11 = 11,
475 QMI_DMS_SWI_USB_COMPOSITION_12 = 12,
476 QMI_DMS_SWI_USB_COMPOSITION_13 = 13,
477 QMI_DMS_SWI_USB_COMPOSITION_14 = 14,
478 QMI_DMS_SWI_USB_COMPOSITION_15 = 15,
479 QMI_DMS_SWI_USB_COMPOSITION_16 = 16,
480 QMI_DMS_SWI_USB_COMPOSITION_17 = 17,
481 QMI_DMS_SWI_USB_COMPOSITION_18 = 18,
482 QMI_DMS_SWI_USB_COMPOSITION_19 = 19,
483 QMI_DMS_SWI_USB_COMPOSITION_20 = 20,
484 QMI_DMS_SWI_USB_COMPOSITION_21 = 21,
485 QMI_DMS_SWI_USB_COMPOSITION_22 = 22,
486 } QmiDmsSwiUsbComposition;
487
488 /**
489 * qmi_dms_swi_usb_composition_get_description:
490 * @value: a #QmiDmsSwiUsbComposition.
491 *
492 * Gets a text description of the Sierra Wireless USB composition.
493 *
494 * Since: 1.20
495 * Returns: a string.
496 */
497 const gchar *qmi_dms_swi_usb_composition_get_description (QmiDmsSwiUsbComposition value);
498
499 /*****************************************************************************/
500 /* Helper enums for the 'QMI DMS Foxconn Change Device Mode' message */
501
502 /**
503 * QmiDmsFoxconnDeviceMode:
504 * @QMI_DMS_FOXCONN_DEVICE_MODE_UNKNOWN: Unknown mode.
505 * @QMI_DMS_FOXCONN_DEVICE_MODE_FASTBOOT_ONLINE: Fastboot download mode for full partition files.
506 * @QMI_DMS_FOXCONN_DEVICE_MODE_FASTBOOT_OTA: Fastboot download mode for OTA files.
507 *
508 * Foxconn specific device modes.
509 *
510 * Since: 1.26
511 */
512 typedef enum { /*< since=1.26 >*/
513 QMI_DMS_FOXCONN_DEVICE_MODE_UNKNOWN = 0,
514 QMI_DMS_FOXCONN_DEVICE_MODE_FASTBOOT_ONLINE = 0x05,
515 QMI_DMS_FOXCONN_DEVICE_MODE_FASTBOOT_OTA = 0x0A,
516 } QmiDmsFoxconnDeviceMode;
517
518 /*****************************************************************************/
519 /* Helper enums for the 'QMI DMS Foxconn Get Firmware Version' message */
520
521 /**
522 * QmiDmsFoxconnFirmwareVersionType:
523 * @QMI_DMS_FOXCONN_FIRMWARE_VERSION_TYPE_FIRMWARE_MCFG: E.g. T77W968.F0.0.0.2.3.GC.004.
524 * @QMI_DMS_FOXCONN_FIRMWARE_VERSION_TYPE_FIRMWARE_MCFG_APPS: E.g. T77W968.F0.0.0.2.3.GC.004.011.
525 * @QMI_DMS_FOXCONN_FIRMWARE_VERSION_TYPE_APPS: E.g. 011.
526 *
527 * Foxconn specific firmware version types.
528 *
529 * Since: 1.26
530 */
531 typedef enum { /*< since=1.26 >*/
532 QMI_DMS_FOXCONN_FIRMWARE_VERSION_TYPE_FIRMWARE_MCFG = 0x00,
533 QMI_DMS_FOXCONN_FIRMWARE_VERSION_TYPE_FIRMWARE_MCFG_APPS = 0x01,
534 QMI_DMS_FOXCONN_FIRMWARE_VERSION_TYPE_APPS = 0x02,
535 } QmiDmsFoxconnFirmwareVersionType;
536
537 #endif /* _LIBQMI_GLIB_QMI_ENUMS_DMS_H_ */