Internal device instance struct.
Data Fields | |
struct _rww_eeprom_page | cache |
Buffer to hold the currently cached page. More... | |
bool | cache_active |
Indicates if the cache contains valid data. More... | |
bool | initialized |
Initialization state of the RWW EEPROM emulator. More... | |
uint8_t | logical_pages |
Number of logical pages occupied by the RWW EEPROM emulator. More... | |
uint8_t | page_map [RWW_EEPROM_MAX_LOGICAL_PAGES] |
Mapping array from logical RWW EEPROM pages to physical pages. More... | |
uint16_t | physical_pages |
Number of physical pages occupied by the RWW EEPROM emulator. More... | |
struct _rww_eeprom_page * | rwwee_addr |
Absolute byte pointer to the first byte of memory where the emulated RWW EEPROM is stored. More... | |
uint8_t | spare_row |
Row number for the spare row (used by next write). More... | |
struct _rww_eeprom_page _rww_eeprom_module::cache |
Buffer to hold the currently cached page.
Referenced by _rww_eeprom_emulator_move_data_to_spare(), rww_eeprom_emulator_commit_page_buffer(), rww_eeprom_emulator_read_page(), and rww_eeprom_emulator_write_page().
bool _rww_eeprom_module::cache_active |
Indicates if the cache contains valid data.
Referenced by _rww_eeprom_emulator_move_data_to_spare(), rww_eeprom_emulator_commit_page_buffer(), rww_eeprom_emulator_init(), rww_eeprom_emulator_read_page(), and rww_eeprom_emulator_write_page().
bool _rww_eeprom_module::initialized |
Initialization state of the RWW EEPROM emulator.
Referenced by _rww_eeprom_emulator_nvm_fill_cache(), _rww_eeprom_emulator_nvm_read_page(), rww_eeprom_emulator_erase_memory(), rww_eeprom_emulator_get_parameters(), rww_eeprom_emulator_init(), rww_eeprom_emulator_read_page(), and rww_eeprom_emulator_write_page().
uint8_t _rww_eeprom_module::logical_pages |
Number of logical pages occupied by the RWW EEPROM emulator.
Referenced by _rww_eeprom_emulator_update_page_mapping(), rww_eeprom_emulator_get_parameters(), rww_eeprom_emulator_init(), rww_eeprom_emulator_read_page(), and rww_eeprom_emulator_write_page().
uint8_t _rww_eeprom_module::page_map[RWW_EEPROM_MAX_LOGICAL_PAGES] |
Mapping array from logical RWW EEPROM pages to physical pages.
Referenced by _rww_eeprom_emulator_move_data_to_spare(), _rww_eeprom_emulator_update_page_mapping(), rww_eeprom_emulator_commit_page_buffer(), rww_eeprom_emulator_read_page(), and rww_eeprom_emulator_write_page().
uint16_t _rww_eeprom_module::physical_pages |
Number of physical pages occupied by the RWW EEPROM emulator.
Referenced by _rww_eeprom_emulator_check_logical_page(), _rww_eeprom_emulator_format_memory(), _rww_eeprom_emulator_update_page_mapping(), and rww_eeprom_emulator_init().
struct _rww_eeprom_page* _rww_eeprom_module::rwwee_addr |
Absolute byte pointer to the first byte of memory where the emulated RWW EEPROM is stored.
Referenced by _rww_eeprom_emulator_check_logical_page(), _rww_eeprom_emulator_is_full_row(), _rww_eeprom_emulator_is_page_free_on_row(), _rww_eeprom_emulator_move_data_to_spare(), _rww_eeprom_emulator_nvm_commit_cache(), _rww_eeprom_emulator_nvm_erase_row(), _rww_eeprom_emulator_nvm_fill_cache(), _rww_eeprom_emulator_nvm_read_page(), _rww_eeprom_emulator_update_page_mapping(), and rww_eeprom_emulator_init().
uint8_t _rww_eeprom_module::spare_row |
Row number for the spare row (used by next write).
Referenced by _rww_eeprom_emulator_format_memory(), _rww_eeprom_emulator_move_data_to_spare(), _rww_eeprom_emulator_update_page_mapping(), and rww_eeprom_emulator_init().