S115 SoftDevice for nRF54L15/nRF54L10/nRF54L05 API documentation 10.0.0
Loading...
Searching...
No Matches

◆ sd_radio_session_open()

uint32_t sd_radio_session_open ( nrf_radio_signal_callback_t p_radio_signal_callback)

#include <nrf_soc.h>

Opens a session for radio timeslot requests.

Note
Only one session can be open at a time.
p_radio_signal_callback(NRF_RADIO_CALLBACK_SIGNAL_TYPE_START) will be called when the radio timeslot starts. From this point the NRF_RADIO and SD_TIMESLOT_TIMER0 peripherals can be freely accessed by the application.
p_radio_signal_callback(NRF_RADIO_CALLBACK_SIGNAL_TYPE_TIMER0) is called whenever the SD_TIMESLOT_TIMER0 interrupt occurs.
p_radio_signal_callback(NRF_RADIO_CALLBACK_SIGNAL_TYPE_RADIO) is called whenever the NRF_RADIO interrupt occurs.
p_radio_signal_callback() will be called at ARM interrupt priority level 0. This implies that none of the sd_* API calls can be used from p_radio_signal_callback().
Parameters
[in]p_radio_signal_callbackThe signal callback.
Return values
NRF_ERROR_INVALID_ADDRp_radio_signal_callback is an invalid function pointer.
NRF_ERROR_BUSYIf session cannot be opened.
NRF_ERROR_INTERNALIf a new session could not be opened due to an internal error.
NRF_SUCCESSOtherwise.