nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ sdc_enable()

int32_t sdc_enable ( sdc_callback_t  callback,
uint8_t *  p_mem 
)

#include <softdevice_controller/include/sdc.h>

Enable the SoftDevice Controller.

After this function is called, the application may utilize HCI APIs.

Parameters
[in]callbackThe callback will be executed when HCI data or and HCI event is available. The callback will be executed in the same context as mpsl_low_priority_process. See also sdc_hci_get().
[in]p_memProvide memory for the current resource configuration. To obtain the required memory size, use the value returned from sdc_cfg_set(). The pointer must be 8 bytes aligned.
Return values
0Success
-NRF_EINVALInvalid argument provided
-NRF_EPERMThe entropy source is not configured. Call sdc_rand_source_register() first.