![]() |
S115 SoftDevice for nRF54L15/nRF54L10/nRF54L05 API documentation 10.0.0
|
| uint32_t sd_softdevice_enable | ( | nrf_clock_lf_cfg_t const * | p_clock_lf_cfg, |
| nrf_fault_handler_t | fault_handler ) |
#include <nrf_sdm.h>
Enables the SoftDevice and by extension the protocol stack.
| p_clock_lf_cfg | Low frequency clock source and accuracy. If NULL the clock will be configured as an RC source with rc_ctiv = 16, .rc_temp_ctiv = 2, .hfclk_latency = 1500, .hfint_ctiv = 4 In the case of XTAL source, the PPM accuracy of the chosen clock source must be greater than or equal to the actual characteristics of your XTAL clock. |
| fault_handler | Callback to be invoked in case of fault, cannot be NULL. |
| NRF_SUCCESS | |
| NRF_ERROR_INVALID_ADDR | Invalid or NULL pointer supplied. |
| NRF_ERROR_INVALID_STATE | SoftDevice is already enabled, and the clock source and fault handler cannot be updated. |
| NRF_ERROR_SDM_INCORRECT_INTERRUPT_CONFIGURATION | SoftDevice interrupt is already enabled, or an enabled interrupt has an illegal priority level. |
| NRF_ERROR_SDM_INCORRECT_GRTC_CONFIGURATION | GRTC is not running with SYSCOUNTER on or AUTOEN is not set. |
| NRF_ERROR_SDM_LFCLK_SOURCE_UNKNOWN | Unknown low frequency clock source selected. |
| NRF_ERROR_INVALID_PARAM | Invalid clock source configuration supplied in p_clock_lf_cfg. |