CryptoAuthLib
Microchip CryptoAuthentication Library
atca_basic_counter.c File Reference

CryptoAuthLib Basic API methods for Counter command. More...

#include "atca_basic.h"
#include "atca_execution.h"

Functions

ATCA_STATUS atcab_counter (uint8_t mode, uint16_t counter_id, uint32_t *counter_value)
 Compute the Counter functions. More...
 
ATCA_STATUS atcab_counter_increment (uint16_t counter_id, uint32_t *counter_value)
 Increments one of the device's monotonic counters. More...
 
ATCA_STATUS atcab_counter_read (uint16_t counter_id, uint32_t *counter_value)
 Read one of the device's monotonic counters. More...
 

Detailed Description

CryptoAuthLib Basic API methods for Counter command.

The Counter command reads or increments the binary count value for one of the two monotonic counters

Note
List of devices that support this command - ATECC508A and ATECC608A. There are differences in the modes that they support. Refer to device datasheets for full details.