Functions | |
uint32_t | sd_softdevice_enable (nrf_clock_lf_cfg_t const *p_clock_lf_cfg, nrf_fault_handler_t fault_handler, const char *p_license_key) |
Enables the SoftDevice and by extension the protocol stack. More... | |
uint32_t | sd_softdevice_disable (void) |
Disables the SoftDevice and by extension the protocol stack. More... | |
uint32_t | sd_softdevice_is_enabled (uint8_t *p_softdevice_enabled) |
Check if the SoftDevice is enabled. More... | |
uint32_t | sd_softdevice_vector_table_base_set (uint32_t address) |
Sets the base address of the interrupt vector table for interrupts forwarded from the SoftDevice. More... | |
uint32_t sd_softdevice_disable | ( | void | ) |
Disables the SoftDevice and by extension the protocol stack.
Idempotent function to disable the SoftDevice.
NRF_SUCCESS |
uint32_t sd_softdevice_enable | ( | nrf_clock_lf_cfg_t const * | p_clock_lf_cfg, |
nrf_fault_handler_t | fault_handler, | ||
const char * | p_license_key | ||
) |
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 and .rc_temp_ctiv = 2 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. |
p_license_key | License key for ANT based softdevices. NULL can be used for BLE only softdevices. See ANT_LICENSE_KEY define for more detail. |
NRF_SUCCESS | |
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_LFCLK_SOURCE_UNKNOWN | Unknown low frequency clock source selected. |
NRF_ERROR_INVALID_LICENSE_KEY | Incorrect ANT license key. See ANT_LICENSE_KEY define for more detail. |
uint32_t sd_softdevice_is_enabled | ( | uint8_t * | p_softdevice_enabled | ) |
Check if the SoftDevice is enabled.
[out] | p_softdevice_enabled | If the SoftDevice is enabled: 1 else 0. |
NRF_SUCCESS |
uint32_t sd_softdevice_vector_table_base_set | ( | uint32_t | address | ) |
Sets the base address of the interrupt vector table for interrupts forwarded from the SoftDevice.
This function is only intended to be called when a bootloader is enabled.
[in] | address | The base address of the interrupt vector table for forwarded interrupts. |
NRF_SUCCESS |