nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ sdc_cfg_set()

int32_t sdc_cfg_set ( uint8_t config_tag,
uint8_t config_type,
sdc_cfg_t const * p_resource_cfg )

#include <softdevice_controller/include/sdc.h>

Change or add a SoftDevice Controller configuration.

To change the default configuration, update SDC_DEFAULT_RESOURCE_CFG_TAG. To create or update a new configuration, provide another resource_cfg_tag.

Note
The application can set config_type to SDC_CFG_TYPE_NONE to obtain the required memory size for the current configuration in bytes.
Resource configuration can only be performed prior to calling sdc_enable(). However, the current configuration may be changed after enabling the SoftDevice Controller.
Parameters
[in]config_tagConfiguration tag.
[in]config_typeConfiguration type. See also sdc_cfg_type.
[in]p_resource_cfgConfiguration to be changed.
Returns
Required memory size for the current configuration in bytes.
Return values
-NRF_EOPNOTSUPPUnsupported configuration.
-NRF_ENOMEMConfiguration required over 64 kB of RAM that is not supported currently.
-NRF_EINVALInvalid argument provided.
-NRF_EPERMThis API was called after sdc_enable().