api,enums: implement all enums and flags from the new API
This commit is contained in:
@@ -415,408 +415,5 @@
|
||||
-->
|
||||
<property name="AllowedBands" type="t" access="read" />
|
||||
|
||||
<!-- ENUMS -->
|
||||
|
||||
<tp:flags name="MM_MODEM_CAPABILITIES" value-prefix="MM_MODEM_CAPABILITY" type="u">
|
||||
<tp:docstring>
|
||||
Flags describing one or more of the general access technology families
|
||||
that a modem supports.
|
||||
</tp:docstring>
|
||||
<tp:flag suffix="NONE" value="0x0">
|
||||
<tp:docstring>Modem has no capabilties.</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="POTS" value="0x1">
|
||||
<tp:docstring>
|
||||
Modem supports the analog wired telephone network (ie 56k dialup) and
|
||||
does not have wireless/cellular capabilities.
|
||||
</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_EVDO" value="0x2">
|
||||
<tp:docstring>
|
||||
Modem supports at least one of CDMA 1xRTT, EVDO revision 0, EVDO
|
||||
revision A, or EVDO revision B.
|
||||
</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="GSM_UMTS" value="0x4">
|
||||
<tp:docstring>
|
||||
Modem supports at least one of GSM, GPRS, EDGE, UMTS, HSDPA, HSUPA, or
|
||||
HSPA+ packet switched data capability.
|
||||
</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="LTE" value="0x8">
|
||||
<tp:docstring>
|
||||
Modem has LTE data capability.
|
||||
</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="LTE_ADVANCED" value="0x10">
|
||||
<tp:docstring>
|
||||
Modem has LTE Advanced data capability.
|
||||
</tp:docstring>
|
||||
</tp:flag>
|
||||
</tp:flags>
|
||||
|
||||
<tp:enum name="MM_MODEM_LOCK" type="u">
|
||||
<tp:enumvalue suffix="UNKNOWN" value="0">
|
||||
<tp:docstring>
|
||||
Lock reason unknown.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="NONE" value="1">
|
||||
<tp:docstring>
|
||||
Modem is unlocked.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="SIM_PIN" value="2">
|
||||
<tp:docstring>
|
||||
SIM requires the PIN code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="SIM_PIN2" value="3">
|
||||
<tp:docstring>
|
||||
SIM requires the PIN2 code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="SIM_PUK" value="4">
|
||||
<tp:docstring>
|
||||
SIM requires the PUK code
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="SIM_PUK2" value="5">
|
||||
<tp:docstring>
|
||||
SIM requires the PUK2 code
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_SP_PIN" value="6">
|
||||
<tp:docstring>
|
||||
Modem requires the service provider PIN code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_SP_PUK" value="7">
|
||||
<tp:docstring>
|
||||
Modem requires the service provider PUK code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_NET_PIN" value="8">
|
||||
<tp:docstring>
|
||||
Modem requires the network PIN code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_NET_PUK" value="9">
|
||||
<tp:docstring>
|
||||
Modem requires the network PUK code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_SIM_PIN" value="10">
|
||||
<tp:docstring>
|
||||
Modem requires the PIN code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_CORP_PIN" value="11">
|
||||
<tp:docstring>
|
||||
Modem requires the corporate PIN code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_CORP_PUK" value="12">
|
||||
<tp:docstring>
|
||||
Modem requires the corporate PUK code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_FSIM_PIN" value="13">
|
||||
<tp:docstring>
|
||||
Modem requires the FSIM-PIN code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_FSIM_PUK" value="14">
|
||||
<tp:docstring>
|
||||
Modem requires the FSIM-PUK code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_NETSUB_PIN" value="15">
|
||||
<tp:docstring>
|
||||
Modem requires the network subset PIN code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="PH_NETSUB_PUK" value="16">
|
||||
<tp:docstring>
|
||||
Modem requires the network subset PUK code.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
</tp:enum>
|
||||
|
||||
<tp:enum name="MM_MODEM_STATE" type="u">
|
||||
<tp:enumvalue suffix="UNKNOWN" value="0">
|
||||
<tp:docstring>
|
||||
State unknown or not reportable.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="DISABLED" value="10">
|
||||
<tp:docstring>
|
||||
The modem is not enabled and is powered down.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="DISABLING" value="20">
|
||||
<tp:docstring>
|
||||
The modem is current transitioning to the DISABLED state.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="ENABLING" value="30">
|
||||
<tp:docstring>
|
||||
The modem is currently transitioning to the ENABLED state.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="ENABLED" value="40">
|
||||
<tp:docstring>
|
||||
The modem is enabled and powered on but not registered with a network
|
||||
provider and not available for data connections.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="SEARCHING" value="50">
|
||||
<tp:docstring>
|
||||
The modem is searching for a network provider to register with.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="REGISTERED" value="60">
|
||||
<tp:docstring>
|
||||
The modem is registered with a network provider, and data connections
|
||||
and messaging may be available for use.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="DISCONNECTING" value="70">
|
||||
<tp:docstring>
|
||||
The modem is disconnecting and deactivating the last active packet
|
||||
data bearer. This state will not be entered if more than one packet
|
||||
data bearer is active and one of the active bearers is deactivated.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="CONNECTING" value="80">
|
||||
<tp:docstring>
|
||||
The modem is activating and connecting the first packet data bearer.
|
||||
Subsequent bearer activations when another bearer is already active
|
||||
do not cause this state to be entered.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="CONNECTED" value="90">
|
||||
<tp:docstring>
|
||||
One or more packet data bearers is active and connected.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
</tp:enum>
|
||||
|
||||
<tp:enum name="MM_MODEM_STATE_CHANGED_REASON" type="u">
|
||||
<tp:enumvalue suffix="UNKNOWN" value="0">
|
||||
<tp:docstring>
|
||||
Reason unknown or not reportable.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="USER_REQUESTED" value="1">
|
||||
<tp:docstring>
|
||||
State change was requested by an interface user.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="SUSPEND" value="2">
|
||||
<tp:docstring>
|
||||
State change was caused by a system suspend.
|
||||
</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
</tp:enum>
|
||||
|
||||
<tp:enum name="MM_MODEM_ACCESS_TECH" type="u">
|
||||
<tp:docstring>
|
||||
Describes various access technologies that a device uses when registered
|
||||
with or connected to a network.
|
||||
</tp:docstring>
|
||||
<tp:enumvalue suffix="UNKNOWN" value="0">
|
||||
<tp:docstring>The access technology used is unknown</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="POTS" value="1">
|
||||
<tp:docstring>Analog wireline telephone</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="GSM" value="2">
|
||||
<tp:docstring>GSM</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="GSM_COMPACT" value="3">
|
||||
<tp:docstring>Compact GSM</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="GPRS" value="4">
|
||||
<tp:docstring>GPRS</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="EDGE" value="5">
|
||||
<tp:docstring>EDGE (ETSI 27.007: "GSM w/EGPRS")</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="UMTS" value="6">
|
||||
<tp:docstring>UMTS (ETSI 27.007: "UTRAN")</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="HSDPA" value="7">
|
||||
<tp:docstring>HSDPA (ETSI 27.007: "UTRAN w/HSDPA")</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="HSUPA" value="8">
|
||||
<tp:docstring>HSUPA (ETSI 27.007: "UTRAN w/HSUPA")</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="HSPA" value="9">
|
||||
<tp:docstring>HSPA (ETSI 27.007: "UTRAN w/HSDPA and HSUPA")</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="HSPA_PLUS" value="10">
|
||||
<tp:docstring>HSPA+ (ETSI 27.007: "UTRAN w/HSPA+")</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="1XRTT" value="11">
|
||||
<tp:docstring>CDMA2000 1xRTT</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="EVDO0" value="12">
|
||||
<tp:docstring>CDMA2000 EVDO revision 0</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="EVDOA" value="13">
|
||||
<tp:docstring>CDMA2000 EVDO revision A</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="EVDOB" value="14">
|
||||
<tp:docstring>CDMA2000 EVDO revision B</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="LTE" value="15">
|
||||
<tp:docstring>LTE (ETSI 27.007: "E-UTRAN")</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
</tp:enum>
|
||||
|
||||
<tp:enum name="MM_MODEM_MODE" type="u">
|
||||
<tp:docstring>
|
||||
Bitfield to indicate which access modes are supported, allowed or
|
||||
preferred in a given device.
|
||||
</tp:docstring>
|
||||
<tp:enumvalue suffix="NONE" value="0x00">
|
||||
<tp:docstring>None</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="1G" value="0x01">
|
||||
<tp:docstring>CSD, GSM</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="2G" value="0x02">
|
||||
<tp:docstring>GPRS, EDGE</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="3G" value="0x04">
|
||||
<tp:docstring>UMTS, HSxPA</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="4G" value="0x08">
|
||||
<tp:docstring>LTE</tp:docstring>
|
||||
</tp:enumvalue>
|
||||
<tp:enumvalue suffix="ANY" value="0xFFFFFFFF">
|
||||
<tp:docstring>
|
||||
Any mode can be used (only this value allowed for POTS modems)
|
||||
</tp:docstring>
|
||||
</tp:enum>
|
||||
|
||||
<tp:flags name="MM_MODEM_BAND" value-prefix="MM_MODEM_BAND" type="u">
|
||||
<tp:docstring>
|
||||
A 64-bit wide bitfield describing the specific radio bands supported by
|
||||
the device and the radio bands the device is allowed to use when
|
||||
connecting to a mobile network.
|
||||
</tp:docstring>
|
||||
<tp:flag suffix="UNKNOWN" value="0x0">
|
||||
<tp:docstring>Unknown or invalid band</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="ANY" value="0x1">
|
||||
<tp:docstring>For certain operations, allow the modem to select a band automatically.</tp:docstring>
|
||||
</tp:flag>
|
||||
|
||||
<!-- GSM/UMTS/3GPP bands -->
|
||||
<tp:flag suffix="EGSM" value="0x2">
|
||||
<tp:docstring>GSM/GPRS/EDGE 900 MHz</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="DCS" value="0x4">
|
||||
<tp:docstring>GSM/GPRS/EDGE 1800 MHz</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="PCS" value="0x8">
|
||||
<tp:docstring>GSM/GPRS/EDGE 1900 MHz</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="G850" value="0x10">
|
||||
<tp:docstring>GSM/GPRS/EDGE 850 MHz</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="U2100" value="0x20">
|
||||
<tp:docstring>WCDMA 2100 MHz (Class I)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="U1800" value="0x40">
|
||||
<tp:docstring>WCDMA 3GPP 1800 MHz (Class III)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="U17IV" value="0x80">
|
||||
<tp:docstring>WCDMA 3GPP AWS 1700/2100 MHz (Class IV)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="U800" value="0x100">
|
||||
<tp:docstring>WCDMA 3GPP UMTS 800 MHz (Class VI)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="U850" value="0x200">
|
||||
<tp:docstring>WCDMA 3GPP UMTS 850 MHz (Class V)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="U900" value="0x400">
|
||||
<tp:docstring>WCDMA 3GPP UMTS 900 MHz (Class VIII)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="U17IX" value="0x800">
|
||||
<tp:docstring>WCDMA 3GPP UMTS 1700 MHz (Class IX)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="U1900" value="0x1000">
|
||||
<tp:docstring>WCDMA 3GPP UMTS 1900 MHz (Class II)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="U2600" value="0x2000">
|
||||
<tp:docstring>WCDMA 3GPP UMTS 2600 MHz (Class VII, internal)</tp:docstring>
|
||||
</tp:flag>
|
||||
|
||||
<!-- CDMA Band Classes (see 3GPP2 C.S0057-C) -->
|
||||
<tp:flag suffix="CDMA_BC0_CELLULAR_800" value="0x0000000100000000">
|
||||
<tp:docstring>CDMA Band Class 0 (US Cellular 850MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC1_PCS_1900" value="0x0000000200000000">
|
||||
<tp:docstring>CDMA Band Class 1 (US PCS 1900MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC2_TACS" value="0x0000000400000000">
|
||||
<tp:docstring>CDMA Band Class 2 (UK TACS 900MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC3_JTACS" value="0x0000000800000000">
|
||||
<tp:docstring>CDMA Band Class 3 (Japanese TACS)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC4_KOREAN_PCS" value="0x0000001000000000">
|
||||
<tp:docstring>CDMA Band Class 4 (Korean PCS)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC5_NMT450" value="0x0000002000000000">
|
||||
<tp:docstring>CDMA Band Class 5 (NMT 450MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC6_IMT2000" value="0x0000004000000000">
|
||||
<tp:docstring>CDMA Band Class 6 (IMT2000 2100MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC7_CELLULAR_700" value="0x0000008000000000">
|
||||
<tp:docstring>CDMA Band Class 7 (Cellular 700MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC8_1800" value="0x0000010000000000">
|
||||
<tp:docstring>CDMA Band Class 8 (1800MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC9_900" value="0x0000020000000000">
|
||||
<tp:docstring>CDMA Band Class 9 (900MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC10_SECONDARY_800" value="0x0000040000000000">
|
||||
<tp:docstring>CDMA Band Class 10 (US Secondary 800)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC11_PAMR_400" value="0x0000080000000000">
|
||||
<tp:docstring>CDMA Band Class 11 (European PAMR 400MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC12_PAMR_800" value="0x0000100000000000">
|
||||
<tp:docstring>CDMA Band Class 12 (PAMR 800MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC13_IMT2000_2500" value="0x0000200000000000">
|
||||
<tp:docstring>CDMA Band Class 13 (IMT2000 2500MHz Expansion)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC14_PCS2_1900" value="0x0000400000000000">
|
||||
<tp:docstring>CDMA Band Class 14 (More US PCS 1900MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC15_AWS" value="0x0000800000000000">
|
||||
<tp:docstring>CDMA Band Class 15 (AWS 1700MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC16_US_2500" value="0x0001000000000000">
|
||||
<tp:docstring>CDMA Band Class 16 (US 2500MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC17_US_FLO_2500" value="0x0002000000000000">
|
||||
<tp:docstring>CDMA Band Class 17 (US 2500MHz Forward Link Only)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC18_US_PS_700" value="0x0004000000000000">
|
||||
<tp:docstring>CDMA Band Class 18 (US 700MHz Public Safety)</tp:docstring>
|
||||
</tp:flag>
|
||||
<tp:flag suffix="CDMA_BC19_US_LOWER_700" value="0x0008000000000000">
|
||||
<tp:docstring>CDMA Band Class 19 (US Lower 700MHz)</tp:docstring>
|
||||
</tp:flag>
|
||||
</tp:flags>
|
||||
|
||||
</interface>
|
||||
</node>
|
||||
|
||||
Reference in New Issue
Block a user