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

◆ get_monotonic_counter()

int get_monotonic_counter ( uint16_t counter_desc,
uint16_t * counter_value )

#include <include/bl_storage.h>

Get the current HW monotonic counter.

Parameters
[in]counter_descCounter description.
[out]counter_valueThe value of the current counter.
Return values
0Success
-EINVALCannot find counters with description counter_desc or the pointer to counter_value is NULL.