28.6.3.2.3 Function eeprom_emulator_read_page()
Reads a page of data from an emulated EEPROM memory page.
enum status_code eeprom_emulator_read_page( const uint8_t logical_page, uint8_t *const data)
Reads an emulated EEPROM page of data from the emulated EEPROM memory space.
Data direction | Parameter name | Description |
---|---|---|
[in] |
logical_page |
Logical EEPROM page number to read from |
[out] |
data |
Pointer to the destination data buffer to fill |
Returns
Status code indicating the status of the operation.
Return value | Description |
---|---|
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 |