nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ RSRP_IDX_TO_DBM

#define RSRP_IDX_TO_DBM ( rsrp)

#include <include/modem/modem_info.h>

Value:
((rsrp) < 0 ? (rsrp) - 140 : (rsrp) - 141)

Converts RSRP index value returned by the modem to dBm.

The index value of RSRP can be converted to dBm with the following formula:

  • index < 0: index – 140
  • index = 0: Not used
  • index > 0: index – 141

Example values:

  • -17: RSRP < -156 dBm
  • -16: -156 ≤ RSRP < -155 dBm
  • ...
  • -3: -143 ≤ RSRP < -142 dBm
  • -2: -142 ≤ RSRP < -141 dBm
  • -1: -141 ≤ RSRP < -140 dBm
  • 0: Not used.
  • 1: -140 ≤ RSRP < -139 dBm
  • 2: -139 ≤ RSRP < -138 dBm
  • ...
  • 95: -46 ≤ RSRP < -45 dBm
  • 96: -45 ≤ RSRP < -44 dBm
  • 97: -44 ≤ RSRP dBm

There are use cases where the index value 0 is used to represent RSRP < -140 dBm.

See modem AT command reference guide for more information.

Parameters
[in]rsrpRSRP index value as 'int'.
Returns
RSRP in dBm as 'int'.