Microchip® Advanced Software Framework

_eeprom_module Struct Reference

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_pageflash
 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
bool _eeprom_module::cache_active
bool _eeprom_module::initialized
uint8_t _eeprom_module::logical_pages
uint8_t _eeprom_module::page_map[EEPROM_MAX_PAGES/2-4]
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