nRF Connect SDK Bare Metal API 2.0.99
Loading...
Searching...
No Matches

◆ img_mgmt_slot_in_use()

int img_mgmt_slot_in_use ( int slot)

#include <img_mgmt.h>

Check if the image slot is in use.

The check is based on MCUboot flags, not image contents. This means that the slot with an image in it, but no bootable flags set, is considered empty. Active slot is always in use.

Parameters
slotSlot number.
Returns
0 if slot is not used, non-0 otherwise.