nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ dfu_lock_claim()

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.

Parameters
new_ownerNew DFU owner descriptor.
Return values
0on success.
-EPERMif the DFU lock has already been claimed by another owner.