nrf-softdevice-s112

Crates

git

Versions

default

Flavors

pub unsafe fn sd_flash_protect(
block_cfg0: u32,
block_cfg1: u32,
block_cfg2: u32,
block_cfg3: u32
) -> u32
Expand description

@brief Flash Protection set

Commands to set the flash protection configuration registers. This sets the CONFIGx registers of the BPROT peripheral.

@note Not all parameters are valid for all products. Some bits in each parameter may not be valid for your product. Please refer your Product Specification for more details.

@note To read the values read them directly. They are only write-protected.

@note It is possible to use @ref sd_protected_register_write instead of this function.

@param[in] block_cfg0 Value to be written to the configuration register. @param[in] block_cfg1 Value to be written to the configuration register. @param[in] block_cfg2 Value to be written to the configuration register. @param[in] block_cfg3 Value to be written to the configuration register.

@retval ::NRF_ERROR_NOT_SUPPORTED Non-zero value supplied to one or more of the unsupported parameters. @retval ::NRF_SUCCESS Values successfully written to configuration registers.