nRF Connect SDK API 2.8.99
|
int dfu_lock_claim | ( | const struct dfu_lock_owner * | new_owner | ) |
#include <applications/nrf_desktop/src/util/dfu_lock.h>
Claim the DFU lock.
Claim the DFU lock for the provided owner instance. You can start to interact with the DFU flash memory once this function returns with success.
Claiming the DFU lock that you already claimed with the same owner instance has no effect and does not change the module state.
new_owner | New DFU owner descriptor. |
0 | on success. |
-EPERM | if the DFU lock has already been claimed by another owner. |