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

◆ set_monotonic_version()

int set_monotonic_version ( uint16_t  version,
uint16_t  slot 
)

#include <include/bl_validation.h>

Write 15 bit version and 1 bit slot to a 16 bit monotonic counter.

Parameters
[in]versionFirmware version. Can be any unsigned 15 bit value.
[in]slotSlot where firmware is located. Must be 0 or 1.
Returns
See set_monotonic_counter.