option to reset last check via config, TEK storage functions

This commit is contained in:
Lurkars
2020-10-27 19:59:54 +01:00
parent af3888ec87
commit 8b38bde332
4 changed files with 44 additions and 2 deletions
+17
View File
@@ -113,6 +113,14 @@ uint32_t ena_storage_read_last_exposure_date(void);
*/
void ena_storage_write_last_exposure_date(uint32_t timestamp);
/**
* @brief get number of stored TEKs
*
* @return
* total number of TEKs stored
*/
uint32_t ena_storage_tek_count(void);
/**
* @brief get last stored TEK
*
@@ -123,6 +131,15 @@ void ena_storage_write_last_exposure_date(uint32_t timestamp);
*/
uint32_t ena_storage_read_last_tek(ena_tek_t *tek);
/**
* @brief get stored TEK at given index
*
* @param[in] index the index of the TEK to read
* @param[out] tek pointer to write TEK to
*
*/
void ena_storage_get_tek(uint32_t index, ena_tek_t *tek);
/**
* @brief store given TEK
*