Functions |
|
| ret_code_t | nrf_dfu_settings_write ( nrf_dfu_flash_callback_t callback) |
|
Function for writing DFU settings to flash.
More...
|
|
| ret_code_t | nrf_dfu_settings_init (bool sd_irq_initialized) |
|
Function for initializing the DFU settings module.
More...
|
|
| ret_code_t | nrf_dfu_settings_additional_erase (void) |
|
Function for erasing additional data in DFU settings.
More...
|
|
Variables |
|
| nrf_dfu_settings_t | s_dfu_settings |
|
Global settings.
More...
|
|
Detailed Description
Function Documentation
| ret_code_t nrf_dfu_settings_additional_erase | ( | void | ) |
Function for erasing additional data in DFU settings.
- Note
- Erasing additional data in DFU settings is only possible if nrf_dfu_flash is initialized to not use SoftDevice calls.
- Return values
-
NRF_SUCCESS Additional data was successfully erased. Any other error code reported by nrf_dfu_flash
| ret_code_t nrf_dfu_settings_init | ( | bool | sd_irq_initialized | ) |
Function for initializing the DFU settings module.
- Return values
-
NRF_SUCCESS If the initialization was successful. NRF_ERROR_INTERNAL If a flash error occurred.
| ret_code_t nrf_dfu_settings_write | ( | nrf_dfu_flash_callback_t | callback | ) |
Function for writing DFU settings to flash.
- Parameters
-
[in] callback Pointer to a function that is called after completing the write operation.
- Return values
-
NRF_SUCCESS If the write process was successfully initiated. NRF_ERROR_INTERNAL If a flash error occurred.
Variable Documentation
| nrf_dfu_settings_t s_dfu_settings |
Global settings.
- Note
- Using this variable is not thread-safe.