EepromSecureData
CRC-controlled EEPROM memory storage
EepromBase.h
1
/*
2
* Copyright (C) 2023 epsilonrt <epsilonrt@gmail.com>
3
* SPDX-License-Identifier: LGPL-2.1-or-later
4
*/
5
#include <EEPROM.h>
6
#include <assert.h>
7
#pragma once
8
9
// Meyer's singleton
10
template
<
class
Dummy>
11
struct
EepromBaseStatic
{
12
static
uint16_t counter;
13
};
14
15
template
<
class
Dummy>
16
uint16_t
EepromBaseStatic<Dummy>::counter
= 0;
17
21
class
EepromBase
:
public
EepromBaseStatic
<void> {};
EepromBaseStatic
Definition:
EepromBase.h:11
EepromBase
EEPROM memory storage management class.
Definition:
EepromBase.h:21
src
EepromBase.h
Generated on Fri Apr 28 2023 07:43:34 for EepromSecureData by
1.9.1