T-Box Basic dev
Loading...
Searching...
No Matches
ril_signal.h File Reference

RIL 制式信号统一换算 More...

#include <stdbool.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  ril_signal_measurement_t
 一次有效性明确的信号测量 More...

Enumerations

enum  ril_signal_kind_t { RIL_SIGNAL_GSM_RSSI , RIL_SIGNAL_WCDMA_RSSI , RIL_SIGNAL_LTE_RSRP , RIL_SIGNAL_NR_SS_RSRP }
 模组上报的信号测量类别 More...

Functions

uint8_t ril_signal_to_rssi (ril_signal_measurement_t measurement)
 将当前制式的测量值换算为 GSM RSSI 编码。

Detailed Description

RIL 制式信号统一换算

Version
1.0.0
Date
2026-07-17

Enumeration Type Documentation

◆ ril_signal_kind_t

模组上报的信号测量类别

Enumerator
RIL_SIGNAL_GSM_RSSI 

GSM RSSI,单位 dBm.

RIL_SIGNAL_WCDMA_RSSI 

WCDMA RSSI,单位 dBm.

RIL_SIGNAL_LTE_RSRP 

LTE RSRP,单位 dBm.

RIL_SIGNAL_NR_SS_RSRP 

NR SS-RSRP,单位 dBm.

Function Documentation

◆ ril_signal_to_rssi()

uint8_t ril_signal_to_rssi ( ril_signal_measurement_t measurement)

将当前制式的测量值换算为 GSM RSSI 编码。

Parameters
measurement原始信号测量。
Returns
0 至 31 表示由弱到强,99 表示未知或不可检测。