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

◆ is_monotonic_counter_update_possible()

int is_monotonic_counter_update_possible ( uint16_t counter_desc)

#include <include/bl_storage.h>

Checks whether it is possible to update the monotonic counter to a new value.

Parameters
[in]counter_descCounter description.
Return values
0The counter was updated successfully.
-EINVALcounter_desc is invalid.
-ENOMEMThere are no more free counter slots (see
SB_CONFIG_SECURE_BOOT_NUM_VER_COUNTER_SLOTS 
).