![]() |
nrfxlib API 3.3.99
|
| 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.
| [in] | callback | The 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_mem | Provide 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. |
| 0 | Success |
| -NRF_EINVAL | Invalid argument provided |
| -NRF_EPERM | The entropy source is not configured. Call sdc_rand_source_register() first. |