nRF Connect SDK API 0.1.0
|
void(* dfu_lock_owner::owner_changed) (const struct dfu_lock_owner *new_owner) |
Notify the previous DFU owner that another DFU owner claimed the lock.
This information can be used to perform the cleanup operations before the subsequent DFU attempts of the previous DFU owner. Typically, the previous DFU owner should reset its DFU progress and make sure that the DFU flash memory is erased before writing new image content. Please note that the flash erase operation can only be done once the previous owner reclaims the DFU lock.
This callback is executed from the context used by the new DFU owner to claim lock. During the callback execution, mutex of the DFU lock module is locked. It is recommended to perform simple operations within the context of this callback.
new_owner | New DFU owner descriptor. |