28.6.3.2.2 Function eeprom_emulator_write_page()

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

enum status_code eeprom_emulator_write_page( const uint8_t logical_page, const uint8_t *const data)

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

Note: Data stored in pages may be cached in volatile RAM memory; to commit any cached data to physical non-volatile memory, the eeprom_emulator_commit_page_buffer() function should be called.
Table 28-5. Parameters
Data directionParameter nameDescription

[in]

logical_page

Logical EEPROM page number to write to

[in]

data

Pointer to the data buffer containing source data to write

Returns

Status code indicating the status of the operation.

Table 28-6. Return Values
Return valueDescription

STATUS_OK

If the page was successfully read

STATUS_ERR_NOT_INITIALIZED

If the EEPROM emulator is not initialized

STATUS_ERR_BAD_ADDRESS

If an address outside the valid emulated EEPROM memory space was supplied