diff --git a/ril/bundle.json b/ril/bundle.json
index e4c3e506c1f0d7c31961968fa6742b71135dd46d..18a2653010cce893e21264d4c2881cca15eb6e5e 100644
--- a/ril/bundle.json
+++ b/ril/bundle.json
@@ -29,14 +29,14 @@
},
"build": {
"sub_component": [
- "//drivers/interface/ril/v1_1:ril_idl_target",
+ "//drivers/interface/ril/v1_0:ril_idl_target",
"//base/telephony/ril_adapter/interfaces/innerkits:hril_innerkits"
],
"test": [
],
"inner_kits": [
{
- "name": "//drivers/interface/ril/v1_1:libril_proxy_1.1",
+ "name": "//drivers/interface/ril/v1_0:libril_proxy_1.0",
"header": {
"header_files": [
],
@@ -44,7 +44,7 @@
}
},
{
- "name": "//drivers/interface/ril/v1_1:ril_idl_headers",
+ "name": "//drivers/interface/ril/v1_0:ril_idl_headers",
"header": {
"header_files": [
],
diff --git a/ril/v1_1/BUILD.gn b/ril/v1_1/BUILD.gn
deleted file mode 100644
index 4204dbd5ccc4b9e176b6065898df9eb5f919d7af..0000000000000000000000000000000000000000
--- a/ril/v1_1/BUILD.gn
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright (c) 2023 Huawei Device Co., Ltd.
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-import("//drivers/hdf_core/adapter/uhdf2/hdi.gni")
-if (defined(ohos_lite)) {
- group("libril_proxy_1.1") {
- deps = []
- public_configs = []
- }
-} else {
- hdi("ril") {
- module_name = "ril_service"
- sources = [
- "IRil.idl",
- "IRilCallback.idl",
- "Types.idl",
- ]
- language = "cpp"
- subsystem_name = "hdf"
- part_name = "drivers_interface_ril"
- }
-}
diff --git a/ril/v1_1/IRil.idl b/ril/v1_1/IRil.idl
deleted file mode 100644
index 81d686e4da77913ff175337046efdc3847de3106..0000000000000000000000000000000000000000
--- a/ril/v1_1/IRil.idl
+++ /dev/null
@@ -1,1675 +0,0 @@
-/*
- * Copyright (c) 2023 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @addtogroup Ril
- * @{
- *
- * @brief Defines Ril-related APIs.
- *
- * The radio interface layer (RIL) module provides APIs and callbacks for upper-layer
- * telephony services, including call, SMS, MMS, network search, and SIM card services.
- *
- * @since 3.2
- * @version 1.1
- */
-
-/**
- * @file IRil.idl
- *
- * @brief Declares the request API of the RIL module.
- *
- * @since 3.2
- * @version 1.1
- */
-
-/**
- * @brief Defines the path for the package of the RIL module APIs.
- *
- * @since 3.2
- * @version 1.1
- */
-package ohos.hdi.ril.v1_1;
-import ohos.hdi.ril.v1_1.IRilCallback;
-import ohos.hdi.ril.v1_1.Types;
-
-/**
- * @brief Declares the request API of the RIL module.
- *
- * Request APIs are called to make calls, send SMS and MMS messages, activate SIM cards,
- * and access the Internet.
- *
- * @since 3.2
- * @version 1.1
- */
-interface IRil {
- /**
- * @brief Sets an IRil callback.
- *
- * @param rilCallback Callback to set. For details, see {@link IRilCallback}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetCallback([in] IRilCallback rilCallback);
-
- /**
- * @brief Sets the emergency call number.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param emergencyInfoList Emergency call number list. For details, see {@link EmergencyInfoList}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetEmergencyCallList([in] int slotId, [in] int serialId, [in] struct EmergencyInfoList emergencyInfoList);
-
- /**
- * @brief Obtains the emergency number.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetEmergencyCallList([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the call status list.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCallList([in] int slotId, [in] int serialId);
-
- /**
- * @brief Makes a call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dialInfo Dialing information. For details, see {@link DialInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] Dial([in] int slotId, [in] int serialId, [in] struct DialInfo dialInfo);
-
- /**
- * @brief Rejects a call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] Reject([in] int slotId, [in] int serialId);
-
- /**
- * @brief Ends a call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param callId Call ID.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] Hangup([in] int slotId, [in] int serialId, [in] int callId);
-
- /**
- * @brief Answers a call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] Answer([in] int slotId, [in] int serialId);
-
- /**
- * @brief Holds a call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] HoldCall([in] int slotId, [in] int serialId);
-
- /**
- * @brief Unholds a call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] UnHoldCall([in] int slotId, [in] int serialId);
-
- /**
- * @brief Switches a call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SwitchCall([in] int slotId, [in] int serialId);
-
- /**
- * @brief Combines calls into a conference call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param callType Call type. Currently, the value can only be 0 (voice call).
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] CombineConference([in] int slotId, [in] int serialId, [in] int callType);
-
- /**
- * @brief Separates calls from a conference call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param callId Call ID.
- * @param callType Call type. Currently, the value can only be 0 (voice call).
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SeparateConference([in] int slotId, [in] int serialId, [in] int callId, [in] int callType);
-
- /**
- * @brief Obtains the call waiting status.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCallWaiting([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sets the call waiting information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param activate Whether to enable or disable call waiting. The value 0 means to
- * disable the call waiting function, and the value 1 means the opposite.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetCallWaiting([in] int slotId, [in] int serialId, [in] int activate);
-
- /**
- * @brief Obtains the call forwarding information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param reason Call forwarding type. The value 0 indicates unconditional call forwarding,
- * 1 indicates call forwarding when the user is busy, 2 indicates call forwarding
- * when the user does not reply, and 3 indicates call forwarding when the user is unreachable.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCallTransferInfo([in] int slotId, [in] int serialId, [in] int reason);
-
- /**
- * @brief Sets the call forwarding status.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param callForwardSetInfo Call forwarding information. For details, see {@link CallForwardSetInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetCallTransferInfo([in] int slotId, [in] int serialId,
- [in] struct CallForwardSetInfo callForwardSetInfo);
-
- /**
- * @brief Obtains the call restriction information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param fac Object for call restriction.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCallRestriction([in] int slotId, [in] int serialId, [in] String fac);
-
- /**
- * @brief Sets the call restriction information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param callRestrictionInfo Call restriction information. For details, see {@link CallRestrictionInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetCallRestriction([in] int slotId, [in] int serialId,
- [in] struct CallRestrictionInfo callRestrictionInfo);
-
- /**
- * @brief Obtains the calling line identification presentation (CLIP) information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetClip([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sets the CLIP information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param action Whether to enable or disable the CLIP function. The value 0 means to
- * disable the CLIP function, and the value 1 means the opposite.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetClip([in] int slotId, [in] int serialId, [in] int action);
-
- /**
- * @brief Obtains the calling line identification restriction (CLIR) information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetClir([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sets the CLIR information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param action Whether to enable or disable the CLIR function. The value 0 means to
- * disable the CLIR function, and the value 1 means the opposite.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetClir([in] int slotId, [in] int serialId, [in] int action);
-
- /**
- * @brief Sets the call preference mode.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param mode Call preference mode. The value 1 indicates that only the CS domain is used for calls.
- * The value 2 indicates that the CS domain is preferred for calls. The value 3 indicates
- * that the IP multimedia system (IMS) is preferred for calls. The value 4 indicates that only the
- * IMS is used for calls.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetCallPreferenceMode([in] int slotId, [in] int serialId, [in] int mode);
-
- /**
- * @brief Obtains the call preference mode.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCallPreferenceMode([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sets unstructured supplementary service data (USSD) information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param str USSD information. The value contains a maximum of 160 characters.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetUssd([in] int slotId, [in] int serialId, [in] String str);
-
- /**
- * @brief close unfinished unstructured supplementary service data (USSD).
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 4.0
- * @version 1.1
- */
- [oneway] CloseUnFinishedUssd([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the USSD information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetUssd([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sets the mute mode.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param mute Whether to enable the mute function. The value 0 means to
- * disable the mute function, and the value 1 means the opposite.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetMute([in] int slotId, [in] int serialId, [in] int mute);
-
- /**
- * @brief Obtains the mute mode.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetMute([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the call failure cause.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCallFailReason([in] int slotId, [in] int serialId);
-
- /**
- * @brief Holds and resumes a call.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param type Type of ending calls. The value 0 indicates that the call is ended directly,
- * the value 1 indicates that the call is ended in the foreground and background,
- * the value 2 indicates that the call is ended in the foreground and resumed in the background,
- * and the value 3 indicates that all calls are ended.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] CallSupplement([in] int slotId, [in] int serialId, [in] int type);
-
- /**
- * @brief Sends dual tone multi-frequency (DTMF).
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dtmfInfo DTMF information. For details, see {@link DtmfInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SendDtmf([in] int slotId, [in] int serialId, [in] struct DtmfInfo dtmfInfo);
-
- /**
- * @brief Enables DTMF.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dtmfInfo DTMF information. For details, see {@link DtmfInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] StartDtmf([in] int slotId, [in] int serialId, [in] struct DtmfInfo dtmfInfo);
-
- /**
- * @brief Disables DTMF.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dtmfInfo DTMF information. For details, see {@link DtmfInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] StopDtmf([in] int slotId, [in] int serialId, [in] struct DtmfInfo dtmfInfo);
-
- /**
- * @brief Sets the call barring password.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param setBarringInfo Call barring information. For details, see {@link SetBarringInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetBarringPassword([in] int slotId, [in] int serialId, [in] struct SetBarringInfo setBarringInfo);
-
- /**
- * @brief Activates the packet data protocol (PDP) context.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dataCallInfo Data service information. For details, see {@link DataCallInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] ActivatePdpContext([in] int slotId, [in] int serialId, [in] struct DataCallInfo dataCallInfo);
-
- /**
- * @brief Deactivates the PDP context.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param uniInfo Common information. For details, see {@link UniInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] DeactivatePdpContext([in] int slotId, [in] int serialId, [in] struct UniInfo uniInfo);
-
- /**
- * @brief Obtains the PDP context list.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param uniInfo Common information. For details, see {@link UniInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetPdpContextList([in] int slotId, [in] int serialId, [in] struct UniInfo uniInfo);
-
- /**
- * @brief Sets the initial default network access technology (APN).
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dataProfileDataInfo PDP context information. For details, see {@link DataProfileDataInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetInitApnInfo([in] int slotId, [in] int serialId, [in] struct DataProfileDataInfo dataProfileDataInfo);
-
- /**
- * @brief Obtains the current link information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param cid PDP context ID.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetLinkBandwidthInfo([in] int slotId, [in] int serialId, [in] int cid);
-
- /**
- * @brief Sets the rule for reporting the data link bandwidth information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dataLinkBandwidthReportingRule Data link bandwidth reporting rule.
- * For details, see {@link DataLinkBandwidthReportingRule}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetLinkBandwidthReportingRule([in] int slotId, [in] int serialId,
- [in] struct DataLinkBandwidthReportingRule dataLinkBandwidthReportingRule);
-
- /**
- * @brief Enables the data service of a SIM card slot.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dataPermitted Whether to enable the data service. The value 0 means to
- * disable the data service, and the value 1 means the opposite.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetDataPermitted([in] int slotId, [in] int serialId, [in] int dataPermitted);
-
- /**
- * @brief Sets the PDP context information for the data service.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dataProfilesInfo PDP context list. For details, see {@link DataProfilesInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetDataProfileInfo([in] int slotId, [in] int serialId, [in] struct DataProfilesInfo dataProfilesInfo);
-
- /**
- * @brief Sends the data service performance mode.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dataPerformanceInfo Data service performance mode. For details, see {@link DataPerformanceInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SendDataPerformanceMode([in] int slotId, [in] int serialId, [in] struct DataPerformanceInfo dataPerformanceInfo);
-
- /**
- * @brief Sends the data service sleep mode.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param dataSleepInfo Data service sleep mode. For details, see {@link DataSleepInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SendDataSleepMode([in] int slotId, [in] int serialId, [in] struct DataSleepInfo dataSleepInfo);
-
- /**
- * @brief Sets the modem status.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param fun Function mode. The value 0 indicates the minimum mode, 1 indicates the online mode,
- * and 4 indicates the offline mode. Other modes are chip-specific.
- * @param rst Whether to enable automatic reset of the modem. The value 0 means to disable automatic reset,
- * and the value 1 means the opposite.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetRadioState([in] int slotId, [in] int serialId, [in] int fun, [in] int rst);
-
- /**
- * @brief Obtains the modem status.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetRadioState([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the international mobile equipment identity (IMEI).
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetImei([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the mobile equipment identifier (MEID).
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetMeid([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the radio access technology of the CS domain.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetVoiceRadioTechnology([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the baseband version.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetBasebandVersion([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sends a mobile phone power-off message to the modem.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] ShutDown([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains SIM card data.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param SimIoRequestInfo SIM card data request information. For details, see {@link SimIoRequestInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetSimIO([in] int slotId, [in] int serialId, [in] struct SimIoRequestInfo simIO);
-
- /**
- * @brief Obtains the SIM card status.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetSimStatus([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the international mobile subscriber identity (IMSI) of the SIM card.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetImsi([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the SIM card lock status.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param SimLockInfo SIM card lock information. For details, see {@link SimLockInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetSimLockStatus([in] int slotId, [in] int serialId, [in] struct SimLockInfo simLockInfo);
-
- /**
- * @brief Sets the SIM card lock.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param SimLockInfo SIM card lock information. For details, see {@link SimLockInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetSimLock([in] int slotId, [in] int serialId, [in] struct SimLockInfo simLockInfo);
-
- /**
- * @brief Changes the SIM card password.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param simPassword SIM card password. For details, see {@link SimPasswordInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] ChangeSimPassword([in] int slotId, [in] int serialId, [in] struct SimPasswordInfo simPassword);
-
- /**
- * @brief Sets the PIN for unlocking.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param pin PIN used for unlocking.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] UnlockPin([in] int slotId, [in] int serialId, [in] String pin);
-
- /**
- * @brief Sets the PUK for unlocking.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param puk PUK used for unlocking.
- * @param pin PIN used for unlocking.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] UnlockPuk([in] int slotId, [in] int serialId, [in] String puk, [in] String pin);
-
- /**
- * @brief Sets the PIN2 for unlocking.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param pin2 PIN2 used for unlocking.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] UnlockPin2([in] int slotId, [in] int serialId, [in] String pin2);
-
- /**
- * @brief Sets the PUK2 for unlocking.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param puk2 PUK2 used for unlocking.
- * @param pin2 PIN2 used for unlocking.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] UnlockPuk2([in] int slotId, [in] int serialId, [in] String puk2, [in] String pin2);
-
- /**
- * @brief Specifies whether to activate a SIM card.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param index Index value.
- * @param enable Whether to enable the SIM card. The value 0 means to activate the SIM card,
- * and the value 1 means the opposite.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetActiveSim([in] int slotId, [in] int serialId, [in] int index, [in] int enable);
-
- /**
- * @brief Sends the TerminalResponse instruction of the SIM application toolkit (STK).
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param strCmd String text of the instruction.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SimStkSendTerminalResponse([in] int slotId, [in] int serialId, [in] String strCmd);
-
- /**
- * @brief Sends the Envelope instruction of the STK.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param strCmd String text of the instruction.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SimStkSendEnvelope([in] int slotId, [in] int serialId, [in] String strCmd);
-
- /**
- * @brief Sends the CallSetup instruction of the STK.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param accept Whether to accept the CallSetup request. The value 0 means not to accept the request,
- * and the value 1 means the opposite.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SimStkSendCallSetupRequestResult([in] int slotId, [in] int serialId, [in] int accept);
-
- /**
- * @brief Checks whether the STK is in the Ready state.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SimStkIsReady([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the protocol stack of the primary and secondary SIM cards.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetRadioProtocol([in] int slotId,[in] int serialId);
-
- /**
- * @brief Sets the protocol stack for the primary and secondary SIM cards.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param radioProtocol Radio protocol information. For details, see {@link RadioProtocol}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetRadioProtocol([in] int slotId,[in] int serialId,[in] struct RadioProtocol radioProtocol);
-
- /**
- * @brief Opens the logical channel of the application protocol data unit (APDU).
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param appID Application ID.
- * @param p2 Parameter 2 of the AT instruction code.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SimOpenLogicalChannel([in] int slotId, [in] int serialId, [in] String appID, [in] int p2);
-
- /**
- * @brief Closes the logical channel of the APDU.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param channelId ID of the logical channel to be closed.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SimCloseLogicalChannel([in] int slotId, [in] int serialId, [in] int channelId);
-
- /**
- * @brief Transmits APDU data over the logical channel. The logical channel is opened and closed by the application.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param apduSimIO SIM card data request transmitted through the logical channel of the APDU.
- * For details, see {@link ApduSimIORequestInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SimTransmitApduLogicalChannel([in] int slotId, [in] int serialId,
- [in] struct ApduSimIORequestInfo apduSimIO);
-
- /**
- * @brief Transmits APDU data over the basic channel. The basic channel is the channel opened by default.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param apduSimIO SIM card data request transmitted through the logical channel of the APDU.
- * For details, see {@link ApduSimIORequestInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SimTransmitApduBasicChannel([in] int slotId, [in] int serialId,
- [in] struct ApduSimIORequestInfo apduSimIO);
-
- /**
- * @brief Performs SIM card authentication.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param simAuthInfo SIM card authentication request. For details, see {@link SimAuthenticationRequestInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SimAuthentication([in] int slotId, [in] int serialId,
- [in] struct SimAuthenticationRequestInfo simAuthInfo);
-
- /**
- * @brief Unlocks a SIM card.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param lockType Lock type. For details, see 3GPP TS 22.022 [33].
- * @param key Password used for unlocking. For details, see 3GPP TS 22.022 [33].
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] UnlockSimLock([in] int slotId, [in] int serialId, [in] int lockType, [in] String key);
-
- /**
- * @brief Obtains the signal strength.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetSignalStrength([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the registration status of the CS domain.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCsRegStatus([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the registration status of the packet switched (PS) domain.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetPsRegStatus([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the carrier name.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetOperatorInfo([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains information about available networks.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetNetworkSearchInformation([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the network selection mode.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetNetworkSelectionMode([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sets the network selection mode.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param networkModeInfo Network selection mode. For details, see {@link SetNetworkModeInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetNetworkSelectionMode([in] int slotId, [in] int serialId,
- [in] struct SetNetworkModeInfo networkModeInfo);
-
- /**
- * @brief Obtains information about neighboring cells.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetNeighboringCellInfoList([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains cell information.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCurrentCellInfo([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sets the preferred network type.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param preferredNetworkType Preferred network type. For details, see {@link PreferredNetworkTypeInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetPreferredNetwork([in] int slotId, [in] int serialId, [in] int preferredNetworkType);
-
- /**
- * @brief Obtains the preferred network type.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetPreferredNetwork([in] int slotId, [in] int serialId);
-
- /**
- * @brief Obtains the physical channel configuration.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetPhysicalChannelConfig([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sets the cell location update notification mode.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param mode Notification mode. For details, see {@link RilRegNotifyMode}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetLocateUpdates([in] int slotId, [in] int serialId, [in] enum RilRegNotifyMode mode);
-
- /**
- * @brief Sets the filter of notifications reported by the modem.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param newFilter Notificaiton filter. Binary flag bits are used to indicate different notification types.
- * The value 0 indicates that the filter is disabled, 1 indicates the signal strength,
- * 2 indicates the network registration status, 4 indicates the data connection status,
- * 8 indicates the link capacity, and 16 indicates the physical channel configuration.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetNotificationFilter([in] int slotId, [in] int serialId, [in] int newFilter);
-
- /**
- * @brief Sets the device status.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param deviceStateType Device status type. The value 0 indicates the power saving mode,
- * 1 indicates the charging mode, and 2 indicates the low data mode.
- * @param deviceStateOn Whether to enable the device status switch. The value 0 means to
- * disable the switch, and the value 1 means the opposite.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetDeviceState([in] int slotId, [in] int serialId, [in] int deviceStateType, [in] int deviceStateOn);
-
- /**
- * @brief Sends Global System for Mobile Communications (GSM) SMS messages.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param gsmSmsMessageInfo GSM SMS message information. For details, see {@link GsmSmsMessageInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SendGsmSms([in] int slotId, [in] int serialId, [in] struct GsmSmsMessageInfo gsmSmsMessageInfo);
-
- /**
- * @brief Sends Code Division Multiple Access (CDMA) SMS messages.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param cdmaSmsMessageInfo CDMA SMS message information. For details, see {@link SendCdmaSmsMessageInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SendCdmaSms([in] int slotId, [in] int serialId, [in] struct SendCdmaSmsMessageInfo cdmaSmsMessageInfo);
-
- /**
- * @brief Writes GSM SMS messages to the SIM card.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param gsmSmsMessageInfo GSM SMS message information. For details, see {@link SmsMessageIOInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] AddSimMessage([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo gsmSmsMessageInfo);
-
- /**
- * @brief Deletes GSM SMS messages from the SIM card.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param index Message index.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] DelSimMessage([in] int slotId, [in] int serialId, [in] int index);
-
- /**
- * @brief Updates GSM SMS messages in the SIM card.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param gsmSmsMessageInfo GSM SMS message information. For details, see {@link SmsMessageIOInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] UpdateSimMessage([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo gsmSmsMessageInfo);
-
- /**
- * @brief Writes CDMA SMS messages to the SIM card.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param cdmaSmsMessageInfo CDMA SMS message information. For details, see {@link SmsMessageIOInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] AddCdmaSimMessage([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo cdmaSmsMessageInfo);
-
- /**
- * @brief Deletes CDMA SMS messages from the SIM card.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param index Message index.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] DelCdmaSimMessage([in] int slotId, [in] int serialId, [in] int index);
-
- /**
- * @brief Updates CDMA SMS messages in the SIM card.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param cdmaSmsMessageInfo CDMA SMS message information. For details, see {@link SmsMessageIOInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] UpdateCdmaSimMessage([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo cdmaSmsMessageInfo);
-
- /**
- * @brief Sets a Short Message Service Center (SMSC) address.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param serviceCenterAddress SMSC address. For details, see {@link ServiceCenterAddress}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetSmscAddr([in] int slotId, [in] int serialId, [in] struct ServiceCenterAddress serviceCenterAddress);
-
- /**
- * @brief Obtains the short message center (SMC) address.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetSmscAddr([in] int slotId, [in] int serialId);
-
- /**
- * @brief Activates GSM cell broadcast.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param cellBroadcastInfo GSM cell broadcast configuration information.
- * For details, see {@link CBConfigInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetCBConfig([in] int slotId, [in] int serialId, [in] struct CBConfigInfo cellBroadcastInfo);
-
- /**
- * @brief Obtains the GSM cell broadcast configuration.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCBConfig([in] int slotId, [in] int serialId);
-
- /**
- * @brief Activates CDMA cell broadcast.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param cdmaCBConfigInfoList CDMA cell broadcast configuration list. For details, see {@link CdmaCBConfigInfoList}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SetCdmaCBConfig([in] int slotId, [in] int serialId, [in] struct CdmaCBConfigInfoList cdmaCBConfigInfoList);
-
- /**
- * @brief Obtains the CDMA cell broadcast configuration.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] GetCdmaCBConfig([in] int slotId, [in] int serialId);
-
- /**
- * @brief Sends a long GSM SMS message.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param gsmSmsMessageInfo GSM SMS message information. For details, see {@link GsmSmsMessageInfo}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SendSmsMoreMode([in] int slotId, [in] int serialId, [in] struct GsmSmsMessageInfo gsmSmsMessageInfo);
-
- /**
- * @brief Sends an SMS message acknowledgement.
- *
- * @param slotId Card slot ID.
- * @param serialId Serial ID of a request.
- * @param modeData Processing mode of received SMS messages. For details, see {@link ModeData}.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SendSmsAck([in] int slotId, [in] int serialId, [in] struct ModeData modeData);
-
- /**
- * @brief Sends a acknowledgement to the RIL.
- *
- * @return Returns 0 if the operation is successful.
- * @return Returns a non-0 value if the operation fails.
- *
- * @since 3.2
- * @version 1.0
- */
- [oneway] SendRilAck();
-}
-/** @} */
diff --git a/ril/v1_1/IRilCallback.idl b/ril/v1_1/IRilCallback.idl
deleted file mode 100644
index c45e08a7a792f652c8879e02306b0e522f8cef14..0000000000000000000000000000000000000000
--- a/ril/v1_1/IRilCallback.idl
+++ /dev/null
@@ -1,1645 +0,0 @@
-/*
- * Copyright (c) 2023 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-/**
- * @addtogroup Ril
- * @{
- *
- * @brief Defines Ril-related APIs.
- *
- * The radio interface layer (RIL) module provides APIs and callbacks for upper-layer telephony services,
- * including call, SMS, MMS, network search, and SIM card services.
- *
- * @since 3.2
- * @version 1.1
- */
-
-/**
- * @file IRilCallback.idl
- *
- * @brief Declares callback APIs of the RIL module.
- *
- * @since 3.2
- * @version 1.1
- */
-
-/**
- * @brief Defines the path for the package of the RIL module APIs.
- *
- * @since 3.2
- * @version 1.1
- */
-package ohos.hdi.ril.v1_1;
-
-import ohos.hdi.ril.v1_1.Types;
-
-/**
- * @brief Declares callback APIs of the RIL module.
- *
- * These APIs provide the callback functions for making calls, sending SMS and MMS messages,
- * activating SIM cards, and accessing the Internet. The caller needs to implement these callbacks.
- *
- * @since 3.2
- * @version 1.1
- */
-[callback] interface IRilCallback {
- /**
- * @brief Callback used to report the emergency call number.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param emergencyInfoList Emergency call number list. For details, see {@link EmergencyInfoList}.
- *
- * @since 3.2
- * @version 1.0
- */
- CallEmergencyNotice([in] struct RilRadioResponseInfo responseInfo,
- [in] struct EmergencyInfoList emergencyInfoList);
-
- /**
- * @brief Callback for reporting call status updates.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- CallStateUpdated([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for reporting the call ringback tone.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param ringbackVoice Ringback tone information. For details, see {@link RingbackVoice}.
- *
- * @since 3.2
- * @version 1.0
- */
- CallRingbackVoiceNotice([in] struct RilRadioResponseInfo responseInfo,
- [in] struct RingbackVoice ringbackVoice);
-
- /**
- * @brief Callback for reporting the Single Radio Voice Call Continuity (SRVCC) status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param srvccStatus SRVCC status. For details, see {@link SrvccStatus}.
- *
- * @since 3.2
- * @version 1.0
- */
- CallSrvccStatusNotice([in] struct RilRadioResponseInfo responseInfo,
- [in] struct SrvccStatus srvccStatus);
-
- /**
- * @brief Callback for reporting USSD service information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param ussdNoticeInfo USSD service information. For details, see {@link UssdNoticeInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- CallUssdNotice([in] struct RilRadioResponseInfo responseInfo,
- [in] struct UssdNoticeInfo ussdNoticeInfo);
-
- /**
- * @brief Callback for reporting supplementary service information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param ssNoticeInfo Supplementary service information. For details, see {@link SsNoticeInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- CallSsNotice([in] struct RilRadioResponseInfo responseInfo,
- [in] struct SsNoticeInfo ssNoticeInfo);
-
- /**
- * @brief Callback for reporting the Reverse Single Radio Voice Call Continuity (RSRVCC) status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- CallRsrvccStatusNotify([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of setting the emergency call number list.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetEmergencyCallListResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the emergency call number list.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param emergencyInfoList Emergency call number list. For details, see {@link EmergencyInfoList}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetEmergencyCallListResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct EmergencyInfoList emergencyInfoList);
-
- /**
- * @brief Callback for the response of querying the call status information list.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param callList Call status information list. For details, see {@link CallInfoList}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCallListResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CallInfoList callList);
-
- /**
- * @brief Callback for the response of making a call.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- DialResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for ending a call.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- HangupResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for rejecting a call.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- RejectResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for answering a call.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- AnswerResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for holding a call.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- HoldCallResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for unholding a call.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- UnHoldCallResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for switching a call.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SwitchCallResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for querying the CLIP service.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param getClipResult CLIP result. For details, see {@link GetClipResult}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetClipResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct GetClipResult getClipResult);
-
- /**
- * @brief Callback for setting the CLIP service.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetClipResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for combining calls into a conference call.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- CombineConferenceResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for separating calls from a conference call.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SeparateConferenceResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for ending the call is in the foreground and resuming the call in the background.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- CallSupplementResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for querying the call waiting information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param callWaitResult Call waiting result. For details, see {@link CallWaitResult}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCallWaitingResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CallWaitResult callWaitResult);
-
- /**
- * @brief Callback for setting the call waiting information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetCallWaitingResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for querying call forwarding information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param cFQueryList Call forwarding query information list.
- * For details, see {@link CallForwardQueryInfoList}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCallTransferInfoResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CallForwardQueryInfoList cFQueryList);
-
- /**
- * @brief Callback for the response of setting call forwarding information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetCallTransferInfoResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying call restriction information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param result Call restriction result. For details, see {@link CallRestrictionResult}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCallRestrictionResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CallRestrictionResult result);
-
- /**
- * @brief Callback for the response of setting call restriction information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetCallRestrictionResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying CLIR service information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param getClirResult CLIR result. For details, see {@link GetClirResult}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetClirResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct GetClirResult getClirResult);
-
- /**
- * @brief Callback for the response of setting CLIR service information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetClirResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of enabling DTMF.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- StartDtmfResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of sending DTMF.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SendDtmfResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of stopping DTMF sending.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- StopDtmfResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the call preference mode.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param mode CallPreference mode.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCallPreferenceModeResponse([in] struct RilRadioResponseInfo responseInfo, [in] int mode);
-
- /**
- * @brief Callback for the response of setting the call preference mode.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetCallPreferenceModeResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of setting the USSD service.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetUssdResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of close unfinished USSD.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 4.0
- * @version 1.1
- */
- CloseUnFinishedUssdResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the USSD service.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param cusd USSD service information.
- *
- * @since 3.2
- * @version 1.0
- */
- GetUssdResponse([in] struct RilRadioResponseInfo responseInfo, [in] int cusd);
-
- /**
- * @brief Callback for the response of setting the mute mode.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetMuteResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the mute status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param mute Mute status. The value 0 indicates the unmuted state, and the value 1
- * indicates the muted state.
- *
- * @since 3.2
- * @version 1.0
- */
- GetMuteResponse([in] struct RilRadioResponseInfo responseInfo, [in] int mute);
-
- /**
- * @brief Callback for the response of querying the call failure cause.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param callFail Call failure cause.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCallFailReasonResponse([in] struct RilRadioResponseInfo responseInfo, [in] int callFail);
-
- /**
- * @brief Callback for the response of setting the call restriction password.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetBarringPasswordResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for reporting status updates such as data service connection or disconnection.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param dataCallResultList List of data service activation results. For details, see {@link DataCallResultList}.
- *
- * @since 3.2
- * @version 1.0
- */
- PdpContextListUpdated([in] struct RilRadioResponseInfo responseInfo, [in] struct DataCallResultList dataCallResultList);
-
- /**
- * @brief Callback for the response of activating the data service.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param setupDataCallResultInfo Data service activation result. For details, see {@link SetupDataCallResultInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- ActivatePdpContextResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct SetupDataCallResultInfo setupDataCallResultInfo);
-
- /**
- * @brief Callback for the response of disconnecting the data service.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- DeactivatePdpContextResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the PDP context list.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param dataCallResultList List of data service activation results. For details, see {@link DataCallResultList}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetPdpContextListResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct DataCallResultList dataCallResultList);
-
- /**
- * @brief Callback for the response of setting the initial default access point name (APN).
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetInitApnInfoResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the current data link bandwidth information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param dataLinkBandwidthInfo Data link bandwidth information. For details, see {@link DataLinkBandwidthInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetLinkBandwidthInfoResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct DataLinkBandwidthInfo dataLinkBandwidthInfo);
-
- /**
- * @brief Callback for the response of setting the rule for reporting the data link bandwidth information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetLinkBandwidthReportingRuleResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of enabling the data service for a SIM card slot.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetDataPermittedResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for reporting the radio status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param state Radio status. The value 0 indicates OFF, and the value 1 indicates ON.
- *
- * @since 3.2
- * @version 1.0
- */
- RadioStateUpdated([in] struct RilRadioResponseInfo responseInfo, [in] int state);
-
- /**
- * @brief Callback for reporting the change of the radio access technology.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param voiceRadioTechnology New radio access technology of the CS domain.
- * For details, see {@link VoiceRadioTechnology}.
- *
- * @since 3.2
- * @version 1.0
- */
- VoiceRadioTechUpdated([in] struct RilRadioResponseInfo responseInfo,
- [in] struct VoiceRadioTechnology voiceRadioTechnology);
-
- /**
- * @brief Callback for the response indicating that the mobile phone is powering off.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- ShutDownResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of setting the modem status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetRadioStateResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the modem status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetRadioStateResponse([in] struct RilRadioResponseInfo responseInfo,[in] int state);
-
- /**
- * @brief Callback for the response of querying the international mobile equipment identity (IMEI).
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param imei IMEI of the device.
- *
- * @since 3.2
- * @version 1.0
- */
- GetImeiResponse([in] struct RilRadioResponseInfo responseInfo, [in] String imei);
-
- /**
- * @brief Callback for the response of querying the mobile equipment identifier (MEID).
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param meid MEID of the device.
- *
- * @since 3.2
- * @version 1.0
- */
- GetMeidResponse([in] struct RilRadioResponseInfo responseInfo, [in] String meid);
-
- /**
- * @brief Callback for the response of querying the radio access technology of the CS domain.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param VoiceRadioTechnology Voice radio access technology. For details, see {@link VoiceRadioTechnology}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetVoiceRadioTechnologyResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct VoiceRadioTechnology voiceRadioTechnology);
-
- /**
- * @brief Callback for the response of querying the baseband version.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param basebandVersion Baseband version.
- *
- * @since 3.2
- * @version 1.0
- */
- GetBasebandVersionResponse([in] struct RilRadioResponseInfo responseInfo, [in] String basebandVersion);
-
- /**
- * @brief Callback for reporting SIM card status updates.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStateUpdated([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for reporting the STK SessionEnd instruction.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStkSessionEndNotify([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for reporting STK Proactive instructions.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStkProactiveNotify([in] struct RilRadioResponseInfo responseInfo, [in] String response);
-
- /**
- * @brief Callback for reporting STK Alpha instructions.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStkAlphaNotify([in] struct RilRadioResponseInfo responseInfo, [in] String response);
-
- /**
- * @brief Callback for reporting STK events.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStkEventNotify([in] struct RilRadioResponseInfo responseInfo, [in] String response);
-
- /**
- * @brief Callback for reporting STK CallSetup instructions.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStkCallSetupNotify([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for reporting the SIM card status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimRefreshNotify([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for reporting STK Radio protocol updates.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimRadioProtocolUpdated([in] struct RilRadioResponseInfo responseInfo, [in] struct RadioProtocol radioProtocol);
-
- /**
- * @brief Callback for the response of querying SIM card data.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param result I/O response result of the SIM card. For details, see {@link IccIoResultInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetSimIOResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct IccIoResultInfo result);
-
- /**
- * @brief Callback for the response of obtaining the SIM card status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param CardStatusInfo SIM card status. For details, see {@link CardStatusInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetSimStatusResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct CardStatusInfo result);
-
- /**
- * @brief Callback for the response of obtaining the IMSI of a SIM card.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param response IMSI of the SIM card.
- *
- * @since 3.2
- * @version 1.0
- */
- GetImsiResponse([in] struct RilRadioResponseInfo responseInfo, [in] String response);
-
- /**
- * @brief Callback for the response of obtaining the SIM card lock status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param simLockStatus SIM card lock status. For details, see {@link simLockStatus}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetSimLockStatusResponse([in] struct RilRadioResponseInfo responseInfo, [in] int simLockStatus);
-
- /**
- * @brief Callback for the response of setting the SIM card lock status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param LockStatusResp SIM card lock status response. For details, see {@link LockStatusResp}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetSimLockResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus);
-
- /**
- * @brief Callback for the response of changing the SIM card password.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param LockStatusResp SIM card lock status response. For details, see {@link LockStatusResp}.
- *
- * @since 3.2
- * @version 1.0
- */
- ChangeSimPasswordResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus);
-
- /**
- * @brief Callback for the response of unlocking with the PIN.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param LockStatusResp SIM card lock status response. For details, see {@link LockStatusResp}.
- *
- * @since 3.2
- * @version 1.0
- */
- UnlockPinResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus);
-
- /**
- * @brief Callback for the response of unlocking with the PUK.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param LockStatusResp SIM card lock status response. For details, see {@link LockStatusResp}.
- *
- * @since 3.2
- * @version 1.0
- */
- UnlockPukResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus);
-
- /**
- * @brief Callback for the response of unlocking with PIN2.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param LockStatusResp SIM card lock status response. For details, see {@link LockStatusResp}.
- *
- * @since 3.2
- * @version 1.0
- */
- UnlockPin2Response([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus);
-
- /**
- * @brief Callback for the response of unlocking with PUK2.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param LockStatusResp SIM card lock status response. For details, see {@link LockStatusResp}.
- *
- * @since 3.2
- * @version 1.0
- */
- UnlockPuk2Response([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus);
-
- /**
- * @brief Callback for the response of activating or deactivating the SIM card.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetActiveSimResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of sending the STK TerminalResponse instruction.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStkSendTerminalResponseResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of sending the STK Envelope instruction.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStkSendEnvelopeResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of sending the STK CallSetup instruction.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStkSendCallSetupRequestResultResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying whether the STK is ready.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimStkIsReadyResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the protocol stack of the primary and secondary SIM cards.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param RadioProtocol Radio protocol. For details, see {@link RadioProtocol}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetRadioProtocolResponse([in] struct RilRadioResponseInfo responseInfo,[in] struct RadioProtocol radioProtocol);
-
- /**
- * @brief Callback for the response of setting the protocol stack of the primary and secondary SIM cards.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param RadioProtocol Radio protocol. For details, see {@link RadioProtocol}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetRadioProtocolResponse([in] struct RilRadioResponseInfo responseInfo,[in] struct RadioProtocol radioProtocol);
-
- /**
- * @brief Callback for the response of opening the logical channel for APDU transmission.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param OpenLogicalChannelResponse Response of opening the logical channel.
- * For details, see {@link OpenLogicalChannelResponse}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimOpenLogicalChannelResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct OpenLogicalChannelResponse pOpenLogicalChannelResponse);
-
- /**
- * @brief Callback for the response of closing the logical channel for APDU transmission.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimCloseLogicalChannelResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of transmitting APDU over a logical channel.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param result Data transmission result. For details, see {@link IccIoResultInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimTransmitApduLogicalChannelResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct IccIoResultInfo result);
-
- /**
- * @brief Callback for the response of transmitting APDU over a basic channel.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param result Indicates the data transmission result. For details, see {@link IccIoResultInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimTransmitApduBasicChannelResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct IccIoResultInfo result);
-
- /**
- * @brief Callback for the response of SIM card authentication.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param result SIM card authentication result. For details, see {@link IccIoResultInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SimAuthenticationResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct IccIoResultInfo result);
-
- /**
- * @brief Callback for the response of SIM card unlocking.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param LockStatusResp SIM card lock status response. For details, see {@link LockStatusResp}.
- *
- * @since 3.2
- * @version 1.0
- */
- UnlockSimLockResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct LockStatusResp lockStatus);
-
- /**
- * @brief Callback for reporting network registration status updates of the CS domain.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param csRegStatusInfo Network registration status of the CS domain. For details, see {@link CsRegStatusInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- NetworkCsRegStatusUpdated([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CsRegStatusInfo csRegStatusInfo);
-
- /**
- * @brief Callback for reporting network registration status updates of the PS domain.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param psRegStatusInfo Network registration status of the PS domain. For details, see {@link PsRegStatusInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- NetworkPsRegStatusUpdated([in] struct RilRadioResponseInfo responseInfo,
- [in] struct PsRegStatusInfo psRegStatusInfo);
-
- /**
- * @brief Callback for reporting signal strength updates.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param rssi Signal strength. For details, see {@link Rssi}.
- *
- * @since 3.2
- * @version 1.0
- */
- SignalStrengthUpdated([in] struct RilRadioResponseInfo responseInfo, [in] struct Rssi rssi);
-
- /**
- * @brief Callback for reporting NITZ time zone updates.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param timeZoneStr NITZ time zone.
- *
- * @since 3.2
- * @version 1.0
- */
- NetworkTimeZoneUpdated([in] struct RilRadioResponseInfo responseInfo, [in] String timeZoneStr);
-
- /**
- * @brief Callback for reporting NITZ time updates.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param timeStr NITZ time.
- *
- * @since 3.2
- * @version 1.0
- */
- NetworkTimeUpdated([in] struct RilRadioResponseInfo responseInfo, [in] String timeStr);
-
- /**
- * @brief Callback for reporting physical channel configuration updates.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param channelConfigInfoList Channel configuration information list. For details, see {@link ChannelConfigInfoList}.
- *
- * @since 3.2
- * @version 1.0
- */
- NetworkPhyChnlCfgUpdated([in] struct RilRadioResponseInfo responseInfo,
- [in] struct ChannelConfigInfoList channelConfigInfoList);
-
- /**
- * @brief Callback for reporting cell information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param cellListCurrentInfo Cell information list. For details, see {@link CellListCurrentInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- NetworkCurrentCellUpdated([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CellListCurrentInfo cellListCurrentInfo);
-
- /**
- * @brief Callback for querying the signal strength.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param rssi Signal strength. For details, see {@link Rssi}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetSignalStrengthResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct Rssi rssi);
-
- /**
- * @brief Callback for the response of obtaining the network registration status of the CS domain.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param csRegStatusInfo Network registration status of the CS domain. For details, see {@link CsRegStatusInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCsRegStatusResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CsRegStatusInfo csRegStatusInfo);
-
- /**
- * @brief Callback for the response of obtaining the network registration status of the PS domain.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param psRegStatusInfo Network registration status of the PS domain. For details, see {@link PsRegStatusInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetPsRegStatusResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct PsRegStatusInfo psRegStatusInfo);
-
- /**
- * @brief Callback for the response of querying the carrier name.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param psRegStatusInfo Carrier information. For details, see {@link OperatorInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetOperatorInfoResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct OperatorInfo psRegStatusInfo);
-
- /**
- * @brief Callback for the response of querying available network information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param availableNetworkList Available network list. For details, see {@link AvailableNetworkList}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetNetworkSearchInformationResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct AvailableNetworkList availableNetworkList);
-
- /**
- * @brief Callback for the response of querying the network selection mode.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param setNetworkModeInfo Network modes available for selection. For details, see {@link SetNetworkModeInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetNetworkSelectionModeResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct SetNetworkModeInfo setNetworkModeInfo);
-
- /**
- * @brief Callback for the response of setting the network selection mode.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetNetworkSelectionModeResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying neighboring cell information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param cellListNearbyInfo Neighboring cell information list. For details, see {@link CellListNearbyInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetNeighboringCellInfoListResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CellListNearbyInfo cellListNearbyInfo);
-
- /**
- * @brief Callback for the response of querying cell information.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param cellListCurrentInfo Cell information list. For details, see {@link CellListNearbyInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCurrentCellInfoResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CellListCurrentInfo cellListCurrentInfo);
-
- /**
- * @brief Callback for the response of setting the preferred network type.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetPreferredNetworkResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the preferred network type.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param preferredNetworkTypeInfo Preferred network type information. For details, see {@link PreferredNetworkTypeInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetPreferredNetworkResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct PreferredNetworkTypeInfo preferredNetworkTypeInfo);
-
- /**
- * @brief Callback for the response of querying the physical channel configuration.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param channelConfigInfoList Physical channel configuration information list. For details, see {@link ChannelConfigInfoList}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetPhysicalChannelConfigResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct ChannelConfigInfoList channelConfigInfoList);
-
- /**
- * @brief Callback for the response of enabling or disabling cell location update.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetLocateUpdatesResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of setting a notification filter.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetNotificationFilterResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of setting the device status.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetDeviceStateResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for reporting new GSM SMS message notifications.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param smsMessageInfo SMS message information. For details, see {@link SmsMessageInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- NewSmsNotify([in] struct RilRadioResponseInfo responseInfo, [in] struct SmsMessageInfo smsMessageInfo);
-
- /**
- * @brief Callback for reporting new CDMA SMS message notifications.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param smsMessageInfo SMS message information. For details, see {@link SmsMessageInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- NewCdmaSmsNotify([in] struct RilRadioResponseInfo responseInfo,[in] struct SmsMessageInfo smsMessageInfo);
-
- /**
- * @brief Callback for reporting SMS status notifications.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param smsMessageInfo SMS message information. For details, see {@link SmsMessageInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SmsStatusReportNotify([in] struct RilRadioResponseInfo responseInfo, [in] struct SmsMessageInfo smsMessageInfo);
-
- /**
- * @brief Callback for reporting storage of new SMS message in a SIM card.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param recordNumber Number of SMS messages in the SIM card.
- * @param indicationType Notification type. For details, see {@link HRilNotiType}.
- *
- * @since 3.2
- * @version 1.0
- */
- NewSmsStoredOnSimNotify([in] struct RilRadioResponseInfo responseInfo, [in] int recordNumber,
- [in] int indicationType);
-
- /**
- * @brief Callback for reporting cell broadcast configuration.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param cellBroadConfigReportInfo Cell broadcast information. For details, see {@link CBConfigReportInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- CBConfigNotify([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CBConfigReportInfo cellBroadConfigReportInfo);
-
- /**
- * @brief Callback for the response of sending a GSM SMS message.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param sendSmsResultInfo SMS message sending result. For details, see {@link SendSmsResultInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SendGsmSmsResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct SendSmsResultInfo sendSmsResultInfo);
-
- /**
- * @brief Callback for the response of sending a CDMA SMS message.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param sendSmsResultInfo SMS message sending result. For details, see {@link SendSmsResultInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SendCdmaSmsResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct SendSmsResultInfo sendSmsResultInfo);
-
- /**
- * @brief Callback for the response of writing GSM SMS messages to a SIM card.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- AddSimMessageResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of deleting GSM SMS messages from a SIM card.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- DelSimMessageResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of updating the GSM SMS messages in a SIM card.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- UpdateSimMessageResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of writing CDMA SMS messages to a SIM card.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- AddCdmaSimMessageResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of deleting CDMA SMS messages from a SIM card.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- DelCdmaSimMessageResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of updating the CDMA SMS messages in a SIM card.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- UpdateCdmaSimMessageResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of setting an SMSC address.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetSmscAddrResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the SMSC address.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @param serviceCenterAddress SMSC address. For details, see {@link ServiceCenterAddress}.
- * @since 3.2
- * @version 1.0
- */
- GetSmscAddrResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct ServiceCenterAddress serviceCenterAddress);
-
- /**
- * @brief Callback for the response of activating GSM cell broadcast.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetCBConfigResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the GSM cell broadcast configuration.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param cellBroadcastInfo GSM cell broadcast configuration information. For details, see {@link CBConfigInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCBConfigResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct CBConfigInfo cellBroadcastInfo);
-
- /**
- * @brief Callback for the response of activating CDMA cell broadcast.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SetCdmaCBConfigResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of querying the CDMA cell broadcast configuration.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param cdmaCBConfigInfo CDMA cell broadcast configuration information. For details, see {@link CdmaCBConfigInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- GetCdmaCBConfigResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct CdmaCBConfigInfo cdmaCBConfigInfo);
-
- /**
- * @brief Callback for the response of sending a long GSM SMS message.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- * @param sendSmsResultInfo SMS message sending result. For details, see {@link SendSmsResultInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SendSmsMoreModeResponse([in] struct RilRadioResponseInfo responseInfo,
- [in] struct SendSmsResultInfo sendSmsResultInfo);
-
- /**
- * @brief Callback for the response of acknowledging the receipt of a new SMS message.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID.
- * For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- SendSmsAckResponse([in] struct RilRadioResponseInfo responseInfo);
-
- /**
- * @brief Callback for the response of a common error.
- *
- * @param responseInfo Common response information, such as the card slot ID and request sequence ID. For details, see {@link RilRadioResponseInfo}.
- *
- * @since 3.2
- * @version 1.0
- */
- CommonErrorResponse([in] struct RilRadioResponseInfo responseInfo);
-}
-/** @} */
diff --git a/ril/v1_1/Types.idl b/ril/v1_1/Types.idl
deleted file mode 100644
index df26269c0e66b4dd9c750a90daed7b7fa3b6bc7a..0000000000000000000000000000000000000000
--- a/ril/v1_1/Types.idl
+++ /dev/null
@@ -1,3393 +0,0 @@
-/*
- * Copyright (c) 2023 Huawei Device Co., Ltd.
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-/**
- * @addtogroup Ril
- * @{
- *
- * @brief Defines Ril-related APIs.
- *
- * The radio interface layer (RIL) module provides APIs and callbacks for upper-layer telephony services,
- * including call, SMS, MMS, network search, and SIM card services.
- *
- * @since 3.2
- * @version 1.1
- */
-
-/**
- * @file Types.idl
- *
- * @brief Declares data types used by the Hardware Driver Interfaces (HDIs) of the Ril module.
- *
- * @since 3.2
- * @version 1.1
- */
-
-/**
- * @brief Defines the path for the package of the Ril module APIs.
- *
- * @since 3.2
- * @version 1.1
- */
-package ohos.hdi.ril.v1_1;
-
-/**
- * @brief Enumerates emergency call types.
- */
-enum EccType {
- /**
- * Default
- */
- TYPE_CATEGORY = 0,
-
- /**
- * Police
- */
- TYPE_POLICE = 1,
-
- /**
- * Ambulance
- */
- TYPE_AMBULANCE = 2,
-
- /**
- * Fire alarm
- */
- TYPE_FIRE = 4,
-
- /**
- * Marine police
- */
- TYPE_SEA = 8,
-
- /**
- * Mountain rescue
- */
- TYPE_MOUNTAIN = 16,
-};
-
-/**
- * @brief Specifies whether a number is valid when there is a card or no card.
- */
-enum SimpresentType {
- /**
- * Valid when there is no card
- */
- TYPE_NO_CARD = 0,
-
- /**
- * Valid when there is a card
- */
- TYPE_HAS_CARD = 1,
-};
-
-/**
- * @brief Specifies whether a number is valid for all states or only for the abnormal service state of
- * the circuit switched (CS) domain.
- */
-enum AbnormalServiceType {
- /**
- * Vaild for all states
- */
- TYPE_ALL = 0,
-
- /**
- * Valid only for the abnormal service state of the CS domain
- */
- TYPE_ONLY_CS = 1,
-};
-
-/**
- * @brief Enumerates Ril error codes.
- */
-enum RilErrType {
- /**
- * Call success
- */
- NONE = 0,
-
- /**
- * Common error
- */
- RIL_ERR_GENERIC_FAILURE = 1,
-
- /**
- * Invalid parameters
- */
- RIL_ERR_INVALID_PARAMETER = 2,
-
- /**
- * Memory fully loaded
- */
- RIL_ERR_MEMORY_FULL = 3,
-
- /**
- * Command sending failed
- */
- RIL_ERR_CMD_SEND_FAILURE = 4,
-
- /**
- * Command connection terminated
- */
- RIL_ERR_CMD_NO_CARRIER = 5,
-
- /**
- * Invalid response
- */
- RIL_ERR_INVALID_RESPONSE = 6,
-
- /**
- * Status repeated
- */
- RIL_ERR_REPEAT_STATUS = 7,
-
- /**
- * Network search in progress
- */
- RIL_ERR_NETWORK_SEARCHING = 8,
-
- /**
- * Network search interrupted
- */
- RIL_ERR_NETWORK_SEARCHING_INTERRUPTED = 9,
-
- /**
- * Modem shut down
- */
- RIL_ERR_MODEM_DEVICE_CLOSE = 10,
-
- /**
- * SIM card not inserted
- */
- RIL_ERR_NO_SIMCARD_INSERTED = 11,
-
- /**
- * PIN required
- */
- RIL_ERR_NEED_PIN_CODE = 12,
-
- /**
- * PUK required
- */
- RIL_ERR_NEED_PUK_CODE = 13,
-
- /**
- * Network search timed out
- */
- RIL_ERR_NETWORK_SEARCH_TIMEOUT = 14,
-
- /**
- * Incorrect PIN or PUK
- */
- RIL_ERR_PINPUK_PASSWORD_NOCORRECT = 15,
-
- /**
- * Modem parameter error
- */
- RIL_ERR_INVALID_MODEM_PARAMETER = 50,
-
- /**
- * IPC error
- */
- RIL_ERR_HDF_IPC_FAILURE = 300,
-
- /**
- * Null pointer
- */
- RIL_ERR_NULL_POINT = 301,
-
- /**
- * Vendor library not implemented
- */
- RIL_ERR_VENDOR_NOT_IMPLEMENT = 302
-};
-
-/**
- * @brief Enumerates response types.
- */
-enum RilResponseTypes {
- /**
- * Request response
- */
- RIL_RESPONSE_REQUEST = 0,
-
- /**
- * Notification response
- */
- RIL_RESPONSE_NOTICE = 1,
-
- /**
- * Acknowledgment request response
- */
- RIL_RESPONSE_REQUEST_ACK = 2,
-
- /**
- * Response to a request that must be acknowledged
- */
- RIL_RESPONSE_REQUEST_MUST_ACK = 3,
-
- /**
- * Response to a notification that must be acknowledged
- */
- RIL_RESPONSE_NOTICE_MUST_ACK = 4,
-};
-
-/**
- * @brief Enumerates RIL system service states.
- */
-enum RilSrvStatus {
- /**
- * No service
- */
- RIL_NO_SRV_SERVICE = 0,
-
- /**
- * Restricted service
- */
- RIL_RESTRICTED_SERVICE = 1,
-
- /**
- * Valid service
- */
- RIL_SERVICE_VALID = 2,
-
- /**
- * Restricted regional service
- */
- RIL_REGIONAL_SERVICE = 3,
-
- /**
- * Power saving
- */
- RIL_ENERGY_SAVING_SERVICE = 4,
-};
-
-/**
- * @brief Enumerates system service domains.
- */
-enum RilSrvDomain {
- /**
- * No service
- */
- RIL_NO_DOMAIN_SERVICE = 0,
-
- /**
- * Circuit switched (CS) service only
- */
- RIL_CS_SERVICE = 1,
-
- /**
- * Packet switched (PS) service only
- */
- RIL_PS_SERVICE = 2,
-
- /**
- * CS and PS services
- */
- RIL_CS_PS_SERVICE = 3,
-
- /**
- * CS and PS services not registered
- */
- RIL_CS_PS_SEARCHING = 4,
-
- /**
- * CDMA not supported
- */
- RIL_CDMA_NOT_SUPPORT = 255,
-};
-
-/**
- * @brief Enumerates roaming states.
- */
-enum RilRoamStatus {
- /**
- * Non-roaming state
- */
- RIL_NO_ROAM = 0,
- /**
- * Roaming state
- */
- RIL_ROAMING = 1,
- /**
- * Unknown
- */
- RIL_ROAM_UNKNOWN = 2,
-};
-
-/**
- * @brief Enumerates SIM card lock states.
- */
-enum RilSimLockStatus {
- /**
- * Not locked by CardLock
- */
- RIL_SIM_CARD_UNLOCK = 0,
-
- /**
- * Locked by CardLock
- */
- RIL_SIM_CARD_LOCK = 1,
-};
-
-/**
- * @brief Enumerates system modes.
- */
-enum RilSysMode {
- /**
- * Service not exist
- */
- RIL_NO_SYSMODE_SERVICE = 0,
-
- /**
- * Global System for Mobile Communications (GSM)
- */
- RIL_GSM_MODE = 1,
-
- /**
- * Code Division Multiple Access (CDMA)
- */
- RIL_CDMA_MODE = 2,
-
- /**
- * Wideband Code Division Multiple Access (WCDMA)
- */
- RIL_WCDMA_MODE = 3,
-
- /**
- * Time Division-Synchronous Code Division Multiple Access (TD-SCDMA)
- */
- RIL_TDSCDMA_MODE = 4,
-
- /**
- * Global Microwave Access Interoperability (WiMAX)
- */
- RIL_WIMAX_MODE = 5,
-
- /**
- * Long Term Evolution (LTE)
- */
- RIL_LTE_MODE = 6,
-
- /**
- * Carrier Aggregation (CA)
- */
- RIL_LTE_CA_MODE = 7,
-
- /**
- * 5G New Radio (NR)
- */
- RIL_NR_MODE = 8,
-};
-
-/**
- * @brief Enumerates voice access technologies.
- */
-enum RilRadioTech {
- /**
- * Invalid
- */
- RADIO_TECHNOLOGY_INVALID = 65535,
-
- /**
- * Unknown
- */
- RADIO_TECHNOLOGY_UNKNOWN = 0,
-
- /**
- * GSM
- */
- RADIO_TECHNOLOGY_GSM = 1,
-
- /**
- * 1x Radio Transmission Technology (1XRTT)
- */
- RADIO_TECHNOLOGY_1XRTT = 2,
-
- /**
- * WCDMA
- */
- RADIO_TECHNOLOGY_WCDMA = 3,
-
- /**
- * High Speed Packet Access (HSPA)
- */
- RADIO_TECHNOLOGY_HSPA = 4,
-
- /**
- * High Speed Downlink Packet Access (HSPAP)
- */
- RADIO_TECHNOLOGY_HSPAP = 5,
-
- /**
- * TD-SCDMA
- */
- RADIO_TECHNOLOGY_TD_SCDMA = 6,
-
- /**
- * Evolution Data Only (EV-DO)
- */
- RADIO_TECHNOLOGY_EVDO = 7,
-
- /**
- * Evolved High Speed Packet Data Network (EHRPD)
- */
- RADIO_TECHNOLOGY_EHRPD = 8,
-
- /**
- * LTE
- */
- RADIO_TECHNOLOGY_LTE = 9,
-
- /**
- * CA
- */
- RADIO_TECHNOLOGY_LTE_CA = 10,
-
- /**
- * Industrial Wireless Local Area Network (IWLAN)
- */
- RADIO_TECHNOLOGY_IWLAN = 11,
-
- /**
- * NR
- */
- RADIO_TECHNOLOGY_NR = 12,
-};
-
-/**
- * @brief Enumerates SIM card states.
- */
-enum RilSimStatus {
- /**
- * Invalid USIM card
- */
- RIL_USIM_INVALID = 0,
-
- /**
- * Valid USIM card
- */
- RIL_USIM_VALID = 1,
-
- /**
- * Invalid USIM card in the CS domain
- */
- RIL_USIM_CS_INVALID = 2,
-
- /**
- * Invalid USIM card in the PS domain
- */
- RIL_USIM_PS_INVALID = 3,
-
- /**
- * Invalid USIM card in the CS and PS domains
- */
- RIL_USIM_CS_PS_INVALID = 4,
-
- /**
- * Emulation SIM card
- */
- RIL_ROM_SIM = 240,
-
- /**
- * USIM card not exist
- */
- RIL_NO_USIM = 255,
-};
-
-/**
- * @brief Enumerates network registration states.
- */
-enum RilRegStatus {
- /**
- * Not registered. The mobile terminal (MT) does not search for or register with a new carrier
- */
- NO_REG_MT_NO_SEARCH = 0,
-
- /**
- * Registered with the home network
- */
- REG_MT_HOME = 1,
-
- /**
- * Not registered. The MT is searching for and registering with a new carrier.
- */
- NO_REG_MT_SEARCHING = 2,
-
- /**
- * Registration rejected
- */
- REG_MT_REJECTED = 3,
-
- /**
- * Unknown state
- */
- REG_MT_UNKNOWN = 4,
-
- /**
- * Registered with the roaming network
- */
- REG_MT_ROAMING = 5,
-
- /**
- * Emergency mode
- */
- REG_MT_EMERGENCY = 6,
-};
-
-/**
- * @brief Enumerates cell connection states.
- */
-enum RilCellConnectionStatus {
- /**
- * Unknown connection state
- */
- RIL_SERVING_CELL_UNKNOWN = 0,
-
- /**
- * Primary connection state
- */
- RIL_SERVING_CELL_PRIMARY = 1,
-
- /**
- * Secondary connection state
- */
- RIL_SERVING_CELL_SECONDARY = 2,
-};
-
-/**
- * @brief Enumerates notification modes.
- */
-enum RilRegNotifyMode {
- /**
- * Notification disabled
- */
- REG_NOT_NOTIFY = 0,
-
- /**
- * Notification on network registration status changes
- */
- REG_NOTIFY_STAT_ONLY = 1,
-
- /**
- * Notification on cell information changes
- */
- REG_NOTIFY_STAT_LAC_CELLID = 2,
-};
-
-/**
- * @brief Enumerates radio protocol phases.
- */
-enum RadioProtocolPhase {
- /**
- # Initialization
- */
- RADIO_PROTOCOL_PHASE_INITIAL,
-
- /**
- * Check
- */
- RADIO_PROTOCOL_PHASE_CHECK,
-
- /**
- * Update
- */
- RADIO_PROTOCOL_PHASE_UPDATE,
-
- /**
- * Notification
- */
- RADIO_PROTOCOL_PHASE_NOTIFY,
-
- /**
- * End
- */
- RADIO_PROTOCOL_PHASE_COMPLETE,
-};
-
-/**
- * @brief Enumerates radio protocol states.
- */
-enum RadioProtocolStatus {
- /**
- * No state
- */
- RADIO_PROTOCOL_STATUS_NONE,
-
- /**
- * Success
- */
- RADIO_PROTOCOL_STATUS_SUCCESS,
-
- /**
- * Failed
- */
- RADIO_PROTOCOL_STATUS_FAIL,
-};
-
-/**
- * @brief Defines the emergency call number.
- */
-struct EmergencyCall {
- /**
- * Number index
- */
- int index;
-
- /**
- * Total number
- */
- int total;
-
- /**
- * Emergency number
- */
- String eccNum;
-
- /**
- * Mobile country code
- */
- String mcc;
-
- /**
- * Enumerates emergency call types. For details, see {@link EccType}.
- */
- enum EccType eccType;
-
- /**
- * Whether a number is valid when there is a card or no card. For details, see {@link SimpresentType}.
- */
- enum SimpresentType simpresent;
-
- /**
- * Whether a number is valid for all states or only for the abnormal service state of the CS domain.
- * For details, see {@link AbnormalService}.
- */
- enum AbnormalServiceType abnormalService;
-};
-
-/**
- * @brief Defines the emergency call number list.
- */
-struct EmergencyInfoList {
- /**
- * Total number
- */
- int callSize;
-
- /**
- * Number list ID
- */
- int flag;
-
- /**
- * Number list
- *
- */
- List calls;
-};
-
-/**
- * @brief Defines the common response information.
- */
-struct RilRadioResponseInfo {
- /**
- * Card slot ID
- */
- int slotId;
-
- /**
- * Response flag
- */
- int flag;
-
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Error code
- */
- enum RilErrType error;
-
- /**
- * Response type. For details, see {@link RilResponseTypes}.
- */
- enum RilResponseTypes type;
-};
-
-/**
- * @brief Defines the data service activation result.
- */
-struct SetupDataCallResultInfo {
- /**
- * Activation result ID
- */
- int flag;
-
- /**
- * Reason code of the data service activation failure. For details, see 3GPP TS 24.008.
- */
- int reason;
-
- /**
- * Number of data service activation retry times
- */
- int retryTime;
-
- /**
- * Packet Data Protocol (PDP) context ID
- */
- int cid;
-
- /**
- * Whether the activation is successful. The value 0 indicates that the activation fails,
- * and the value 1 indicates that the activation is successful.
- */
- int active;
-
- /**
- * Maximum number of data units
- */
- int maxTransferUnit;
-
- /**
- * Data unit ID
- */
- int pduSessionId;
-
- /**
- * Data service type. The value default indicates the default data service,
- * and the value mms indicates the MMS data service.
- */
- String type;
-
- /**
- * Network port name
- */
- String netPortName;
-
- /**
- * Network address
- */
- String address;
-
- /**
- * IP address of the primary DNS server
- */
- String dns;
-
- /**
- * IP address of the secondary DNS server.
- */
- String dnsSec;
-
- /**
- * Gateway address
- */
- String gateway;
-
- /**
- * IP address of the primary Proxy-Call Session Control Function (P-CSCF)
- */
- String pCscfPrimAddr;
-
- /**
- * IP address of the secondary P-CSCF
- */
- String pCscfSecAddr;
-};
-
-/**
- * @brief Defines the list of data service activation results.
- */
-struct DataCallResultList {
- /**
- * Number of data service activation results
- */
- int size;
-
- /**
- * List of data service activation results
- */
- List dcList;
-};
-
-/**
- * @brief Defines PDP context information.
- */
-struct DataProfileDataInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Data service type. The value 0 indicates the default data service,
- * and the value 1 indicates the MMS data service.
- */
- int profileId;
-
- /**
- * Authentication mode:
- *- 0: no authentication
- *- 1: Password Authentication Protocol (PAP)
- *- 2: Challenge Handshake Authentication Protocol (CHAP)
- */
- int authenticationType;
-
- /**
- * Access point name
- */
- String apn;
-
- /**
- * Protocol version
- */
- String protocol;
-
- /**
- * Roaming protocol version
- */
- String roamingProtocol;
-
- /**
- * Username
- */
- String userName;
-
- /**
- * Password
- */
- String password;
-};
-
-/**
- * @brief Defines the PDP context list.
- */
-struct DataProfilesInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Number of PDP contexts
- */
- int profilesSize;
-
- /**
- * Roaming or not
- */
- boolean isRoaming;
-
- /**
- * PDP context list
- */
- List profiles;
-};
-
-/**
- * @brief Defines the data service information.
- */
-struct DataCallInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Radio access technology. For details, see {@link RilRadioTech}.
- */
- int radioTechnology;
-
- /**
- * Whether the PDP context is set for the modem
- */
- boolean modemCognitive;
-
- /**
- * Whether roaming is allowed. The value true indicates that roaming is allowed,
- * and the value false indicates the opposite.
- */
- boolean roamingAllowed;
-
- /**
- * Whether the user is roaming. The value true indicates that the user is roaming,
- * and the value false indicates the opposite.
- */
- boolean isRoaming;
-
- /**
- * PDP context information
- */
- struct DataProfileDataInfo dataProfileInfo;
-};
-
-/**
- * @brief Defines the network bandwidth information.
- */
-struct DataLinkBandwidthInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * PDP context ID
- */
- int cid;
-
- /**
- * Quality of Service (QoS) class
- */
- int qi;
-
- /**
- * Downlink GBR
- */
- int dlGfbr;
-
- /**
- * Uplink GBR
- */
- int ulGfbr;
-
- /**
- * Downlink MBR
- */
- int dlMfbr;
-
- /**
- * Uplink MBR
- */
- int ulMfbr;
-
- /**
- * Uplink aggregate maximum bit rate (AMBR)
- */
- int ulSambr;
-
- /**
- * Downlink AMBR
- */
- int dlSambr;
-
- /**
- * Time unit
- */
- int averagingWindow;
-};
-
-/**
- * @brief Defines the network bandwidth reporting rule.
- */
-struct DataLinkBandwidthReportingRule {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Radio access technology. For details, see {@link RilRadioTech}.
- */
- int rat;
-
- /**
- * Delay time
- */
- int delayMs;
-
- /**
- * Uplink delay
- */
- int delayUplinkKbps;
-
- /**
- * Downlink delay
- */
- int delayDownlinkKbps;
-
- /**
- * Maximum number of uplink parameters
- */
- int maximumUplinkKbpsSize;
-
- /**
- * Maximum number of downlink parameters
- */
- int maximumDownlinkKbpsSize;
-
- /**
- * Maximum uplink parameter list
- */
- List maximumUplinkKbps;
-
- /**
- * Maximum downlink parameter list
- */
- List maximumDownlinkKbps;
-};
-
-/**
- * @brief Defines the data service performance mode.
- */
-struct DataPerformanceInfo {
- /**
- * Enabling the performance mode
- */
- int performanceEnable;
-
- /**
- * Forcibly enabling the performance mode
- */
- int enforce;
-};
-
-/**
- * @brief Defines the sleep mode for data services.
- */
-struct DataSleepInfo {
- /**
- * Enabling sleep mode
- */
- int sleepEnable;
-};
-
-/**
- * @brief Defines the common information.
- */
-struct UniInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * GSM index
- */
- int gsmIndex;
-
- /**
- * Common information ID
- */
- boolean flag;
-
- /**
- * Parameter 1
- */
- int arg1;
-
- /**
- * Parameter 2
- */
- int arg2;
-
- /**
- * String
- */
- String strTmp;
-};
-
-/**
- * @brief Defines the radio access technology of the CS domain.
- */
-struct VoiceRadioTechnology {
-
- /**
- * System service status
- */
- enum RilSrvStatus srvStatus;
-
- /**
- * System service domain
- */
- enum RilSrvDomain srvDomain;
-
- /**
- * Roaming status
- */
- enum RilRoamStatus roamStatus;
-
- /**
- * SIM card status
- */
- enum RilSimStatus simStatus;
-
- /**
- * SIM card lock status
- */
- enum RilSimLockStatus lockStatus;
-
- /**
- * System mode
- */
- enum RilSysMode sysMode;
-
- /**
- * String corresponding to the system mode
- */
- String sysModeName;
-
- /**
- * Radio access technology type. For details, see {@link RilRadioTech}.
- */
- enum RilRadioTech actType;
-
- /**
- * String corresponding to the radio access technology type
- */
- String actName;
-
- /**
- * Radio access technology ID
- */
- int flag;
-};
-
-/**
- * @brief Defines the dialing information.
- */
-struct DialInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * CLIR mode:
- *- 0: default
- *- 1: enable
- *- 2: disable
- */
- int clir;
-
- /**
- * Phone number
- */
- String address;
-};
-
-/**
- * @brief Defines the call status information.
- */
-struct CallInfo {
- /**
- * Call ID
- */
- int index;
-
- /**
- * Call direction. The value 0 indicates the calling party, and the value 1 indicates the called party.
- */
- int dir;
-
- /**
- * Call status:
- *- 0: activated state
- *- 1: call hold state
- *- 2: calling party, dialing state
- *- 3: calling party, ringback tone state
- *- 4: called party, incoming call state
- *- 5: called party, call waiting state
- *- 6: disconnected state
- *- 7: disconnecting state
- *- 8: idle state
- */
- int state;
-
- /**
- * Call mode:
- *- 0: voice call
- *- 1: data call
- *- 2: fax
- */
- int mode;
-
- /**
- * Multi-party call status:
- *- 0: not a multi-party call
- *- 1: a multi-party call
- */
- int mpty;
-
- /**
- * Call domain of the voice call:
- *- 0: CS domain
- *- 1: IP multimedia system (IMS) domain
- */
- int voiceDomain;
-
- /**
- * Call type. Currently, the value can only be 0, indicating a voice call.
- */
- int callType;
-
- /**
- * Code address type:
- *-129: common number
- *- 145: international number
- */
- int type;
-
- /**
- * Phone number
- */
- String number;
-
- /**
- * Name of a phone number in the phonebook
- */
- String alpha;
-};
-
-/**
- * @brief Defines the call status information list.
- */
-struct CallInfoList {
- /**
- * Total number
- */
- int callSize;
-
- /**
- * ID of the call status information list
- */
- int flag;
-
- /**
- * Call status information list
- */
- List calls;
-};
-
-/**
- * @brief Obtains the call line identifier presentation (CLIP) result.
- */
-struct GetClipResult {
- /**
- * Query result. For details, see {@link RilErrType}.
- */
- int result;
-
- /**
- * Action of enabling or disabling CLIP
- */
- int action;
-
- /**
- * CLIP subscription status:
- *- 0: CLIP not provided
- *- 1: CLIP provided
- *- 2: unknown (network cause)
- */
- int clipStat;
-};
-
-/**
- * @brief Obtains the calling line identification restriction (CLIR) result.
- */
-struct GetClirResult {
- /**
- * Query result. For details, see {@link RilErrType}.
- */
- int result;
-
- /**
- * Action of enabling or disabling CLIR
- */
- int action;
-
- /**
- * CLIR subscription status:
- *- 0: CLIR not provided
- *- 1: CLIR provided in permanent mode
- *- 2: unknown (network cause)
- *- 3: CLIR temporarily restricted
- *- 4: CLIR temporarily allowed
- */
- int clirStat;
-};
-
-/**
- * @brief Defines the call waiting result.
- */
-struct CallWaitResult {
- /**
- * Query result. For details, see {@link RilErrType}.
- */
- int result;
-
- /**
- * Call waiting status:
- *- 0: not activated
- *- 1: activated
- */
- int status;
-
- /**
- * Service class. For details, see 3GPP TS 27.007.
- */
- int classCw;
-};
-
-/**
- * @brief Defines the call restriction information.
- */
-struct CallRestrictionInfo {
- /**
- * Operation mode:
- *- 0: deactivation
- *- 1: activation
- */
- int mode;
-
- /**
- * Operation object
- */
- String fac;
-
- /**
- * Password
- */
- String password;
-};
-
-/**
- * @brief Defines the call restriction result.
- */
-struct CallRestrictionResult {
- /**
- * Query result. For details, see {@link RilErrType}.
- */
- int result;
-
- /**
- * Service status:
- *- 0: not activated
- *- 1: activated
- */
- int status;
-
- /**
- * Service class. For details, see 3GPP TS 27.007.
- */
- int classCw;
-};
-
-/**
- * @brief Defines the call forwarding information.
- */
-struct CallForwardSetInfo {
- /**
- * Call forwarding type:
- *- 0: call forwarding unconditional
- *- 1: call forwarding on busy
- *- 2: call forwarding on no reply
- *- 3: call forwarding not reachable (no network service, or power-off)
- *- 4: any call forwarding
- *- 5: any call forwarding conditional
- */
- int reason;
-
- /**
- * Call forwarding operation mode:
- *- 0: deactivation
- *- 1: activation
- *- 2: status query
- *- 3: registration
- *- 4: deletion
- */
- int mode;
-
- /**
- * Service class. For details, see 3GPP TS 27.007.
- */
- int classx;
-
- /**
- * Phone number
- */
- String number;
-};
-
-/**
- * @brief Defines the call forwarding query result.
- */
-struct CallForwardQueryResult {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Query result. For details, see {@link RilErrType}.
- */
- int result;
-
- /**
- * Status:
- *- 0: not activated
- *- 1: activated
- */
- int status;
-
- /**
- * Service class. For details, see 3GPP TS 27.007.
- */
- int classx;
-
- /**
- * Number type:
- *-129: common number
- *- 145: international number
- */
- int type;
-
- /**
- * Call forwarding type:
- *- 0: call forwarding unconditional
- *- 1: call forwarding on busy
- *- 2: call forwarding on no reply
- *- 3: call forwarding not reachable (no network service or power-off)
- *- 4: any call forwarding
- *- 5: any call forwarding conditional
- */
- int reason;
-
- /**
- * Waiting time
- */
- int time;
-
- /**
- * Phone number
- */
- String number;
-};
-
-/**
- * @brief Defines the list of call forwarding information.
- */
-struct CallForwardQueryInfoList {
- /**
- * Total number
- */
- int callSize;
-
- /**
- * ID of the call forwarding query result
- */
- int flag;
-
- /**
- * Call forwarding query result
- *
- */
- List calls;
-};
-
-/**
- * @brief Defines the Unstructured Supplementary Data Service (USSD) information.
- */
-struct UssdNoticeInfo {
- /**
- * USSD type:
- *- 0: The network does not require a response from the client.
- *- 1: The network requires a response from the client.
- *- 2: The USSD session is released by the network.
- *- 3: Another local client has responded to the request.
- *- 4: The operation is not supported.
- *- 5: A network timeout occurred.
- */
- int type;
-
- /**
- * USSD string
- */
- String message;
-};
-
-/**
- * @brief Defines the supplementary service information.
- */
-struct SsNoticeInfo {
- /**
- * Service type:
- *- 0: call forwarding unconditional
- *- 1: call forwarding on busy
- *- 2: call forwarding on no reply
- *- 3: call forwarding not reachable (no network service, or power-off)
- */
- int serviceType;
-
- /**
- * Request type:
- *- 0: deactivation
- *- 1: activated
- *- 2: status query
- *- 3: registration
- *- 4: deletion
- */
- int requestType;
-
- /**
- * Service class. For details, see 3GPP TS 27.007.
- */
- int serviceClass;
-
- /**
- * Query result. For details, see {@link RilErrType}.
- */
- int result;
-};
-
-/**
- * @brief Defines the Single Radio Voice Call Continuity (SRVCC) status information.
- */
-struct SrvccStatus {
- /**
- * SRVCC status:
- *- 0: started
- 1: success
- *- 2: failed
- *- 3: cancelled
- */
- int status;
-};
-
-/**
- * @brief Defines the ringback tone information.
- */
-struct RingbackVoice {
- /**
- * Ringback tone type:
- *- 0: network ringback tone
- *- 1: local ringback tone
- */
- int status;
-};
-
-/**
- * @brief Defines the dual tone multi-frequency (DTMF) information.
- */
-struct DtmfInfo {
- /**
- * Call ID
- */
- int callId;
-
- /**
- * Duration for playing the DTMF tone
- */
- int onLength;
-
- /**
- * Interval for sending DTMF signals
- */
- int offLength;
-
- /**
- * DTMF string length
- */
- int stringLength;
-
- /**
- * DTMF keyword
- */
- String dtmfKey;
-};
-
-/**
- * @brief Defines the call restriction password.
- */
-struct SetBarringInfo {
- /**
- * Operation object
- */
- String fac;
-
- /**
- * Old password
- */
- String oldPassword;
-
- /**
- * New password
- */
- String newPassword;
-};
-
-/**
- * @brief Defines the SIM card status information.
- */
-struct CardStatusInfo {
- /**
- * SIM card index
- */
- int index;
-
- /**
- * SIM card type:
- *- 0: unknown
- *- 1: common SIM card
- *- 2: USIM, supporting 4G
- */
- int simType;
-
- /**
- * SIM card status:
- *- -1: unknown
- *- 0: SIM card not inserted
- *- 1: SIM card detected normally
- *- 2: PIN required
- *- 3: PUK required
- *- 4: PIN2 required
- *- 5: PUK2 required
- */
- int simState;
-};
-
-/**
- * @brief Defines the SIM data request information.
- */
-struct SimIoRequestInfo {
- /**
- * Command sent from the mobile equipment (ME) to the SIM card. For details, see GSM 51.011[28].
- */
- int command;
-
- /**
- * Identifier of the basic data file on the SIM card
- */
- int fileId;
-
- /**
- * Command parameter 1 of the SIM data request. For details, see 3GPP TS 51.011[28].
- */
- int p1;
-
- /**
- * Command parameter 2 of the SIM data request. For details, see 3GPP TS 51.011[28].
- */
- int p2;
-
- /**
- * Command parameter 3 of the SIM data request. For details, see 3GPP TS 51.011[28].
- */
- int p3;
-
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Data to be written into the SIM card
- */
- String data;
-
- /**
- * SIM card file path. For details, see ETSI TS 102 221 [60].
- */
- String path;
-
- /**
- * PIN2
- */
- String pin2;
-
- /**
- * App ID
- */
- String aid;
-};
-
-/**
- * @brief Defines the response to the SIM data request.
- */
-struct IccIoResultInfo {
- /**
- * Status word 1 of the SIM card, which is returned by the SIM card after command execution
- */
- int sw1;
-
- /**
- * Status word 2 of the SIM card, which is returned by the SIM card after command execution
- */
- int sw2;
-
- /**
- * Response information
- */
- String response;
-};
-
-/**
- * @brief Defines the SIM card lock information.
- */
-struct SimLockInfo {
- /**
- * Service type. The value is the sum of integers that represent the service type. The default value is 255.
- *- 1: telephony service
- *- 2: data service
- *- 4: fax service
- *- 8: SMS service
- *- 16: data circuit sync
- *- 32: data circuit async
- *- 64: dedicated packet access
- *- 128: dedicated portable device (PAD) access
- */
- int classx;
-
- /**
- * Request SN
- */
- int serial;
-
- /**
- * SIM lock type:
- *- AO: barring of all outgoing calls
- *- OI: barring of all outgoing international calls
- *- OX: barring of all outgoing international calls except those directed to the home country
- *- AI: barring of all incoming calls
- *- IR: barring of all incoming calls when roaming outside the home location
- *- AB: barring of all services (applicable only when the mode is greater than or equal to 0)
- *- AG: barring of the outgoing call service (applicable only when the mode is greater than or equal to 0)
- *- AC: barring of the incoming call service (applicable only when the mode is greater than or equal to 0)
- *- FD: fixed dialing number (FDN)
- *- PN: network locking
- *- PU: subnet locking
- *- PP: SP locking
- */
- String fac;
-
- /**
- * Mode:
- *- 0: deactivation (When fac is set to PN, PU, or PP, the operation is equivalent to unlocking.)
- *- 1: activation (When fac is set to PN, PU, or PP, activation is not supported.)
- *- 2: query
- */
- int mode;
-
- /**
- * SIM card lock status.
- * It indicates the activation status of the first three layers of locks when fac is set to PN, PU, or PP.
- *- 0: not activated
- *- 1: activated
- */
- int status;
-
- /**
- * Password text
- */
- String passwd;
-};
-
-/**
- * @brief Defines the SIM card password information.
- */
-struct SimPasswordInfo {
- /**
- * SIM lock type:
- *- AO: barring of all outgoing calls
- *- OI: barring of all outgoing international calls
- *- OX: barring of all outgoing international calls except those directed to the home country
- *- AI: barring of all incoming calls
- *- IR: barring of all incoming calls when roaming outside the home location
- *- AB: barring of all services (applicable only when the mode is greater than or equal to 0)
- *- AG: barring of the outgoing call service (applicable only when the mode is greater than or equal to 0)
- *- AC: barring of the incoming call service (applicable only when the mode is greater than or equal to 0)
- *- FD: fixed dialing number (FDN)
- *- PN: network locking
- *- PU: subnet locking
- *- PP: SP locking
- */
- String fac;
-
- /**
- * Old password text
- */
- String oldPassword;
-
- /**
- * New password text
- */
- String newPassword;
-
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Maximum password length
- */
- int passwordLength;
-};
-
-/**
- * @brief Defines the maximum number of SIM password attempts.
- */
-struct SimPinInputTimes {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Number of remaining password attempts
- */
- int times;
-
- /**
- * Number of remaining PUK attempts
- */
- int pukTimes;
-
- /**
- * Number of remaining PIN attempts
- */
- int pinTimes;
-
- /**
- * Number of remaining PUK2 attempts
- */
- int puk2Times;
-
- /**
- * Number of remaining PIN2 attempts
- */
- int pin2Times;
-
- /**
- * Request fields, for example:
- * SIM PIN2: SIM card PIN2 request
- */
- String code;
-};
-
-/**
- * @brief Defines the APDU data transmission request information.
- */
-struct ApduSimIORequestInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Channel ID
- */
- int channelId;
-
- /**
- * APDU instruction type. For details, see ETSI 102 221 [55].
- */
- int type;
-
- /**
- * APDU instruction. For details, see ETSI 102 221 [55].
- */
- int instruction;
-
- /**
- * Command parameter 1 of the SIM data request. For details, see 3GPP TS 51.011[28].
- */
- int p1;
-
- /**
- * Command parameter 2 of the SIM data request. For details, see 3GPP TS 51.011[28].
- */
- int p2;
-
- /**
- * Command parameter 3 of the SIM data request. For details, see 3GPP TS 51.011[28].
- * If p3 is a negative value, a 4-byte APDU is sent to the SIM card.
- */
- int p3;
-
- /**
- * Data to be transmitted
- */
- String data;
-};
-
-/**
- * @brief Defines the SIM card authentication request information.
- */
-struct SimAuthenticationRequestInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * App ID
- */
- String aid;
-
- /**
- * Authentication data
- */
- String authData;
-};
-
-/**
- * @brief Defines the response to the request for enabling the logical channel of the APDU.
- */
-struct OpenLogicalChannelResponse {
- /**
- * Status word 1 of the SIM card, which is returned as a response to the SIM data request
- */
- int sw1;
-
- /**
- * Status word 2 of the SIM card, which is returned by the SIM card after command execution
- */
- int sw2;
-
- /**
- * ID of the opened logical channel
- */
- int channelId;
-
- /**
- * Response information
- */
- String response;
-};
-
-/**
- * @brief Defines the response to the request for unlocking the SIM card.
- */
-struct LockStatusResp {
- /**
- * Query result. For details, see {@link RilErrType}.
- */
- int result;
-
- /**
- * Number of remaining attempts
- */
- int remain;
-};
-
-/**
- * @brief Defines the protocol stack information of the primary and secondary SIM cards.
- */
-struct RadioProtocol {
- /**
- * Card slot ID
- */
- int slotId;
-
- /**
- * Session ID
- */
- int sessionId;
-
- /**
- * Radio protocol parameters. For details, see {@link RadioProtocolPhase}.
- */
- enum RadioProtocolPhase phase;
-
- /**
- * Radio protocol technology:
- *- 1: GSM
- *- 2: 1XRTT
- *- 4: WCDMA
- *- 8: HSPA
- *- 16: HSPAP
- *- 32: TDSCDMA
- *- 64: EV-DO
- *- 128: EHRPD
- *- 256: LTE
- *- 512: LTE_CA
- *- 1024: IWLAN
- *- 2048: NR
- */
- int technology;
-
- /**
- * Modem ID, corresponding to slotId at the bottom layer
- */
- int modemId;
-
- /**
- * Radio protocol status. For details, see {@link RadioProtocolStatus}.
- */
- enum RadioProtocolStatus status;
-};
-
-/**
- * @brief Defines the GSM received signal strength indicator.
- */
-struct GsmRssi {
- /**
- * Received signal strength. The value ranges from 0 to 31.
- */
- int rxlev;
-
- /**
- * Bit error rate, which ranges from 0 to 7
- */
- int ber;
-};
-
-/**
- * @brief Defines the CDMA received signal strength indicator.
- */
-struct CdmaRssi {
- /**
- * Absolute value of the signal strength. The value is the actual signal strength multiplied by -1.
- */
- int absoluteRssi;
-
- /**
- * Ratio of the received energy of the pseudo-noise (PN) code chip to the total received power spectral density
- */
- int ecno;
-};
-
-/**
- * @brief Defines the WCDMA received signal strength indicator.
- */
-struct WcdmaRssi {
- /**
- * Signal received strength, which ranges from 0 to 99
- */
- int rxlev;
-
- /**
- * Ratio of the received energy per PN code chip to the total received power spectral density
- */
- int ecio;
-
- /**
- * Received signal code power, which ranges from 0 to 96
- */
- int rscp;
-
- /**
- * Bit error rate, which ranges from 0 to 7
- */
- int ber;
-};
-
-/**
- * @brief Defines the LTE signal strength.
- */
-struct LteRssi {
- /**
- * Signal received strength, which ranges from 0 to 99
- */
- int rxlev;
-
- /**
- * Reference signal received quality, which ranges from 0 to 33
- */
- int rsrq;
-
- /**
- * Received signal code power, which ranges from 0 to 97.
- */
- int rsrp;
-
- /**
- * Signal to interference plus noise ratio, which ranges from 0 to 251 (applicable only to the LTE mode)
- */
- int snr;
-};
-
-/**
- * @brief Defines the TD-SCDMA signal strength.
- */
-struct TdScdmaRssi {
- /**
- * Received signal code power
- */
- int rscp;
-};
-
-/**
- * @brief Defines the NR signal strength.
- */
-struct NrRssi {
- /**
- * Received signal code power
- */
- int rsrp;
-
- /**
- * Received signal quality
- */
- int rsrq;
-
- /**
- * Signal to interference plus noise ratio
- */
- int sinr;
-};
-
-/**
- * @brief Defines the received signal strength information.
- */
-struct Rssi {
- /**
- * GSM signal strength. For details, see {@link GsmRssi}.
- */
- struct GsmRssi gw;
-
- /**
- * CDMA signal strength. For details, see {@link CdmaRssi}.
- */
- struct CdmaRssi cdma;
-
- /**
- * WCDMA signal strength. For details, see {@link WcdmaRssi}.
- */
- struct WcdmaRssi wcdma;
-
- /**
- * LTE signal strength. For details, see {@link LteRssi}.
- */
- struct LteRssi lte;
-
- /**
- * TD-SCDMA signal strength. For details, see {@link TdScdmaRssi}.
- */
- struct TdScdmaRssi tdScdma;
-
- /**
- * NR signal strength. For details, see {@link NrRssi}.
- */
- struct NrRssi nr;
-};
-
-/**
- * @brief Defines the registration status information of the CS domain.
- */
-struct CsRegStatusInfo {
- /**
- * Notification type:
- *- 0: notification disabled
- *- 1: notification using format 1, which is defined by the chip
- *- 2: notification using format 2, which is defined by the chip
- */
- int notifyType;
-
- /**
- * Registration status. For details, see {@link RilRegStatus}.
- */
- enum RilRegStatus regStatus;
-
- /**
- * Location area code
- */
- int lacCode;
-
- /**
- * Cell ID
- */
- int cellId;
-
- /**
- * Radio access technology type. For details, see {@link RilRadioTech}.
- */
- enum RilRadioTech radioTechnology;
-
- /**
- * Flag used by the network search management module in the response
- */
- int flag;
-};
-
-/**
- * @brief Defines the registration status information of the PS domain.
- */
-struct PsRegStatusInfo {
- /**
- * Notification type:
- *- 0: notification disabled
- *- 1: notification using format 1, which is defined by the chip
- *- 2: notification using format 2, which is defined by the chip
- */
- int notifyType;
-
- /**
- * Registration status. For details, see {@link RilRegStatus}.
- */
- enum RilRegStatus regStatus;
-
- /**
- * Location area code
- */
- int lacCode;
-
- /**
- * Cell ID
- */
- int cellId;
-
- /**
- * Radio access technology type. For details, see {@link RilRadioTech}.
- */
- enum RilRadioTech radioTechnology;
-
- /**
- * Whether the NR mode is available
- */
- boolean isNrAvailable;
-
- /**
- * Whether ENDC is available
- */
- boolean isEnDcAvailable;
-
- /**
- * Whether DCNR is restricted
- */
- boolean isDcNrRestricted;
-};
-
-/**
- * @brief Defines the carrier information.
- *
- */
-struct OperatorInfo {
- /**
- * Long carrier name of the registered network
- */
- String longName;
-
- /**
- * Short carrier name of the registered network
- */
- String shortName;
-
- /**
- * Carrier ID
- */
- String numeric;
-};
-
-/**
- * @brief Defines the available network information.
- */
-struct AvailableNetworkInfo {
- /**
- * Long name of the registered network in alphanumeric format
- */
- String longName;
-
- /**
- * Short name of the registered network in alphanumeric format
- */
- String shortName;
-
- /**
- * Available network ID
- */
- String numeric;
-
- /**
- * Network status. For details, see {@link RilRegStatus}.
- */
- int status;
-
- /**
- * Radio access technology type. For details, see {@link RilRadioTech}.
- */
- int rat;
-};
-
-/**
- * @brief Defines the available network list.
- */
-struct AvailableNetworkList {
- /**
- * Number
- */
- int itemNum;
-
- /**
- * Available network list
- */
- List availableNetworkInfo;
-
- /**
- * Network list flag
- */
- int flag;
-};
-
-/**
- * @brief Defines the network mode information.
- */
-struct SetNetworkModeInfo {
- /**
- * Network mode. For details, see {@link PreferredNetworkTypeInfo}.
- */
- int selectMode;
-
- /**
- * Carrier
- */
- String oper;
-
- /**
- * Flag
- */
- int flag;
-};
-
-/**
- * @brief Defines the GSM cell information.
- */
-struct CellListRatGsm {
- /**
- * Cell band information
- */
- int band;
-
- /**
- * Absolute RF channel number of the broadcast control channel (BCCH) carrier, which ranges from 0 to 1023
- */
- int arfcn;
-
- /**
- * Base transceiver station identity code
- */
- int bsic;
-
- /**
- * Cell information ID
- */
- int cellId;
-
- /**
- * Location area code, which ranges from 0 to 0xFFFF
- */
- int lac;
-
- /**
- * Signal received strength, which ranges from -120 to 37
- */
- int rxlev;
-};
-
-/**
- * @brief Defines the LTE cell information.
- */
-struct CellListRatLte {
- /**
- * Absolute RF channel number of the BCCH carrier, which ranges from 0 to 1023
- */
- int arfcn;
-
- /**
- * Physical cell ID
- */
- int pci;
-
- /**
- * Signal received power, which ranges from -140 to -44
- */
- int rsrp;
-
- /**
- * Signal received quality, which ranges from -19 to -3
- */
- int rsrq;
-
- /**
- * Signal received strength, which ranges from -120 to 37
- */
- int rxlev;
-};
-
-/**
- * @brief Defines the WCDMA cell information.
- */
-struct CellListRatWcdma {
- /**
- * Absolute RF channel number of the BCCH carrier, which ranges from 0 to 16383
- */
- int arfcn;
-
- /**
- * Primary scrambling code, which ranges from 0 to 511
- */
- int psc;
-
- /**
- * Received signal code power, which ranges from -120 to 25
- */
- int rscp;
-
- /**
- * Ratio of the power of each modulation bit to the noise spectral density, which ranges from -25 to 0
- */
- int ecno;
-};
-
-/**
- * @brief Defines the CDMA cell information.
- */
-struct CellListRatCdma {
- /**
- * System ID
- */
- int systemId;
-
- /**
- * Network ID
- */
- int networkId;
-
- /**
- * Basic ID
- */
- int baseId;
-
- /**
- * Zone ID
- */
- int zoneId;
-
- /**
- * PN pilot sequence
- */
- int pilotPn;
-
- /**
- * Pilot signal strength
- */
- int pilotStrength;
-
- /**
- * Channel
- */
- int channel;
-
- /**
- * Longitude
- */
- int longitude;
-
- /**
- * Latitude
- */
- int latitude;
-};
-
-/**
- * @brief Defines the TD-SCDMA cell information.
- */
-struct CellListRatTdscdma {
- /**
- * Absolute RF channel number of the BCCH carrier
- */
- int arfcn;
-
- /**
- * Synchronization flag
- */
- int syncId;
-
- /**
- * Super cell
- */
- int sc;
-
- /**
- * Cell ID
- */
- int cellId;
-
- /**
- * Location area code, which ranges from 0 to 0xFFFF
- */
- int lac;
-
- /**
- * Received signal code power
- */
- int rscp;
-
- /**
- * Discontinuous reception cycle
- */
- int drx;
-
- /**
- * Routing area code
- */
- int rac;
-
- /**
- * Super cell ID
- */
- int cpid;
-};
-
-/**
- * @brief Defines the NR cell information.
- */
-struct CellListRatNr {
- /**
- * Absolute RF channel number of the BCCH carrier
- */
- int nrArfcn;
-
- /**
- * Physical cell ID
- */
- int pci;
-
- /**
- * Type allocation code
- */
- int tac;
-
- /**
- * NR cell ID
- */
- int nci;
-};
-
-/**
- * @brief Defines cell information for different network modes.
- */
-union ServiceCellParas {
- /**
- * GSM cell information. For details, see {@link CellListRatGsm}.
- */
- struct CellListRatGsm gsm;
-
- /**
- * LTE cell information. For details, see {@link CellListRatLte}.
- */
- struct CellListRatLte lte;
-
- /**
- * WCDMA cell information. For details, see {@link CellListRatWcdma}.
- */
- struct CellListRatWcdma wcdma;
-
- /**
- * CDMA cell information. For details, see {@link CellListRatCdma}.
- */
- struct CellListRatCdma cdma;
-
- /**
- * TD-SCDMA cell information. For details, see {@link CellListRatTdscdma}.
- */
- struct CellListRatTdscdma tdscdma;
-
- /**
- * NR cell information. For details, see {@link CellListRatNr}.
- */
- struct CellListRatNr nr;
-};
-
-/**
- * @brief Defines the neighboring cell information.
- */
-struct CellNearbyInfo {
- /**
- * Access technology type:
- *- 0: unknown
- *- 1: GSM
- *- 2: CDMA
- *- 3: WCDMA
- *- 4: TD-SCDMA
- *- 5: LTE
- *- 6: NR
- */
- int ratType;
-
- /**
- * Cell information for different network modes
- */
- union ServiceCellParas serviceCells;
-};
-
-/**
- * @brief Defines the neighboring cell list.
- */
-struct CellListNearbyInfo {
- /**
- * Number
- */
- int itemNum;
-
- /**
- * Neighboring cell list
- */
- List cellNearbyInfo;
-};
-
-/**
- * @brief Defines the GSM cellular information.
- */
-struct CellRatGsm {
- /**
- * Cell band information
- */
- int band;
-
- /**
- * Absolute RF channel number of the BCCH carrier, which ranges from 0 to 1023
- */
- int arfcn;
-
- /**
- * Base transceiver station identity code
- */
- int bsic;
-
- /**
- * Cell ID
- */
- int cellId;
-
- /**
- * Location area code, which ranges from 0 to 0xFFFF
- */
- int lac;
-
- /**
- * Signal received strength, which ranges from -120 to 37
- */
- int rxlev;
-
- /**
- * Signal received quality, which ranges from 0 to 7
- */
- int rxQuality;
-
- /**
- * Timing advance, which ranges from 0 to 63
- */
- int ta;
-};
-
-/**
- * @brief Defines the LTE cellular information.
- */
-struct CellRatLte {
- /**
- * Absolute RF channel number of the BCCH carrier
- */
- int arfcn;
-
- /**
- * Cell ID
- */
- int cellId;
-
- /**
- * Physical cell ID
- */
- int pci;
-
- /**
- * Type allocation code
- */
- int tac;
-
- /**
- * Signal received power, which ranges from -140 to -44
- */
- int rsrp;
-
- /**
- * Signal received quality, which ranges from -19 to -3
- */
- int rsrq;
-
- /**
- * Received signal strength in dbm, which ranges from -90 to -25
- */
- int rssi;
-};
-
-/**
- * @brief Defines the WCDMA cellular information.
- */
-struct CellRatWcdma {
- /**
- * Absolute RF channel number of the BCCH carrier, which ranges from 0 to 16383
- */
- int arfcn;
-
- /**
- * Primary scrambling code, which ranges from 0 to 511
- */
- int psc;
-
- /**
- * Cell ID
- */
- int cellId;
-
- /**
- * Location area code, which ranges from 0 to 0xFFFF
- */
- int lac;
-
- /**
- * Signal received power in dBm, which ranges from -140 to -44
- */
- int rscp;
-
- /**
- * Signal received strength, which ranges from -19 to -3
- */
- int rxlev;
-
- /**
- * Received signal strength in dbm, which ranges from -90 to -25
- */
- int ecno;
-
- /**
- * Discontinuous reception cycle, which ranges from 6 to 9
- */
- int drx;
-
- /**
- * UMTS Terrestrial Radio Access Network (UTRAN) registration zone ID
- */
- int ura;
-};
-
-/**
- * @brief Defines the CDMA cellular information.
- */
-struct CellRatCdma {
- /**
- * System ID
- */
- int systemId;
-
- /**
- * Network ID
- */
- int networkId;
-
- /**
- * Basic ID
- */
- int baseId;
-
- /**
- * Zone ID
- */
- int zoneId;
-
- /**
- * PN pilot sequence
- */
- int pilotPn;
-
- /**
- * Pilot signal strength
- */
- int pilotStrength;
-
- /**
- * Channel
- */
- int channel;
-
- /**
- * Longitude
- */
- int longitude;
-
- /**
- * Latitude
- */
- int latitude;
-};
-
-/**
- * @brief Defines the TD-SCDMA cellular information.
- */
-struct CellRatTdscdma {
- /**
- * Absolute RF channel number of the BCCH carrier
- */
- int arfcn;
-
- /**
- * Synchronization flag
- */
- int syncId;
-
- /**
- * Super cell
- */
- int sc;
-
- /**
- * Cell ID
- */
- int cellId;
-
- /**
- * Location area code
- */
- int lac;
-
- /**
- * Received signal code power
- */
- int rscp;
-
- /**
- * Discontinuous reception cycle
- */
- int drx;
-
- /**
- * Routing area code
- */
- int rac;
-
- /**
- * Super cell ID
- */
- int cpid;
-};
-
-/**
- * @brief Defines the NR cellular information.
- */
-struct CellRatNr {
- /**
- * Absolute RF channel number of the BCCH carrier
- */
- int nrArfcn;
-
- /**
- * Physical cell ID
- */
- int pci;
-
- /**
- * Type allocation code
- */
- int tac;
-
- /**
- * NR cell ID
- */
- int nci;
-};
-
-/**
- * @brief Defines the current cellular data information.
- */
-union CurrentServiceCellParas {
- /**
- * GSM cellular information
- */
- struct CellRatGsm gsm;
-
- /**
- * LTE cellular information
- */
- struct CellRatLte lte;
-
- /**
- * WCDMA cellular information
- */
- struct CellRatWcdma wcdma;
-
- /**
- * CDMA cellular information
- */
- struct CellRatCdma cdma;
-
- /**
- * TD-SCDMA cellular information
- */
- struct CellRatTdscdma tdscdma;
-
- /**
- * NR cellular information
- */
- struct CellRatNr nr;
-};
-
-/**
- * @brief Defines the current cell information.
- */
-struct CurrentCellInfo {
- /**
- * Radio access technology type. For details, see {@link RilRadioTech}.
- */
- int ratType;
-
- /**
- * Mobile country code (MCC)
- */
- int mcc;
-
- /**
- * Mobile network code (MNC)
- */
- int mnc;
-
- /**
- * Cell information parameters. For details, see {@link CurrentServiceCellParas}.
- */
- union CurrentServiceCellParas serviceCells;
-};
-
-/**
- * @brief Defines the current cell information list.
- */
-struct CellListCurrentInfo {
- /**
- * Number of cells
- */
- int itemNum;
-
- /**
- * Current cell information
- */
- List cellCurrentInfo;
-};
-
-/**
- * @brief Defines the preferred network type.
- */
-struct PreferredNetworkTypeInfo {
- /**
- * Network type
- *- 0: automatic
- *- 1: GSM
- *- 2: WCDMA.
- *- 3: LTE.
- *- 4: LTE and WCDMA
- *- 5: LTE, WCDMA, and GSM
- *- 6: WCDMA and GSM
- *- 7: CDMA
- *- 8: EV-DO
- *- 9: EV-DO and CDMA
- *- 10: WCDMA, GSM, EV-DO, and CDMA
- *- 11: LTE, EV-DO, and CDMA
- *- 12: LTE, WCDMA, GSM, EV-DO, and CDMA
- *- 13: TD-SCDMA
- *- 14: TD-SCDMA and GSM
- *- 15: TD-SCDMA and WCDMA
- *- 16: TD-SCDMA, WCDMA, and GSM
- *- 17: LTE and TD-SCDMA
- *- 18: LTE, TDSCDMA, and GSM
- *- 19: LTE, TD-SCDMA, and WCDMA
- *- 20: LTE, TDSCDMA, WCDMA, and GSM
- *- 21: TD-SCDMA, WCDMA, GSM, EV-DO, and CDMA
- *- 22: LTE, TD-SCDMA, WCDMA, GSM, EV-DO, and CDMA
- *- 31: NR
- *- 32: NR and LTE
- *- 33: NR, LTE, and WCDMA
- *- 34: NR, LTE, WCDMA, and GSM
- *- 35: NR, LTE, EV-DO, and CDMA
- *- 36: NR, LTE, WCDMA, GSM, EV-DO, and CDMA
- *- 37: NR, LTE, and TD-SCDMA.
- *- 38: NR, LTE, TDSCDMA, and GSM
- *- 39: NR, LTE, TD-SCDMA, and WCDMA
- *- 40: NR, LTE, TD-SCDMA, WCDMA, and GSM
- *- 41: NR, LTE, TD-SCDMA, WCDMA, GSM, EV-DO, and CDMA
- */
- int preferredNetworkType;
-
- /**
- * Network ID
- */
- int flag;
-};
-
-/**
- * @brief Defines the physical channel configuration.
- */
-struct PhysicalChannelConfig {
- /**
- * Connection status
- */
- enum RilCellConnectionStatus cellConnStatus;
-
- /**
- * Radio access technology type. For details, see {@link RilRadioTech}.
- */
- enum RilRadioTech ratType;
-
- /**
- * Downlink bandwidth in kHz
- */
- int cellBandwidthDownlinkKhz;
-
- /**
- * Uplink bandwidth in kHz.
- */
- int cellBandwidthUplinkKhz;
-
- /**
- * Frequency range
- */
- int freqRange;
-
- /**
- * Downlink channel ID
- */
- int downlinkChannelNum;
-
- /**
- * Uplink channel ID
- */
- int uplinkChannelNum;
-
- /**
- * Physical cell ID
- */
- int physicalCellId;
-
- /**
- * Logical device ID
- */
- int contextIdNum;
-
- /**
- * Uplink channel ID
- */
- List contextIds;
-};
-
-/**
- * @brief Defines the channel configuration information list.
- */
-struct ChannelConfigInfoList {
- /**
- * Number
- */
- int itemNum;
-
- /**
- * Physical channel configuration
- */
- List channelConfigInfos;
-
- /**
- * Channel configuration ID
- */
- int flag;
-};
-
-/**
- * @brief Defines a GSM SMS message.
- */
-struct GsmSmsMessageInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Status
- */
- int state;
-
- /**
- * Short message service center
- */
- String smscPdu;
-
- /**
- * Protocol data unit
- */
- String pdu;
-};
-
-/**
- * @brief Defines a CDMA SMS message.
- */
-struct SendCdmaSmsMessageInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Status
- */
- int state;
-
- /**
- * Short message service center
- */
- String smscPdu;
-};
-
-/**
- * @brief Defines the SMS message information in a SIM card.
- */
-struct SmsMessageIOInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Short message service center
- */
- String smscPdu;
-
- /**
- * Protocol data unit
- */
- String pdu;
-
- /**
- * Status
- */
- int state;
-
- /**
- Message index.
- */
- int index;
-};
-
-/**
- * @brief Defines the SMSC address information.
- */
-struct ServiceCenterAddress {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * SMSC address type. For details, see 3GPP TS 24.011 [6].
- */
- int tosca;
-
- /**
- * SMSC address. For details, see 3GPP TS 24.011 [6].
- */
- String address;
-};
-
-/**
- * @brief Defines the GSM cell broadcast configuration information.
- */
-struct CBConfigInfo {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Mode (activated or not)
- */
- int mode;
-
- /**
- * Response type:
- *- 0: query and report
- *- 1: report
- */
- int indicationType;
-
- /**
- * Message IDs
- */
- String mids;
-
- /**
- * Data coding schemes
- */
- String dcss;
-};
-
-/**
- * @brief Defines the CDMA cell broadcast configuration information.
- */
-struct CdmaCBConfigInfo {
- /**
- * Service
- */
- int service;
-
- /**
- * Language
- */
- int language;
-
- /**
- * Selected or not
- */
- int checked;
-};
-
-/**
- * @brief Defines the CDMA cell broadcast configuration information list.
- */
-struct CdmaCBConfigInfoList {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Total number
- */
- int size;
-
- /**
- * CDMA cell broadcast configuration information list
- */
- List list;
-};
-
-/**
- * @brief Defines the cell broadcast report information.
- */
-struct CBConfigReportInfo {
- /**
- * Response type:
- *- 0: query and report
- *- 1: report
- */
- int indicationType;
-
- /**
- * Cell broadcast SN
- */
- int sn;
-
- /**
- * Message IDs
- */
- int mid;
-
- /**
- * Cell broadcast page number
- */
- int page;
-
- /**
- * Total number of cell broadcast pages
- */
- int pages;
-
- /**
- * Number of PDU bytes
- */
- int length;
-
- /**
- * Decoded cell broadcast content
- */
- String data;
-
- /**
- * Data coding schemes
- */
- String dcs;
-
- /**
- * Protocol data unit
- */
- String pdu;
-};
-
-/**
- * @brief Defines the SMS message information.
- */
-struct SmsMessageInfo {
- /**
- * Response type:
- *- 0: query and report
- *- 1: report
- */
- int indicationType;
-
- /**
- * Total number
- */
- int size;
-
- /**
- * Protocol data unit
- */
- List pdu;
-};
-
-/**
- * @brief Defines the processing mode of received SMS messages.
- */
-struct ModeData {
- /**
- * Request SN
- */
- int serial;
-
- /**
- * Whether to receive SMS messages
- */
- boolean result;
-
- /**
- * Processing mode of received SMS messages. For details, see {@link AckIncomeCause}.
- */
- int mode;
-
- /**
- * Protocol data unit
- */
- String pdu;
-};
-
-/**
- * @brief Defines an SMS message response.
- */
-struct SendSmsResultInfo {
- /**
- * Message reference number
- */
- int msgRef;
-
- /**
- * Protocol data unit
- */
- String pdu;
-
- /**
- * Error code
- */
- int errCode;
-
- /**
- * SMS message response ID
- */
- int flag;
-};
-/** @} */