/usr/include/libmbim-glib/mbim-enums.h is in libmbim-glib-dev 1.12.2-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 | /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* libmbim-glib -- GLib/GIO based library to control MBIM 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) 2013 - 2014 Aleksander Morgado <aleksander@aleksander.es>
*/
#ifndef _LIBMBIM_GLIB_MBIM_ENUMS_H_
#define _LIBMBIM_GLIB_MBIM_ENUMS_H_
#if !defined (__LIBMBIM_GLIB_H_INSIDE__) && !defined (LIBMBIM_GLIB_COMPILATION)
#error "Only <libmbim-glib.h> can be included directly."
#endif
G_BEGIN_DECLS
/**
* SECTION: mbim-enums
* @title: Enumerations and Flags
* @short_description: Common enumeration and flag types.
*
* This section defines common enum and flag types used in the interface.
*/
/*****************************************************************************/
/* 'Device Caps' enums */
/**
* MbimDeviceType:
* @MBIM_DEVICE_TYPE_UNKNOWN: Unknown type.
* @MBIM_DEVICE_TYPE_EMBEDDED: Device is embedded in the system.
* @MBIM_DEVICE_TYPE_REMOVABLE: Device is removable.
* @MBIM_DEVICE_TYPE_REMOTE: Device is remote.
*
* Type of device.
*/
typedef enum {
MBIM_DEVICE_TYPE_UNKNOWN = 0,
MBIM_DEVICE_TYPE_EMBEDDED = 1,
MBIM_DEVICE_TYPE_REMOVABLE = 2,
MBIM_DEVICE_TYPE_REMOTE = 3
} MbimDeviceType;
/**
* MbimCellularClass:
* @MBIM_CELLULAR_CLASS_GSM: Device is 3GPP.
* @MBIM_CELLULAR_CLASS_CDMA: Device is 3GPP2.
*
* Cellular class.
*/
typedef enum {
MBIM_CELLULAR_CLASS_GSM = 1 << 0,
MBIM_CELLULAR_CLASS_CDMA = 1 << 1
} MbimCellularClass;
/**
* MbimVoiceClass:
* @MBIM_VOICE_CLASS_UNKNOWN: Unknown voice class.
* @MBIM_VOICE_CLASS_NO_VOICE: Device doesn't support voice.
* @MBIM_VOICE_CLASS_SEPARATED_VOICE_DATA: Device supports separate voice and data connections.
* @MBIM_VOICE_CLASS_SIMULTANEOUS_VOICE_DATA: Device supports simultaneous voice and data connections.
*
* Voice class.
*/
typedef enum {
MBIM_VOICE_CLASS_UNKNOWN = 0,
MBIM_VOICE_CLASS_NO_VOICE = 1,
MBIM_VOICE_CLASS_SEPARATED_VOICE_DATA = 2,
MBIM_VOICE_CLASS_SIMULTANEOUS_VOICE_DATA = 3
} MbimVoiceClass;
/**
* MbimSimClass:
* @MBIM_SIM_CLASS_LOGICAL: No physical SIM.
* @MBIM_SIM_CLASS_REMOVABLE: Physical removable SIM.
*
* SIM class.
*/
typedef enum {
MBIM_SIM_CLASS_LOGICAL = 1 << 0,
MBIM_SIM_CLASS_REMOVABLE = 1 << 1
} MbimSimClass;
/**
* MbimDataClass:
* @MBIM_DATA_CLASS_GPRS: GPRS.
* @MBIM_DATA_CLASS_EDGE: EDGE.
* @MBIM_DATA_CLASS_UMTS: UMTS.
* @MBIM_DATA_CLASS_HSDPA: HSDPA.
* @MBIM_DATA_CLASS_HSUPA: HSUPA.
* @MBIM_DATA_CLASS_LTE: LTE.
* @MBIM_DATA_CLASS_1XRTT: 1xRTT.
* @MBIM_DATA_CLASS_1XEVDO: 1xEV-DO.
* @MBIM_DATA_CLASS_1XEVDO_REVA: 1xEV-DO RevA
* @MBIM_DATA_CLASS_1XEVDV: 1xEV-DV.
* @MBIM_DATA_CLASS_3XRTT: 3xRTT.
* @MBIM_DATA_CLASS_1XEVDO_REVB: 1xEV-DO RevB.
* @MBIM_DATA_CLASS_UMB: UMB.
* @MBIM_DATA_CLASS_CUSTOM: Custom.
*
* Data class.
*/
typedef enum {
MBIM_DATA_CLASS_GPRS = 1 << 0,
MBIM_DATA_CLASS_EDGE = 1 << 1,
MBIM_DATA_CLASS_UMTS = 1 << 2,
MBIM_DATA_CLASS_HSDPA = 1 << 3,
MBIM_DATA_CLASS_HSUPA = 1 << 4,
MBIM_DATA_CLASS_LTE = 1 << 5,
/* Bits 6 to 15 reserved for future 3GPP classes */
MBIM_DATA_CLASS_1XRTT = 1 << 16,
MBIM_DATA_CLASS_1XEVDO = 1 << 17,
MBIM_DATA_CLASS_1XEVDO_REVA = 1 << 18,
MBIM_DATA_CLASS_1XEVDV = 1 << 19,
MBIM_DATA_CLASS_3XRTT = 1 << 20,
MBIM_DATA_CLASS_1XEVDO_REVB = 1 << 21,
MBIM_DATA_CLASS_UMB = 1 << 22,
/* Bits 23 to 30 reserved for future 3GPP2 classes */
MBIM_DATA_CLASS_CUSTOM = 1 << 31
} MbimDataClass;
/**
* MbimSmsCaps:
* @MBIM_SMS_CAPS_PDU_RECEIVE: Can receive in PDU mode.
* @MBIM_SMS_CAPS_PDU_SEND: Can send in PDU mode.
* @MBIM_SMS_CAPS_TEXT_RECEIVE: Can receive in text mode.
* @MBIM_SMS_CAPS_TEXT_SEND: Can send in text mode.
*
* SMS capabilities.
*/
typedef enum {
MBIM_SMS_CAPS_PDU_RECEIVE = 1 << 0,
MBIM_SMS_CAPS_PDU_SEND = 1 << 1,
MBIM_SMS_CAPS_TEXT_RECEIVE = 1 << 2,
MBIM_SMS_CAPS_TEXT_SEND = 1 << 3
} MbimSmsCaps;
/**
* MbimCtrlCaps:
* @MBIM_CTRL_CAPS_REG_MANUAL: Device allows manual network selection.
* @MBIM_CTRL_CAPS_HW_RADIO_SWITCH: Device has a hardware radio power switch.
* @MBIM_CTRL_CAPS_CDMA_MOBILE_IP: The CDMA function supports Mobile IP.
* @MBIM_CTRL_CAPS_CDMA_SIMPLE_IP: The CDMA function supports Simple IP.
* @MBIM_CTRL_CAPS_MULTI_CARRIER: Device can work with multiple providers.
*
* Control capabilities.
*/
typedef enum {
MBIM_CTRL_CAPS_REG_MANUAL = 1 << 0,
MBIM_CTRL_CAPS_HW_RADIO_SWITCH = 1 << 1,
MBIM_CTRL_CAPS_CDMA_MOBILE_IP = 1 << 2,
MBIM_CTRL_CAPS_CDMA_SIMPLE_IP = 1 << 3,
MBIM_CTRL_CAPS_MULTI_CARRIER = 1 << 4
} MbimCtrlCaps;
/*****************************************************************************/
/* 'Subscriber Ready Status' enums */
/**
* MbimSubscriberReadyState:
* @MBIM_SUBSCRIBER_READY_STATE_NOT_INITIALIZED: Not initialized.
* @MBIM_SUBSCRIBER_READY_STATE_INITIALIZED: Initialized.
* @MBIM_SUBSCRIBER_READY_STATE_SIM_NOT_INSERTED: SIM not inserted.
* @MBIM_SUBSCRIBER_READY_STATE_BAD_SIM: Bad SIM.
* @MBIM_SUBSCRIBER_READY_STATE_FAILURE: Failure.
* @MBIM_SUBSCRIBER_READY_STATE_NOT_ACTIVATED: Not activated.
* @MBIM_SUBSCRIBER_READY_STATE_DEVICE_LOCKED: Device locked.
*
* Ready state of the subscriber.
*/
typedef enum {
MBIM_SUBSCRIBER_READY_STATE_NOT_INITIALIZED = 0,
MBIM_SUBSCRIBER_READY_STATE_INITIALIZED = 1,
MBIM_SUBSCRIBER_READY_STATE_SIM_NOT_INSERTED = 2,
MBIM_SUBSCRIBER_READY_STATE_BAD_SIM = 3,
MBIM_SUBSCRIBER_READY_STATE_FAILURE = 4,
MBIM_SUBSCRIBER_READY_STATE_NOT_ACTIVATED = 5,
MBIM_SUBSCRIBER_READY_STATE_DEVICE_LOCKED = 6,
} MbimSubscriberReadyState;
/**
* MbimReadyInfoFlag:
* @MBIM_READY_INFO_FLAG_PROTECT_UNIQUE_ID: Request to avoid displaying subscriber ID.
*/
typedef enum {
MBIM_READY_INFO_FLAG_PROTECT_UNIQUE_ID = 1 << 0
} MbimReadyInfoFlag;
/*****************************************************************************/
/* 'Radio State' enums */
/**
* MbimRadioSwitchState:
* @MBIM_RADIO_SWITCH_STATE_OFF: Radio is off.
* @MBIM_RADIO_SWITCH_STATE_ON: Radio is on.
*
* Radio switch state.
*/
typedef enum {
MBIM_RADIO_SWITCH_STATE_OFF = 0,
MBIM_RADIO_SWITCH_STATE_ON = 1
} MbimRadioSwitchState;
/*****************************************************************************/
/* 'Pin' enums */
/**
* MbimPinType:
* @MBIM_PIN_TYPE_UNKNOWN: Unknown or unset.
* @MBIM_PIN_TYPE_CUSTOM: The PIN type is a custom type and is none of the other PIN types listed in this enumeration.
* @MBIM_PIN_TYPE_PIN1: The PIN1 key.
* @MBIM_PIN_TYPE_PIN2: The PIN2 key.
* @MBIM_PIN_TYPE_DEVICE_SIM_PIN: The device to SIM key.
* @MBIM_PIN_TYPE_DEVICE_FIRST_SIM_PIN: The device to very first SIM key.
* @MBIM_PIN_TYPE_NETWORK_PIN: The network personalization key.
* @MBIM_PIN_TYPE_NETWORK_SUBSET_PIN: The network subset personalization key.
* @MBIM_PIN_TYPE_SERVICE_PROVIDER_PIN: The service provider (SP) personalization key.
* @MBIM_PIN_TYPE_CORPORATE_PIN: The corporate personalization key.
* @MBIM_PIN_TYPE_SUBSIDY_PIN: The subsidy unlock key.
* @MBIM_PIN_TYPE_PUK1: The Personal Identification Number1 Unlock Key (PUK1).
* @MBIM_PIN_TYPE_PUK2: The Personal Identification Number2 Unlock Key (PUK2).
* @MBIM_PIN_TYPE_DEVICE_FIRST_SIM_PUK: The device to very first SIM PIN unlock key.
* @MBIM_PIN_TYPE_NETWORK_PUK: The network personalization unlock key.
* @MBIM_PIN_TYPE_NETWORK_SUBSET_PUK: The network subset personalization unlock key.
* @MBIM_PIN_TYPE_SERVICE_PROVIDER_PUK: The service provider (SP) personalization unlock key.
* @MBIM_PIN_TYPE_CORPORATE_PUK: The corporate personalization unlock key.
*
* PIN Types.
*/
typedef enum {
MBIM_PIN_TYPE_UNKNOWN = 0,
MBIM_PIN_TYPE_CUSTOM = 1,
MBIM_PIN_TYPE_PIN1 = 2,
MBIM_PIN_TYPE_PIN2 = 3,
MBIM_PIN_TYPE_DEVICE_SIM_PIN = 4,
MBIM_PIN_TYPE_DEVICE_FIRST_SIM_PIN = 5,
MBIM_PIN_TYPE_NETWORK_PIN = 6,
MBIM_PIN_TYPE_NETWORK_SUBSET_PIN = 7,
MBIM_PIN_TYPE_SERVICE_PROVIDER_PIN = 8,
MBIM_PIN_TYPE_CORPORATE_PIN = 9,
MBIM_PIN_TYPE_SUBSIDY_PIN = 10,
MBIM_PIN_TYPE_PUK1 = 11,
MBIM_PIN_TYPE_PUK2 = 12,
MBIM_PIN_TYPE_DEVICE_FIRST_SIM_PUK = 13,
MBIM_PIN_TYPE_NETWORK_PUK = 14,
MBIM_PIN_TYPE_NETWORK_SUBSET_PUK = 15,
MBIM_PIN_TYPE_SERVICE_PROVIDER_PUK = 16,
MBIM_PIN_TYPE_CORPORATE_PUK = 17
} MbimPinType;
/**
* MbimPinState:
* @MBIM_PIN_STATE_UNLOCKED: The device does not require a PIN.
* @MBIM_PIN_STATE_LOCKED: The device requires the user to enter a PIN.
*
* PIN States.
*/
typedef enum {
MBIM_PIN_STATE_UNLOCKED = 0,
MBIM_PIN_STATE_LOCKED = 1
} MbimPinState;
/**
* MbimPinOperation:
* @MBIM_PIN_OPERATION_ENTER: Enter the specified PIN into the device.
* @MBIM_PIN_OPERATION_ENABLE: Enable the specified PIN.
* @MBIM_PIN_OPERATION_DISABLE: Disable the specified PIN.
* @MBIM_PIN_OPERATION_CHANGE: Change the specified PIN.
*/
typedef enum {
MBIM_PIN_OPERATION_ENTER = 0,
MBIM_PIN_OPERATION_ENABLE = 1,
MBIM_PIN_OPERATION_DISABLE = 2,
MBIM_PIN_OPERATION_CHANGE = 3
} MbimPinOperation;
/*****************************************************************************/
/* 'Pin List' enums */
/**
* MbimPinMode:
* @MBIM_PIN_MODE_NOT_SUPPORTED: Not supported.
* @MBIM_PIN_MODE_ENABLED: Enabled.
* @MBIM_PIN_MODE_DISABLED: Disabled.
*
* Whether the lock is enabled or disabled.
*/
typedef enum {
MBIM_PIN_MODE_NOT_SUPPORTED = 0,
MBIM_PIN_MODE_ENABLED = 1,
MBIM_PIN_MODE_DISABLED = 2
} MbimPinMode;
/**
* MbimPinFormat:
* @MBIM_PIN_FORMAT_UNKNOWN: Unknown format.
* @MBIM_PIN_FORMAT_NUMERIC: Numeric-only format.
* @MBIM_PIN_FORMAT_ALPHANUMERIC: Alphanumeric format.
*
* Format of the expected PIN code.
*/
typedef enum {
MBIM_PIN_FORMAT_UNKNOWN = 0,
MBIM_PIN_FORMAT_NUMERIC = 1,
MBIM_PIN_FORMAT_ALPHANUMERIC = 2
} MbimPinFormat;
/*****************************************************************************/
/* 'Home Provider' enums */
/**
* MbimProviderState:
* @MBIM_PROVIDER_STATE_UNKNOWN: Unknown.
* @MBIM_PROVIDER_STATE_HOME: Home operator.
* @MBIM_PROVIDER_STATE_FORBIDDEN: Provider blocked.
* @MBIM_PROVIDER_STATE_PREFERRED: Provider is in the preferred list.
* @MBIM_PROVIDER_STATE_VISIBLE: Provider is visible.
* @MBIM_PROVIDER_STATE_REGISTERED: Currently registered to the provider.
* @MBIM_PROVIDER_STATE_PREFERRED_MULTICARRIER: Provider is a preferred multicarrier network.
*
* State of the provider.
*/
typedef enum {
MBIM_PROVIDER_STATE_UNKNOWN = 0,
MBIM_PROVIDER_STATE_HOME = 1 << 0,
MBIM_PROVIDER_STATE_FORBIDDEN = 1 << 1,
MBIM_PROVIDER_STATE_PREFERRED = 1 << 2,
MBIM_PROVIDER_STATE_VISIBLE = 1 << 3,
MBIM_PROVIDER_STATE_REGISTERED = 1 << 4,
MBIM_PROVIDER_STATE_PREFERRED_MULTICARRIER = 1 << 5
} MbimProviderState;
/*****************************************************************************/
/* 'Visible Providers' enums */
/**
* MbimVisibleProvidersAction:
* @MBIM_VISIBLE_PROVIDERS_ACTION_FULL_SCAN: Full scan.
* @MBIM_VISIBLE_PROVIDERS_ACTION_RESTRICTED_SCAN: Locate preferred multicarrier providers.
*
* Type of action to perform when listing visible providers.
*/
typedef enum {
MBIM_VISIBLE_PROVIDERS_ACTION_FULL_SCAN = 0,
MBIM_VISIBLE_PROVIDERS_ACTION_RESTRICTED_SCAN = 1
} MbimVisibleProvidersAction;
/*****************************************************************************/
/* 'Register State' enums */
/**
* MbimNwError:
* @MBIM_NW_ERROR_UNKNOWN: Unknown or unset error.
* @MBIM_NW_ERROR_IMSI_UNKNOWN_IN_HLR: IMSI unknown in the HLR.
* @MBIM_NW_ERROR_ILLEGAL_MS: Illegal MS.
* @MBIM_NW_ERROR_IMSI_UNKNOWN_IN_VLR: IMSI unknown in the VLR.
* @MBIM_NW_ERROR_IMEI_NOT_ACCEPTED: IMEI not accepted.
* @MBIM_NW_ERROR_ILLEGAL_ME: Illegal ME.
* @MBIM_NW_ERROR_GPRS_NOT_ALLOWED: GPRS not allowed.
* @MBIM_NW_ERROR_GPRS_AND_NON_GPRS_NOT_ALLOWED: GPRS and non-GPRS not allowed.
* @MBIM_NW_ERROR_MS_IDENTITY_NOT_DERIVED_BY_NETWORK: MS identity cannot be derived by the network.
* @MBIM_NW_ERROR_IMPLICITLY_DETACHED: Implicitly detached.
* @MBIM_NW_ERROR_PLMN_NOT_ALLOWED: PLMN not allowed.
* @MBIM_NW_ERROR_LOCATION_AREA_NOT_ALLOWED: Location area not allowed.
* @MBIM_NW_ERROR_ROAMING_NOT_ALLOWED_IN_LOCATION_AREA: Roaming not allowed in the location area.
* @MBIM_NW_ERROR_GPRS_NOT_ALLOWED_IN_PLMN: GPRS not allowed in PLMN.
* @MBIM_NW_ERROR_NO_CELLS_IN_LOCATION_AREA: No cells in location area.
* @MBIM_NW_ERROR_MSC_TEMPORARILY_NOT_REACHABLE: MSC temporarily not reachable.
* @MBIM_NW_ERROR_NETWORK_FAILURE: Network failure.
* @MBIM_NW_ERROR_MAC_FAILURE: MAC failure.
* @MBIM_NW_ERROR_SYNCH_FAILURE: Synch failure.
* @MBIM_NW_ERROR_CONGESTION: Congestion.
* @MBIM_NW_ERROR_GSM_AUTHENTICATION_UNACCEPTABLE: GSM authentication unacceptable.
* @MBIM_NW_ERROR_NOT_AUTHORIZED_FOR_CSG: Not authorized for this CSG.
* @MBIM_NW_ERROR_MISSING_OR_UNKNOWN_APN: Missing or unknown access point name.
* @MBIM_NW_ERROR_SERVICE_OPTION_NOT_SUPPORTED: Service option not supported.
* @MBIM_NW_ERROR_REQUESTED_SERVICE_OPTION_NOT_SUBSCRIBED: Requested service option not subscribed.
* @MBIM_NW_ERROR_SERVICE_OPTION_TEMPORARILY_OUT_OF_ORDER: Service option temporarily out of order.
* @MBIM_NW_ERROR_NO_PDP_CONTEXT_ACTIVATED: No PDP context activated.
* @MBIM_NW_ERROR_SEMANTICALLY_INCORRECT_MESSAGE: Semantically incorrect message.
* @MBIM_NW_ERROR_INVALID_MANDATORY_INFORMATION: Invalid mandatory information.
* @MBIM_NW_ERROR_MESSAGE_TYPE_NON_EXISTENT_OR_NOT_IMPLEMENTED: Message type non-existent or not implemented.
* @MBIM_NW_ERROR_MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE: Message type not compatible with protocol state.
* @MBIM_NW_ERROR_INFORMATION_ELEMENT_NON_EXISTENT_OR_NOT_IMPLEMENTED: Information element non-existent or not implemented.
* @MBIM_NW_ERROR_CONDITIONAL_IE_ERROR: Conditional IE error.
* @MBIM_NW_ERROR_MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE: Message not compatible with protocol state.
* @MBIM_NW_ERROR_PROTOCOL_ERROR_UNSPECIFIED: Protocol error, unspecified.
*
* Network errors.
*/
typedef enum {
MBIM_NW_ERROR_UNKNOWN = 0,
MBIM_NW_ERROR_IMSI_UNKNOWN_IN_HLR = 2,
MBIM_NW_ERROR_ILLEGAL_MS = 3,
MBIM_NW_ERROR_IMSI_UNKNOWN_IN_VLR = 4,
MBIM_NW_ERROR_IMEI_NOT_ACCEPTED = 5,
MBIM_NW_ERROR_ILLEGAL_ME = 6,
MBIM_NW_ERROR_GPRS_NOT_ALLOWED = 7,
MBIM_NW_ERROR_GPRS_AND_NON_GPRS_NOT_ALLOWED = 8,
MBIM_NW_ERROR_MS_IDENTITY_NOT_DERIVED_BY_NETWORK = 9,
MBIM_NW_ERROR_IMPLICITLY_DETACHED = 10,
MBIM_NW_ERROR_PLMN_NOT_ALLOWED = 11,
MBIM_NW_ERROR_LOCATION_AREA_NOT_ALLOWED = 12,
MBIM_NW_ERROR_ROAMING_NOT_ALLOWED_IN_LOCATION_AREA = 13,
MBIM_NW_ERROR_GPRS_NOT_ALLOWED_IN_PLMN = 14,
MBIM_NW_ERROR_NO_CELLS_IN_LOCATION_AREA = 15,
MBIM_NW_ERROR_MSC_TEMPORARILY_NOT_REACHABLE = 16,
MBIM_NW_ERROR_NETWORK_FAILURE = 17,
MBIM_NW_ERROR_MAC_FAILURE = 20,
MBIM_NW_ERROR_SYNCH_FAILURE = 21,
MBIM_NW_ERROR_CONGESTION = 22,
MBIM_NW_ERROR_GSM_AUTHENTICATION_UNACCEPTABLE = 23,
MBIM_NW_ERROR_NOT_AUTHORIZED_FOR_CSG = 25,
MBIM_NW_ERROR_MISSING_OR_UNKNOWN_APN = 27,
MBIM_NW_ERROR_SERVICE_OPTION_NOT_SUPPORTED = 32,
MBIM_NW_ERROR_REQUESTED_SERVICE_OPTION_NOT_SUBSCRIBED = 33,
MBIM_NW_ERROR_SERVICE_OPTION_TEMPORARILY_OUT_OF_ORDER = 34,
MBIM_NW_ERROR_NO_PDP_CONTEXT_ACTIVATED = 40,
MBIM_NW_ERROR_SEMANTICALLY_INCORRECT_MESSAGE = 95,
MBIM_NW_ERROR_INVALID_MANDATORY_INFORMATION = 96,
MBIM_NW_ERROR_MESSAGE_TYPE_NON_EXISTENT_OR_NOT_IMPLEMENTED = 97,
MBIM_NW_ERROR_MESSAGE_TYPE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 98,
MBIM_NW_ERROR_INFORMATION_ELEMENT_NON_EXISTENT_OR_NOT_IMPLEMENTED = 99,
MBIM_NW_ERROR_CONDITIONAL_IE_ERROR = 100,
MBIM_NW_ERROR_MESSAGE_NOT_COMPATIBLE_WITH_PROTOCOL_STATE = 101,
MBIM_NW_ERROR_PROTOCOL_ERROR_UNSPECIFIED = 111
} MbimNwError;
/**
* MbimRegisterAction:
* @MBIM_REGISTER_ACTION_AUTOMATIC: Automatic registration.
* @MBIM_REGISTER_ACTION_MANUAL: Manual registration.
*
* Type of registration requested.
*/
typedef enum {
MBIM_REGISTER_ACTION_AUTOMATIC = 0,
MBIM_REGISTER_ACTION_MANUAL = 1
} MbimRegisterAction;
/**
* MbimRegisterState:
* @MBIM_REGISTER_STATE_UNKNOWN: Unknown registration state.
* @MBIM_REGISTER_STATE_DEREGISTERED: Not registered.
* @MBIM_REGISTER_STATE_SEARCHING: Searching.
* @MBIM_REGISTER_STATE_HOME: Registered in home network.
* @MBIM_REGISTER_STATE_ROAMING: Registered in roaming network.
* @MBIM_REGISTER_STATE_PARTNER: Registered in a preferred roaming network.
* @MBIM_REGISTER_STATE_DENIED: Registration denied.
*
* Registration state.
*/
typedef enum {
MBIM_REGISTER_STATE_UNKNOWN = 0,
MBIM_REGISTER_STATE_DEREGISTERED = 1,
MBIM_REGISTER_STATE_SEARCHING = 2,
MBIM_REGISTER_STATE_HOME = 3,
MBIM_REGISTER_STATE_ROAMING = 4,
MBIM_REGISTER_STATE_PARTNER = 5,
MBIM_REGISTER_STATE_DENIED = 6
} MbimRegisterState;
/**
* MbimRegisterMode:
* @MBIM_REGISTER_MODE_UNKNOWN: Unknown.
* @MBIM_REGISTER_MODE_AUTOMATIC: Automatic registration.
* @MBIM_REGISTER_MODE_MANUAL: Manual registration.
*
* Type of registration requested.
*/
typedef enum {
MBIM_REGISTER_MODE_UNKNOWN = 0,
MBIM_REGISTER_MODE_AUTOMATIC = 1,
MBIM_REGISTER_MODE_MANUAL = 2
} MbimRegisterMode;
/**
* MbimRegistrationFlag:
* @MBIM_REGISTRATION_FLAG_NONE: None.
* @MBIM_REGISTRATION_FLAG_MANUAL_SELECTION_NOT_AVAILABLE: Network doesn't support manual network selection.
* @MBIM_REGISTRATION_FLAG_PACKET_SERVICE_AUTOMATIC_ATTACH: Modem should auto-attach to the network after registration.
*
* Registration flags.
*/
typedef enum {
MBIM_REGISTRATION_FLAG_NONE = 0,
MBIM_REGISTRATION_FLAG_MANUAL_SELECTION_NOT_AVAILABLE = 1 << 0,
MBIM_REGISTRATION_FLAG_PACKET_SERVICE_AUTOMATIC_ATTACH = 1 << 1,
} MbimRegistrationFlag;
/*****************************************************************************/
/* 'Packet Service' enums */
/**
* MbimPacketServiceAction:
* @MBIM_PACKET_SERVICE_ACTION_ATTACH: Attach.
* @MBIM_PACKET_SERVICE_ACTION_DETACH: Detach.
*
* Packet Service Action.
*/
typedef enum {
MBIM_PACKET_SERVICE_ACTION_ATTACH = 0,
MBIM_PACKET_SERVICE_ACTION_DETACH = 1
} MbimPacketServiceAction;
/**
* MbimPacketServiceState:
* @MBIM_PACKET_SERVICE_STATE_UNKNOWN: Unknown.
* @MBIM_PACKET_SERVICE_STATE_ATTACHING: Attaching.
* @MBIM_PACKET_SERVICE_STATE_ATTACHED: Attached.
* @MBIM_PACKET_SERVICE_STATE_DETACHING: Detaching.
* @MBIM_PACKET_SERVICE_STATE_DETACHED: Detached.
*
* Packet Service State.
*/
typedef enum {
MBIM_PACKET_SERVICE_STATE_UNKNOWN = 0,
MBIM_PACKET_SERVICE_STATE_ATTACHING = 1,
MBIM_PACKET_SERVICE_STATE_ATTACHED = 2,
MBIM_PACKET_SERVICE_STATE_DETACHING = 3,
MBIM_PACKET_SERVICE_STATE_DETACHED = 4
} MbimPacketServiceState;
/*****************************************************************************/
/* 'Connect' enums */
/**
* MbimActivationCommand:
* @MBIM_ACTIVATION_COMMAND_DEACTIVATE: Deactivate.
* @MBIM_ACTIVATION_COMMAND_ACTIVATE: Activate.
*
* Activation Command.
*/
typedef enum {
MBIM_ACTIVATION_COMMAND_DEACTIVATE = 0,
MBIM_ACTIVATION_COMMAND_ACTIVATE = 1
} MbimActivationCommand;
/**
* MbimCompression:
* @MBIM_COMPRESSION_NONE: None.
* @MBIM_COMPRESSION_ENABLE: Enable.
*
* Compression.
*/
typedef enum {
MBIM_COMPRESSION_NONE = 0,
MBIM_COMPRESSION_ENABLE = 1
} MbimCompression;
/**
* MbimAuthProtocol:
* @MBIM_AUTH_PROTOCOL_NONE: None.
* @MBIM_AUTH_PROTOCOL_PAP: Pap.
* @MBIM_AUTH_PROTOCOL_CHAP: Chap.
* @MBIM_AUTH_PROTOCOL_MSCHAPV2: V2.
*
* Auth Protocol.
*/
typedef enum {
MBIM_AUTH_PROTOCOL_NONE = 0,
MBIM_AUTH_PROTOCOL_PAP = 1,
MBIM_AUTH_PROTOCOL_CHAP = 2,
MBIM_AUTH_PROTOCOL_MSCHAPV2 = 3
} MbimAuthProtocol;
/**
* MbimContextIpType:
* @MBIM_CONTEXT_IP_TYPE_DEFAULT: It is up to the function to decide, the host does not care.
* @MBIM_CONTEXT_IP_TYPE_IPV4: IPv4 context.
* @MBIM_CONTEXT_IP_TYPE_IPV6: IPv6 context.
* @MBIM_CONTEXT_IP_TYPE_IPV4V6: The context is IPv4, IPv6 or dualstack IPv4v6.
* @MBIM_CONTEXT_IP_TYPE_IPV4_AND_IPV6: Both an IPv4 and an IPv6 context.
*
* Context IP Type.
*/
typedef enum {
MBIM_CONTEXT_IP_TYPE_DEFAULT = 0,
MBIM_CONTEXT_IP_TYPE_IPV4 = 1,
MBIM_CONTEXT_IP_TYPE_IPV6 = 2,
MBIM_CONTEXT_IP_TYPE_IPV4V6 = 3,
MBIM_CONTEXT_IP_TYPE_IPV4_AND_IPV6 = 4
} MbimContextIpType;
/**
* MbimActivationState:
* @MBIM_ACTIVATION_STATE_UNKNOWN: Unknown.
* @MBIM_ACTIVATION_STATE_ACTIVATED: Activated.
* @MBIM_ACTIVATION_STATE_ACTIVATING: Activating.
* @MBIM_ACTIVATION_STATE_DEACTIVATED: Deactivated.
* @MBIM_ACTIVATION_STATE_DEACTIVATING: Deactivating.
*
* Activation State.
*/
typedef enum {
MBIM_ACTIVATION_STATE_UNKNOWN = 0,
MBIM_ACTIVATION_STATE_ACTIVATED = 1,
MBIM_ACTIVATION_STATE_ACTIVATING = 2,
MBIM_ACTIVATION_STATE_DEACTIVATED = 3,
MBIM_ACTIVATION_STATE_DEACTIVATING = 4
} MbimActivationState;
/**
* MbimVoiceCallState:
* @MBIM_VOICE_CALL_STATE_NONE: None.
* @MBIM_VOICE_CALL_STATE_IN_PROGRESS: Progress.
* @MBIM_VOICE_CALL_STATE_HANG_UP: Up.
*
* Voice Call State.
*/
typedef enum {
MBIM_VOICE_CALL_STATE_NONE = 0,
MBIM_VOICE_CALL_STATE_IN_PROGRESS = 1,
MBIM_VOICE_CALL_STATE_HANG_UP = 2
} MbimVoiceCallState;
/*****************************************************************************/
/* 'IP Configuration' enums */
/**
* MbimIPConfigurationAvailableFlag:
* @MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_NONE: No info available.
* @MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_ADDRESS: Address info available.
* @MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_GATEWAY: Gateway info available.
* @MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_DNS: DNS info available.
* @MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_MTU: MTU info available.
*
* Mask of available information about an IP address.
*/
typedef enum { /*< underscore_name=mbim_ip_configuration_available_flag >*/
MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_NONE = 0,
MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_ADDRESS = 1 << 0,
MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_GATEWAY = 1 << 1,
MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_DNS = 1 << 2,
MBIM_IP_CONFIGURATION_AVAILABLE_FLAG_MTU = 1 << 3,
} MbimIPConfigurationAvailableFlag;
/*****************************************************************************/
/* 'SMS Configuration' enums */
/**
* MbimSmsStorageState:
* @MBIM_SMS_STORAGE_STATE_NOT_INITIALIZED: Storage not initialized.
* @MBIM_SMS_STORAGE_STATE_INITIALIZED: Storage initialized.
*
* State of the SMS storage.
*/
typedef enum {
MBIM_SMS_STORAGE_STATE_NOT_INITIALIZED = 0,
MBIM_SMS_STORAGE_STATE_INITIALIZED = 1
} MbimSmsStorageState;
/**
* MbimSmsFormat:
* @MBIM_SMS_FORMAT_PDU: PDU format.
* @MBIM_SMS_FORMAT_CDMA: CDMA format.
*
* SMS format.
*/
typedef enum {
MBIM_SMS_FORMAT_PDU = 0,
MBIM_SMS_FORMAT_CDMA = 1
} MbimSmsFormat;
/*****************************************************************************/
/* 'SMS Read' enums */
/**
* MbimSmsFlag:
* @MBIM_SMS_FLAG_ALL: All.
* @MBIM_SMS_FLAG_INDEX: Index.
* @MBIM_SMS_FLAG_NEW: New.
* @MBIM_SMS_FLAG_OLD: Old.
* @MBIM_SMS_FLAG_SENT: Sent.
* @MBIM_SMS_FLAG_DRAFT: Draft.
*
* Flags to use when requesting to read SMS. @MBIM_SMS_FLAG_ALL and
* @MBIM_SMS_FLAG_NEW are mandatory, all the others are optional.
*/
typedef enum {
MBIM_SMS_FLAG_ALL = 0,
MBIM_SMS_FLAG_INDEX = 1,
MBIM_SMS_FLAG_NEW = 2,
MBIM_SMS_FLAG_OLD = 3,
MBIM_SMS_FLAG_SENT = 4,
MBIM_SMS_FLAG_DRAFT = 5
} MbimSmsFlag;
/**
* MbimSmsCdmaLang:
* @MBIM_SMS_CDMA_LANG_UNKNOWN: Unknown language.
* @MBIM_SMS_CDMA_LANG_ENGLISH: English.
* @MBIM_SMS_CDMA_LANG_FRENCH: French.
* @MBIM_SMS_CDMA_LANG_SPANISH: Spanish.
* @MBIM_SMS_CDMA_LANG_JAPANESE: Japanese.
* @MBIM_SMS_CDMA_LANG_KOREAN: Korean.
* @MBIM_SMS_CDMA_LANG_CHINESE: Chinese.
* @MBIM_SMS_CDMA_LANG_HEBREW: Hebrew.
*
* Language of a CDMA SMS.
*/
typedef enum {
MBIM_SMS_CDMA_LANG_UNKNOWN = 0,
MBIM_SMS_CDMA_LANG_ENGLISH = 1,
MBIM_SMS_CDMA_LANG_FRENCH = 2,
MBIM_SMS_CDMA_LANG_SPANISH = 3,
MBIM_SMS_CDMA_LANG_JAPANESE = 4,
MBIM_SMS_CDMA_LANG_KOREAN = 5,
MBIM_SMS_CDMA_LANG_CHINESE = 6,
MBIM_SMS_CDMA_LANG_HEBREW = 7
} MbimSmsCdmaLang;
/**
* MbimSmsCdmaEncoding:
* @MBIM_SMS_CDMA_ENCODING_OCTET: Octet.
* @MBIM_SMS_CDMA_ENCODING_EPM: EPM.
* @MBIM_SMS_CDMA_ENCODING_7BIT_ASCII: 7-bit ASCII.
* @MBIM_SMS_CDMA_ENCODING_LA5: LA5.
* @MBIM_SMS_CDMA_ENCODING_UNICODE: Unicode.
* @MBIM_SMS_CDMA_ENCODING_SHIFT_JIS: Shift JIS.
* @MBIM_SMS_CDMA_ENCODING_KOREAN: Korean.
* @MBIM_SMS_CDMA_ENCODING_LATIN_HEBREW: Latin hebrew.
* @MBIM_SMS_CDMA_ENCODING_LATIN: Latin.
* @MBIM_SMS_CDMA_ENCODING_GSM_7BIT: 7-bit GSM.
*
* Type of encoding of a CDMA SMS.
*/
typedef enum {
MBIM_SMS_CDMA_ENCODING_OCTET = 0,
MBIM_SMS_CDMA_ENCODING_EPM = 1,
MBIM_SMS_CDMA_ENCODING_7BIT_ASCII = 2,
MBIM_SMS_CDMA_ENCODING_LA5 = 3,
MBIM_SMS_CDMA_ENCODING_UNICODE = 4,
MBIM_SMS_CDMA_ENCODING_SHIFT_JIS = 5,
MBIM_SMS_CDMA_ENCODING_KOREAN = 6,
MBIM_SMS_CDMA_ENCODING_LATIN_HEBREW = 7,
MBIM_SMS_CDMA_ENCODING_LATIN = 8,
MBIM_SMS_CDMA_ENCODING_GSM_7BIT = 9
} MbimSmsCdmaEncoding;
/**
* MbimSmsStatus:
* @MBIM_SMS_STATUS_NEW: New.
* @MBIM_SMS_STATUS_OLD: Old.
* @MBIM_SMS_STATUS_DRAFT: Draft.
* @MBIM_SMS_STATUS_SENT: Sent.
*
* Status of a SMS message.
*/
typedef enum {
MBIM_SMS_STATUS_NEW = 0,
MBIM_SMS_STATUS_OLD = 1,
MBIM_SMS_STATUS_DRAFT = 2,
MBIM_SMS_STATUS_SENT = 3
} MbimSmsStatus;
/*****************************************************************************/
/* 'SMS Message Store Status' enums */
/**
* MbimSmsStatusFlag:
* @MBIM_SMS_STATUS_FLAG_NONE: None.
* @MBIM_SMS_STATUS_FLAG_MESSAGE_STORE_FULL: Message store is full.
* @MBIM_SMS_STATUS_FLAG_NEW_MESSAGE: New non-Class 0 message arrived.
*
* SMS status flags.
*/
typedef enum {
MBIM_SMS_STATUS_FLAG_NONE = 0,
MBIM_SMS_STATUS_FLAG_MESSAGE_STORE_FULL = 1,
MBIM_SMS_STATUS_FLAG_NEW_MESSAGE = 2
} MbimSmsStatusFlag;
/*****************************************************************************/
/* 'USSD' enums */
/**
* MbimUssdAction:
* @MBIM_USSD_ACTION_INITIATE: Initiate USSD session.
* @MBIM_USSD_ACTION_CONTINUE: Continue USSD session.
* @MBIM_USSD_ACTION_CANCEL: Cancel USSD session.
*
* USSD action.
*/
typedef enum {
MBIM_USSD_ACTION_INITIATE = 0,
MBIM_USSD_ACTION_CONTINUE = 1,
MBIM_USSD_ACTION_CANCEL = 2
} MbimUssdAction;
/**
* MbimUssdResponse:
* @MBIM_USSD_RESPONSE_NO_ACTION_REQUIRED: No action required.
* @MBIM_USSD_RESPONSE_ACTION_REQUIRED: An action is required.
* @MBIM_USSD_RESPONSE_TERMINATED_BY_NETWORK: Terminated by network
* @MBIM_USSD_RESPONSE_OTHER_LOCAL_CLIENT: Other local client.
* @MBIM_USSD_RESPONSE_OPERATION_NOT_SUPPORTED: Operation not supported.
* @MBIM_USSD_RESPONSE_NETWORK_TIMEOUT: Network timeout.
*
* USSD response.
*/
typedef enum {
MBIM_USSD_RESPONSE_NO_ACTION_REQUIRED = 0,
MBIM_USSD_RESPONSE_ACTION_REQUIRED = 1,
MBIM_USSD_RESPONSE_TERMINATED_BY_NETWORK = 2,
MBIM_USSD_RESPONSE_OTHER_LOCAL_CLIENT = 3,
MBIM_USSD_RESPONSE_OPERATION_NOT_SUPPORTED = 4,
MBIM_USSD_RESPONSE_NETWORK_TIMEOUT = 5
} MbimUssdResponse;
/**
* MbimUssdSessionState:
* @MBIM_USSD_SESSION_STATE_NEW_SESSION: New session.
* @MBIM_USSD_SESSION_STATE_EXISTING_SESSION: Existing session.
*
* Session state.
*/
typedef enum {
MBIM_USSD_SESSION_STATE_NEW_SESSION = 0,
MBIM_USSD_SESSION_STATE_EXISTING_SESSION = 1
} MbimUssdSessionState;
/*****************************************************************************/
/* 'Phonebook configuration' enums */
/**
* MbimPhonebookState:
* @MBIM_PHONEBOOK_STATE_NOT_INITIALIZED: Not initialized.
* @MBIM_PHONEBOOK_STATE_INITIALIZED: Initialized
*
* Phonebook state.
*/
typedef enum {
MBIM_PHONEBOOK_STATE_NOT_INITIALIZED = 0,
MBIM_PHONEBOOK_STATE_INITIALIZED = 1
} MbimPhonebookState;
/*****************************************************************************/
/* 'Phonebook read' enums */
/**
* MbimPhonebookFlag:
* @MBIM_PHONEBOOK_FLAG_ALL: Request all.
* @MBIM_PHONEBOOK_FLAG_INDEX: Request single entry by index.
*
* Flags to use when reading the phonebook.
*/
typedef enum {
MBIM_PHONEBOOK_FLAG_ALL = 0,
MBIM_PHONEBOOK_FLAG_INDEX = 1
} MbimPhonebookFlag;
/**
* MbimPhonebookWriteFlag:
* @MBIM_PHONEBOOK_WRITE_FLAG_SAVE_UNUSED: Store the record in an unused slot.
* @MBIM_PHONEBOOK_WRITE_FLAG_SAVE_INDEX: Index where to store the record.
*
* Flags to use when writing the phonebook.
*/
typedef enum {
MBIM_PHONEBOOK_WRITE_FLAG_SAVE_UNUSED = 0,
MBIM_PHONEBOOK_WRITE_FLAG_SAVE_INDEX = 1,
} MbimPhonebookWriteFlag;
/*****************************************************************************/
/* 'STK PAC' enums */
/**
* MbimStkPacProfile:
* @MBIM_STK_PAC_PROFILE_NOT_HANDLED_BY_FUNCTION_HANDLED_BY_HOST: Command not handled by function but handled by host.
* @MBIM_STK_PAC_PROFILE_NOT_HANDLED_BY_FUNCTION_MAY_BE_HANDLED_BY_HOST: Command not handled by function but may be handled by host.
* @MBIM_STK_PAC_PROFILE_HANDLED_BY_FUNCTION_ONLY_TRANSPARENT_TO_HOST: Command handled by function without informing the host.
* @MBIM_STK_PAC_PROFILE_HANDLED_BY_FUNCTION_NOTIFICATION_TO_HOST_POSSIBLE: Command handled by function without informing the host, but notifications may be sent to host.
* @MBIM_STK_PAC_PROFILE_HANDLED_BY_FUNCTION_NOTIFICATIONS_TO_HOST_ENABLED: Command handled by function, and the function wil also send notification to the host.
* @MBIM_STK_PAC_PROFILE_HANDLED_BY_FUNCTION_CAN_BE_OVERRIDEN_BY_HOST: Command handled by function, but the host may request full control of the command.
* @MBIM_STK_PAC_PROFILE_HANDLED_BY_HOST_FUNCTION_NOT_ABLE_TO_HANDLE: Command will be forwarded to the host. If the host decides not to receive the command, the function will not handle it.
* @MBIM_STK_PAC_PROFILE_HANDLED_BY_HOST_FUNCTION_ABLE_TO_HANDLE: Command will be forwarded to the host. If the host decides not to receive the command, the function will handle it.
*
* Proactive command profile.
*/
typedef enum {
MBIM_STK_PAC_PROFILE_NOT_HANDLED_BY_FUNCTION_HANDLED_BY_HOST = 0,
MBIM_STK_PAC_PROFILE_NOT_HANDLED_BY_FUNCTION_MAY_BE_HANDLED_BY_HOST = 1,
MBIM_STK_PAC_PROFILE_HANDLED_BY_FUNCTION_ONLY_TRANSPARENT_TO_HOST = 2,
MBIM_STK_PAC_PROFILE_HANDLED_BY_FUNCTION_NOTIFICATION_TO_HOST_POSSIBLE = 3,
MBIM_STK_PAC_PROFILE_HANDLED_BY_FUNCTION_NOTIFICATIONS_TO_HOST_ENABLED = 4,
MBIM_STK_PAC_PROFILE_HANDLED_BY_FUNCTION_CAN_BE_OVERRIDEN_BY_HOST = 5,
MBIM_STK_PAC_PROFILE_HANDLED_BY_HOST_FUNCTION_NOT_ABLE_TO_HANDLE = 6,
MBIM_STK_PAC_PROFILE_HANDLED_BY_HOST_FUNCTION_ABLE_TO_HANDLE = 7
} MbimStkPacProfile;
/**
* MbimStkPacType:
* @MBIM_STK_PAC_TYPE_PROACTIVE_COMMAND: Host is requested to handle the Proactive command.
* @MBIM_STK_PAC_TYPE_NOTIFICATION: Proactive command is handled by the function, but the host is notified.
*
* Type of proactive command.
*/
typedef enum {
MBIM_STK_PAC_TYPE_PROACTIVE_COMMAND = 0,
MBIM_STK_PAC_TYPE_NOTIFICATION = 1
} MbimStkPacType;
/*****************************************************************************/
/* 'Network idle hint' enums */
/**
* MbimNetworkIdleHintState:
* @MBIM_NETWORK_IDLE_HINT_STATE_DISABLED: Disabled.
* @MBIM_NETWORK_IDLE_HINT_STATE_ENABLED: Enabled.
*
* Enable or disable network idle hint.
*/
typedef enum {
MBIM_NETWORK_IDLE_HINT_STATE_DISABLED = 0,
MBIM_NETWORK_IDLE_HINT_STATE_ENABLED = 1
} MbimNetworkIdleHintState;
/*****************************************************************************/
/* 'Emergency mode' enums */
/**
* MbimEmergencyModeState:
* @MBIM_EMERGENCY_MODE_STATE_OFF: Off.
* @MBIM_EMERGENCY_MODE_STATE_ON: On.
*
* Emergency mode state.
*/
typedef enum {
MBIM_EMERGENCY_MODE_STATE_OFF = 0,
MBIM_EMERGENCY_MODE_STATE_ON = 1
} MbimEmergencyModeState;
/*****************************************************************************/
/* 'DSS connect' enums */
/**
* MbimDssLinkState:
* @MBIM_DSS_LINK_STATE_DEACTIVATE: Deactivate.
* @MBIM_DSS_LINK_STATE_ACTIVATE: Activate.
*
* Action performed in the link state.
*/
typedef enum {
MBIM_DSS_LINK_STATE_DEACTIVATE = 0,
MBIM_DSS_LINK_STATE_ACTIVATE = 1
} MbimDssLinkState;
G_END_DECLS
#endif /* _LIBMBIM_GLIB_MBIM_ENUMS_H_ */
|