nrf-softdevice-s140

Crates

git

Versions

default

Flavors

pub unsafe fn sd_ble_gap_privacy_set(
p_privacy_params: *const ble_gap_privacy_params_t
) -> u32
Expand description

@brief Set privacy settings.

@note Privacy settings cannot be changed while advertising, scanning or creating a connection.

@param[in] p_privacy_params Privacy settings.

@mscs @mmsc{@ref BLE_GAP_PRIVACY_ADV_MSC} @mmsc{@ref BLE_GAP_PRIVACY_SCAN_MSC} @mmsc{@ref BLE_GAP_PRIVACY_ADV_DIR_PRIV_MSC} @endmscs

@retval ::NRF_SUCCESS Set successfully. @retval ::NRF_ERROR_BUSY The stack is busy, process pending events and retry. @retval ::BLE_ERROR_GAP_INVALID_BLE_ADDR Invalid address type is supplied. @retval ::NRF_ERROR_INVALID_ADDR The pointer to privacy settings is NULL or invalid. Otherwise, the p_device_irk pointer in privacy parameter is an invalid pointer. @retval ::NRF_ERROR_INVALID_PARAM Out of range parameters are provided. @retval ::NRF_ERROR_NOT_SUPPORTED The SoftDevice does not support privacy if the Central Address Resolution characteristic is not configured to be included and the SoftDevice is configured to support central roles. See @ref ble_gap_cfg_car_incl_cfg_t and @ref ble_gap_cfg_role_count_t. @retval ::NRF_ERROR_INVALID_STATE Privacy settings cannot be changed while advertising, scanning or creating a connection.