Browse Source

modules: hal_nordic: nrf_802154: CCA threshold config in dBm

The nrf-802154 component of hal_nordic is updated.
The CCA threshold configuration is now done in dBm units, instead of
hardware-dependent scale.
Fixed a bug, where the CONFIG_NRF_802154_CCA_ED_THRESHOLD units were
different from the NRF_802154_CCA_ED_THRESHOLD units. Now all
configuration is done in dBm.

Signed-off-by: Rafał Kuźnia <rafal.kuznia@nordicsemi.no>
pull/91688/head
Rafał Kuźnia 1 month ago committed by Daniel DeGrasse
parent
commit
0eb182a120
  1. 8
      modules/hal_nordic/Kconfig
  2. 2
      modules/hal_nordic/nrf_802154/CMakeLists.txt

8
modules/hal_nordic/Kconfig

@ -163,12 +163,12 @@ config NRF_802154_CCA_MODE_CARRIER_OR_ED @@ -163,12 +163,12 @@ config NRF_802154_CCA_MODE_CARRIER_OR_ED
endchoice
config NRF_802154_CCA_ED_THRESHOLD
int "nRF IEEE 802.15.4 CCA Energy Detection threshold"
default 45
config NRF_802154_CCA_ED_THRESHOLD_DBM
int "nRF IEEE 802.15.4 CCA Energy Detection threshold in dBm"
default -75
help
If energy detected in a given channel is above the value then the
channel is deemed busy. The unit is defined as per 802.15.4-2006 spec.
channel is deemed busy. The unit is dBm.
config NRF_802154_CCA_CORR_THRESHOLD
int "nRF IEEE 802.15.4 CCA Correlator threshold"

2
modules/hal_nordic/nrf_802154/CMakeLists.txt

@ -52,7 +52,7 @@ target_compile_definitions(zephyr-802154-interface @@ -52,7 +52,7 @@ target_compile_definitions(zephyr-802154-interface
# CCA mode options
NRF_802154_CCA_CORR_LIMIT_DEFAULT=${CONFIG_NRF_802154_CCA_CORR_LIMIT}
NRF_802154_CCA_CORR_THRESHOLD_DEFAULT=${CONFIG_NRF_802154_CCA_CORR_THRESHOLD}
NRF_802154_CCA_ED_THRESHOLD_DEFAULT=${CONFIG_NRF_802154_CCA_ED_THRESHOLD}
NRF_802154_CCA_ED_THRESHOLD_DBM_DEFAULT=${CONFIG_NRF_802154_CCA_ED_THRESHOLD_DBM}
# Key storage size
NRF_802154_SECURITY_KEY_STORAGE_SIZE=${CONFIG_NRF_802154_SECURITY_KEY_STORAGE_SIZE}

Loading…
Cancel
Save