Function nrf_softdevice_s113::sd_ble_gap_privacy_get
source · pub unsafe fn sd_ble_gap_privacy_get(
p_privacy_params: *mut ble_gap_privacy_params_t
) -> u32
Expand description
@brief Get privacy settings.
@note ::ble_gap_privacy_params_t::p_device_irk must be initialized to NULL or a valid address before this function is called. If it is initialized to a valid address, the address pointed to will contain the current device IRK on return.
@param[in,out] p_privacy_params Privacy settings.
@retval ::NRF_SUCCESS Privacy settings read. @retval ::NRF_ERROR_INVALID_ADDR The pointer given for returning the privacy settings may be NULL or invalid. Otherwise, the p_device_irk pointer in privacy parameter is an invalid pointer.