pub unsafe fn sd_radio_session_open(
    p_radio_signal_callback: nrf_radio_signal_callback_t
) -> u32
Expand description

@brief Opens a session for radio timeslot requests.

@note Only one session can be open at a time. @note p_radio_signal_callback(@ref NRF_RADIO_CALLBACK_SIGNAL_TYPE_START) will be called when the radio timeslot starts. From this point the NRF_RADIO and NRF_TIMER0 peripherals can be freely accessed by the application. @note p_radio_signal_callback(@ref NRF_RADIO_CALLBACK_SIGNAL_TYPE_TIMER0) is called whenever the NRF_TIMER0 interrupt occurs. @note p_radio_signal_callback(@ref NRF_RADIO_CALLBACK_SIGNAL_TYPE_RADIO) is called whenever the NRF_RADIO interrupt occurs. @note 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().

@param[in] p_radio_signal_callback The signal callback.

@retval ::NRF_ERROR_INVALID_ADDR p_radio_signal_callback is an invalid function pointer. @retval ::NRF_ERROR_BUSY If session cannot be opened. @retval ::NRF_ERROR_INTERNAL If a new session could not be opened due to an internal error. @retval ::NRF_SUCCESS Otherwise.