nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ mpsl_fem_nrf2220_temperature_changed()

bool mpsl_fem_nrf2220_temperature_changed ( int8_t temperature)

#include <mpsl/fem/nrf2220/include/protocol/mpsl_fem_nrf2220_protocol_api.h>

Notifies the nRF2220 software module about the temperature change of the nRF2220 device.

This function performs necessary calculation of registers to be written into nRF2220 device based on passed temperature. If it turns out as a result of the calculation that no register of nRF2220 needs an update, then this function returns false and no further processing is needed. If it turns out as a result of the calculation that some registers need a update, then this function reurns true. In this case you should call either mpsl_fem_nrf2220_temperature_changed_update_request or mpsl_fem_nrf2220_temperature_changed_update_now to transfer calculated registers into nrf2220. Which one to choose depends on protocol in use. You should call the function mpsl_fem_nrf2220_temperature_changed_update_request function if the protocol in use relies on the MPSL scheduler. You should call the mpsl_fem_nrf2220_temperature_changed_update_now function if the protocol in use does not rely on the MPSL scheduler.

Note
The function is not re-entrant. Should be called from one context only.
Parameters
[in]temperatureTemperature of the nRF2220 device in degrees Celsius.
Return values
falseTemperature change processed, no followup operation required.
trueTemperature change processed, required following call to mpsl_fem_nrf2220_temperature_changed_update_request or mpsl_fem_nrf2220_temperature_changed_update_now .