Function nrfxlib_sys::nrf_modem_delta_dfu_erase
source · pub unsafe extern "C" fn nrf_modem_delta_dfu_erase() -> c_int
Expand description
Erase the modem DFU area.
The modem DFU area must be erased before receiving a new firmware update.
This function will return after commencing the erase operation, but it will
not wait for its completion. Further calls to the delta DFU APIs will
return * MODEM_DELTA_DFU_ERASE_PENDING
- as long as the erase operation is
pending or ongoing.
The application may poll the offset until it returns zero, to determine if the operation has completed.
@note The erase operation may take longer when registered to the network than when not registered, i.e. in airplane mode.
Returns 0 On success. Returns -NRF_EPERM The Modem library is not initialized. Returns -NRF_ENOMEM Not enough shared memory for this request. Returns -NRF_ESHUTDOWN Modem was shut down. @returns A positive error code from @ref nrf_modem_delta_dfu_errors, if the modem refused the operation.