1.3.1.4.6 EMU_EEPROM_PageWrite Function

1.3.1.4.6 C

EMU_EEPROM_STATUS EMU_EEPROM_PageWrite(
    const uint8_t logical_page,
    const uint8_t *const data
);

1.3.1.4.6 Summary

Writes a page of data to an emulated EEPROM memory page.

1.3.1.4.6 Description

Writes an emulated EEPROM page of data to the emulated EEPROM memory space.

1.3.1.4.6 Precondition

Function EMU_EEPROM_Initialize should have been called before calling this function.

1.3.1.4.6 Parameters

ParametersDescription
logical_pageLogical EEPROM page number to write to
dataPointer to the data buffer containing source data to write

1.3.1.4.6 Returns

EMU_EEPROM_STATUS - Enum of type EMU_EEPROM_STATUS. Status code indicating the status of the operation.

1.3.1.4.6 Example

uint8_t my_buffer[EMU_EEPROM_PAGE_DATA_SIZE];

EMU_EEPROM_PageWrite(0, my_buffer);

1.3.1.4.6 Remarks

Data stored in pages may be cached in volatile RAM memory; to commit any cached data to physical NVM, the EMU_EEPROM_CachedDataCommit() function should be called.