diff --git a/ril/v1_1/IRilCallback.idl b/ril/v1_1/IRilCallback.idl index e29113da7cf5c894df9df333aa7390ae8551c086..fe942c2d9b82e7bdb0a60b5a7128a7e16ea987a8 100644 --- a/ril/v1_1/IRilCallback.idl +++ b/ril/v1_1/IRilCallback.idl @@ -1247,6 +1247,19 @@ import ohos.hdi.ril.v1_1.Types; NetworkCurrentCellUpdated([in] struct RilRadioResponseInfo responseInfo, [in] struct CellListCurrentInfo cellListCurrentInfo); + /** + * @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_1_1}. + * + * @since 4.0 + * @version 1.1 + */ + NetworkCurrentCellUpdated_1_1([in] struct RilRadioResponseInfo responseInfo, + [in] struct CellListCurrentInfo_1_1 cellListCurrentInfo); + /** * @brief Callback for querying the signal strength. * @@ -1360,6 +1373,19 @@ import ohos.hdi.ril.v1_1.Types; GetCurrentCellInfoResponse([in] struct RilRadioResponseInfo responseInfo, [in] struct CellListCurrentInfo cellListCurrentInfo); + /** + * @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 CellListCurrentInfo_1_1}. + * + * @since 4.0 + * @version 1.1 + */ + GetCurrentCellInfoResponse_1_1([in] struct RilRadioResponseInfo responseInfo, + [in] struct CellListCurrentInfo_1_1 cellListCurrentInfo); + /** * @brief Callback for the response of setting the preferred network type. * diff --git a/ril/v1_1/Types.idl b/ril/v1_1/Types.idl index 22e570205a0c56db44889fe2cb9770ea94bb381a..73f5a46b724296045856e32449ad522bf728a567 100644 --- a/ril/v1_1/Types.idl +++ b/ril/v1_1/Types.idl @@ -2976,6 +2976,129 @@ union CurrentServiceCellParas { struct CellRatNr nr; }; + +/** + * @brief Defines the NR cellular information. + * + * @since 4.0 + * @version 1.1 + */ +struct CellRatNr_1_1 { + /** + * 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; + + /** + * Signal received power, which ranges from -140 to -44 + */ + int rsrp; + + /** + * Signal received quality, which ranges from -19 to -3 + */ + int rsrq; +}; + +/** + * @brief Defines the current cellular data information. + * + * @since 4.0 + * @version 1.1 + */ +union CurrentServiceCellParas_1_1 { + /** + * 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_1_1 nr; +}; + +/** + * @brief Defines the current cell information. + * + * @since 4.0 + * @version 1.1 + */ +struct CurrentCellInfo_1_1 { + /** + * 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_1_1}. + */ + union CurrentServiceCellParas_1_1 serviceCells; +}; + +/** + * @brief Defines the current cell information list. + * + * @since 4.0 + * @version 1.1 + */ +struct CellListCurrentInfo_1_1 { + /** + * Number of cells + */ + int itemNum; + + /** + * Current cell information + */ + List cellCurrentInfo; +}; + /** * @brief Defines the current cell information. */