![]() |
Contiki-NG
|
Temperature platform for nrf_802154 on the nRF5340 network core. More...
#include "platform/nrf_802154_temperature.h"#include "hal/nrf_temp.h"#include "nrf.h"#include <stdint.h>#include "sys/ctimer.h"Go to the source code of this file.
Temperature platform for nrf_802154 on the nRF5340 network core.
The library uses the die temperature to compensate the RSSI/ED readings and the CCA energy-detection threshold (nrf_802154_rssi.c), so an accurate value improves RSSI/LQI reporting and CCA behavior across the operating range. The network core's TEMP peripheral is sampled periodically; nrf_802154_temperature_get() returns the cached value and the library is notified via nrf_802154_temperature_changed() only when it moves, so the hot RSSI path never blocks on a conversion.
Set NRF_802154_TEMPERATURE_UPDATE_ENABLED to 0 to fall back to a fixed value (e.g. to leave the TEMP peripheral free for another use).
Definition in file nrf_802154_platform_temperature.c.