openharmony 鸿蒙 capi-telephony-radio-type-h

2026-08-25 浏览 (1)

telephony_radio_type.h

Overview

Declares the structs for the C APIs of the radio module.

File to include: <telephony/core_service/telephony_radio_type.h>

Library: libtelephony_radio.so

System capability: SystemCapability.Telephony.CoreService

Since: 13

Related module: Telephony

Summary

Structs

Nametypedef KeywordDescription
Telephony_NetworkStateTelephony_NetworkStateDefines network status information.

Enums

Nametypedef KeywordDescription
Telephony_RadioResultTelephony_RadioResultResult codes.
Telephony_RegStateTelephony_RegStateNetwork registration status of the device.
Telephony_RadioTechnologyTelephony_RadioTechnologyRadio access technology (RAT) type of the device.
Telephony_NsaStateTelephony_NsaStateNSA network registration status of the device.

Macros

NameDescription
TELEPHONY_MAX_OPERATOR_LEN 64Maximum length of the carrier name.
Since: 13
TELEPHONY_MAX_PLMN_NUMERIC_LEN 6Maximum length of the PLMN.
Since: 13

Enum Description

Telephony_RadioResult

enum Telephony_RadioResult

Description

Result codes.

Since: 13

Enum ItemDescription
TEL_RADIO_SUCCESS = 0Operation succeeded.
TEL_RADIO_PERMISSION_DENIED = 201Permission denied.
TEL_RADIO_ERR_INVALID_PARAM = 401Invalid parameter.
TEL_RADIO_ERR_MARSHALLING_FAILED = 8300001Marshaling failed, which is a low-probability error. Try again later when this error occurs.
TEL_RADIO_ERR_SERVICE_CONNECTION_FAILED = 8300002Connection error. Try again later when this error occurs.
TEL_RADIO_ERR_OPERATION_FAILED = 8300003Operation failed. Try again later when this error occurs.

Telephony_RegState

enum Telephony_RegState

Description

Network registration status of the device.

Since: 13

Enum ItemDescription
TEL_REG_STATE_NO_SERVICE = 0The device cannot use any service.
TEL_REG_STATE_IN_SERVICE = 1The device can use services normally.
TEL_REG_STATE_EMERGENCY_CALL_ONLY = 2The device can use only the emergency call service.
TEL_REG_STATE_POWER_OFF = 3The cellular radio service is disabled.

Telephony_RadioTechnology

enum Telephony_RadioTechnology

Description

RAT type of the device.

Since: 13

Enum ItemDescription
TEL_RADIO_TECHNOLOGY_UNKNOWN = 0Unknown RAT
TEL_RADIO_TECHNOLOGY_GSM = 1Global System for Mobile Communication (GSM)
TEL_RADIO_TECHNOLOGY_1XRTT = 2Single-Carrier Radio Transmission Technology (1XRTT)
TEL_RADIO_TECHNOLOGY_WCDMA = 3Wideband Code Division Multiple Access (WCDMA)
TEL_RADIO_TECHNOLOGY_HSPA = 4High Speed Packet Access (HSPA)
TEL_RADIO_TECHNOLOGY_HSPAP = 5High Speed Packet Access Plus (HSPA+)
TEL_RADIO_TECHNOLOGY_TD_SCDMA = 6Time Division-Synchronous Code Division Multiple Access (TD-SCDMA)
TEL_RADIO_TECHNOLOGY_EVDO = 7Evolution-Data Optimized (EVDO)
TEL_RADIO_TECHNOLOGY_EHRPD = 8Evolved High Rate Package Data (EHRPD)
TEL_RADIO_TECHNOLOGY_LTE = 9Long Term Evolution (LTE)
TEL_RADIO_TECHNOLOGY_LTE_CA = 10Long Term Evolution_Carrier Aggregation (LTE_CA)
TEL_RADIO_TECHNOLOGY_IWLAN = 11Industrial Wireless LAN (IWLAN)
TEL_RADIO_TECHNOLOGY_NR = 12New Radio (NR)

Telephony_NsaState

enum Telephony_NsaState

Description

NSA network registration status of the device.

Since: 13

Enum ItemDescription
TEL_NSA_STATE_NOT_SUPPORTED = 1The device is in idle or connected state in an LTE cell that does not support NSA.
TEL_NSA_STATE_NO_DETECTED = 2The device is in the idle state in an LTE cell that supports NSA but not NR coverage detection.
TEL_NSA_STATE_CONNECTED_DETECTED = 3The device is connected to the LTE network in an LTE cell that supports NSA and NR coverage detection.
TEL_NSA_STATE_IDLE_DETECTED = 4The device is in the idle state in an LTE cell that supports NSA and NR coverage detection.
TEL_NSA_STATE_DUAL_CONNECTED = 5The device is connected to the LTE/NR network in an LTE cell that supports NSA.
TEL_NSA_STATE_SA_ATTACHED = 6The device is idle or connected to the NG-RAN cell when being attached to the 5G Core.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 js-apis-sms-sys

openharmony 鸿蒙 js-apis-sim-sys

openharmony 鸿蒙 js-apis-telephony-data-sys

openharmony 鸿蒙 js-apis-observer-sys

openharmony 鸿蒙 Readme-EN

openharmony 鸿蒙 capi-telephony-data-h

openharmony 鸿蒙 ndk-apis-telephony-radio

openharmony 鸿蒙 capi-telephony-radio-h

openharmony 鸿蒙 js-apis-call

openharmony 鸿蒙 js-apis-call-sys

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/ywW2zAnX