S145 SoftDevice for nRF54LS05 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_radio_notification_cfg_set()

uint32_t sd_radio_notification_cfg_set ( uint8_t type,
uint16_t distance_us )

#include <nrf_soc.h>

Configures the Radio Notification signal.

Note
  • The notification signal latency depends on the interrupt priority settings of SWI used for notification signal.
  • To ensure that the radio notification signal behaves in a consistent way, the radio notifications must be configured when there is no protocol stack or other SoftDevice activity in progress. It is recommended that the radio notification signal is configured directly after the SoftDevice has been enabled.
  • The ACTIVE signal comes the configured distance before the SoftDevice does the Radio Event preparation.
  • Using the Radio Notification feature may limit the bandwidth, as the SoftDevice may have to shorten the connection events to have time for the Radio Notification signals.
Parameters
[in]typeType of notification signal, see NRF_RADIO_NOTIFICATION_TYPES. NRF_RADIO_NOTIFICATION_TYPE_NONE shall be used to turn off radio notification. Using distance 0 is recommended (but not required) to be used with NRF_RADIO_NOTIFICATION_TYPE_NONE.
[in]distance_usDistance between the ACTIVE notification signal and start of radio event preparation by SoftDevice in microseconds. Valid range range is [50 to 5500] microseconds. This parameter is ignored when NRF_RADIO_NOTIFICATION_TYPE_NONE or NRF_RADIO_NOTIFICATION_TYPE_INT_ON_INACTIVE is used.
Return values
NRF_ERROR_INVALID_PARAMThe configuration is invalid.
NRF_ERROR_INVALID_STATEA protocol stack or other SoftDevice is running. Stop all running activities and retry.
NRF_SUCCESS