Function nrf_softdevice_s113::sd_ble_gap_privacy_set
source · 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.
@param[in] p_privacy_params Privacy settings.
@mscs @mmsc{@ref BLE_GAP_PRIVACY_ADV_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_INVALID_STATE Privacy settings cannot be changed while advertising.