Function rww_eeprom_emulator_commit_page_buffer()

Commits any cached data to physical non-volatile memory.

enum status_code rww_eeprom_emulator_commit_page_buffer( void )

Commits the internal SRAM caches to physical non-volatile memory, to ensure that any outstanding cached data is preserved. This function should be called prior to a system reset or shutdown to prevent data loss.

Note: This should be the first function executed in a BOD33 Early Warning callback to ensure that any outstanding cache data is fully written to prevent data loss.
Note: This function should also be called before using the NVM controller directly in the user-application for any other purposes to prevent data loss.

Returns

Status code indicating the status of the operation.