nRF Connect SDK API 2.8.99
|
int get_monotonic_counter | ( | uint16_t | counter_desc, |
uint16_t * | counter_value ) |
#include <include/bl_storage.h>
Get the current HW monotonic counter.
[in] | counter_desc | Counter description. |
[out] | counter_value | The value of the current counter. |
0 | Success |
-EINVAL | Cannot find counters with description counter_desc or the pointer to counter_value is NULL. |