Function nrf_softdevice_s112::sd_evt_get
source · pub unsafe fn sd_evt_get(p_evt_id: *mut u32) -> u32
Expand description
@brief Gets any pending events generated by the SoC API.
The application should keep calling this function to get events, until ::NRF_ERROR_NOT_FOUND is returned.
@param[out] p_evt_id Set to one of the values in @ref NRF_SOC_EVTS, if any events are pending.
@retval ::NRF_SUCCESS An event was pending. The event id is written in the p_evt_id parameter. @retval ::NRF_ERROR_NOT_FOUND No pending events.