nrf-softdevice-s140

Crates

git

Versions

default

Flavors

pub unsafe fn sd_protected_register_write(
p_register: *mut u32,
value: u32
) -> u32
Expand description

@brief Write register protected by the SoftDevice

This function writes to a register that is write-protected by the SoftDevice. Please refer to your SoftDevice Specification for more details about which registers that are protected by SoftDevice. This function can write to the following protected peripheral:

  • ACL

@note Protected registers may be read directly. @note Register that are write-once will return @ref NRF_SUCCESS on second set, even the value in the register has not changed. See the Product Specification for more details about register properties.

@param[in] p_register Pointer to register to be written. @param[in] value Value to be written to the register.

@retval ::NRF_ERROR_INVALID_ADDR This function can not write to the reguested register. @retval ::NRF_SUCCESS Value successfully written to register.