Template of how the HW class should look like.
More...
#include <EEPROMStoredBitSet.hxx>
Template of how the HW class should look like.
Definition at line 42 of file EEPROMStoredBitSet.hxx.
◆ eeprom_t
| typedef uint32_t EEPROMStoredBitSet_DefaultHW::eeprom_t |
|
protected |
◆ bits_per_cell()
| static unsigned EEPROMStoredBitSet_DefaultHW::bits_per_cell |
( |
| ) |
|
|
inlinestaticprotected |
◆ physical_cell_count()
| static unsigned EEPROMStoredBitSet_DefaultHW::physical_cell_count |
( |
| ) |
|
|
inlinestaticprotected |
◆ read_cell()
| static eeprom_t EEPROMStoredBitSet_DefaultHW::read_cell |
( |
unsigned |
cell_offset | ) |
|
|
staticprotected |
Reads from the physical storage.
- Parameters
-
| cell_offset | the eeprom cell to read. |
- Returns
- the last written value of that cell.
◆ virtual_cell_count()
| static unsigned EEPROMStoredBitSet_DefaultHW::virtual_cell_count |
( |
| ) |
|
|
inlinestaticprotected |
Defines how many virtual cells we store.
The total size of the storage will be VIRTUAL_CELL_COUNT * BITS_PER_CELL. The maximum is 2 ^ (sizeof(eeprom_t) * 8 - bits_per_cell() - 1) - 1.
- Returns
- the number of cells in the address space
Definition at line 57 of file EEPROMStoredBitSet.hxx.
◆ write_cell()
| static void EEPROMStoredBitSet_DefaultHW::write_cell |
( |
unsigned |
cell_offset, |
|
|
eeprom_t |
value |
|
) |
| |
|
staticprotected |
Writes to the physical storage.
- Parameters
-
| cell_offset | the eeprom cell to write, 0..physical_cell_count() - 1. |
| value | is the data to write to that cell. |
The documentation for this class was generated from the following file: