Internal device instance struct.
Data Fields | |
struct _eeprom_page | cache |
Buffer to hold the currently cached page. More... | |
bool | cache_active |
Indicates if the cache contains valid data. More... | |
struct _eeprom_page * | flash |
Absolute byte pointer to the first byte of FLASH where the emulated EEPROM is stored. More... | |
bool | initialized |
Initialization state of the EEPROM emulator. More... | |
uint8_t | logical_pages |
Number of logical FLASH pages occupied by the EEPROM emulator. More... | |
uint8_t | page_map [EEPROM_MAX_PAGES/2-4] |
Mapping array from logical EEPROM pages to physical FLASH pages. More... | |
uint16_t | physical_pages |
Number of physical FLASH pages occupied by the EEPROM emulator. More... | |
uint8_t | spare_row |
Row number for the spare row (used by next write). More... | |
struct _eeprom_page _eeprom_module::cache |
Buffer to hold the currently cached page.
Referenced by _eeprom_emulator_move_data_to_spare(), eeprom_emulator_commit_page_buffer(), eeprom_emulator_read_page(), and eeprom_emulator_write_page().
bool _eeprom_module::cache_active |
Indicates if the cache contains valid data.
Referenced by _eeprom_emulator_move_data_to_spare(), eeprom_emulator_commit_page_buffer(), eeprom_emulator_init(), eeprom_emulator_read_page(), and eeprom_emulator_write_page().
struct _eeprom_page* _eeprom_module::flash |
Absolute byte pointer to the first byte of FLASH where the emulated EEPROM is stored.
Referenced by _eeprom_emulator_check_logical_page(), _eeprom_emulator_is_full_row(), _eeprom_emulator_is_page_free_on_row(), _eeprom_emulator_move_data_to_spare(), _eeprom_emulator_nvm_commit_cache(), _eeprom_emulator_nvm_erase_row(), _eeprom_emulator_nvm_fill_cache(), _eeprom_emulator_nvm_read_page(), _eeprom_emulator_update_page_mapping(), and eeprom_emulator_init().
bool _eeprom_module::initialized |
Initialization state of the EEPROM emulator.
Referenced by eeprom_emulator_get_parameters(), eeprom_emulator_init(), eeprom_emulator_read_page(), and eeprom_emulator_write_page().
uint8_t _eeprom_module::logical_pages |
Number of logical FLASH pages occupied by the EEPROM emulator.
Referenced by _eeprom_emulator_update_page_mapping(), eeprom_emulator_get_parameters(), eeprom_emulator_init(), eeprom_emulator_read_page(), and eeprom_emulator_write_page().
uint8_t _eeprom_module::page_map[EEPROM_MAX_PAGES/2-4] |
Mapping array from logical EEPROM pages to physical FLASH pages.
Referenced by _eeprom_emulator_move_data_to_spare(), _eeprom_emulator_update_page_mapping(), eeprom_emulator_commit_page_buffer(), eeprom_emulator_read_page(), and eeprom_emulator_write_page().
uint16_t _eeprom_module::physical_pages |
Number of physical FLASH pages occupied by the EEPROM emulator.
Referenced by _eeprom_emulator_check_logical_page(), _eeprom_emulator_format_memory(), _eeprom_emulator_update_page_mapping(), and eeprom_emulator_init().
uint8_t _eeprom_module::spare_row |
Row number for the spare row (used by next write).
Referenced by _eeprom_emulator_format_memory(), _eeprom_emulator_move_data_to_spare(), _eeprom_emulator_update_page_mapping(), and eeprom_emulator_init().