nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ nrf_802154_ccaedthres_from_dbm_calculate()

uint8_t nrf_802154_ccaedthres_from_dbm_calculate ( int8_t  dbm)

#include <nrf_802154/common/include/nrf_802154_common_utils.h>

Converts a given dBm level to a CCA energy detection threshold value.

Parameters
[in]dbmEnergy level in dBm used to calculate the CCAEDTHRES value.
Returns
Energy level value corresponding to the given dBm level that is to be written to the CCACTRL register.