29.6.3.2.3 Function rww_eeprom_emulator_read_page()

Reads a page of data from an emulated RWW EEPROM memory page.

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

Reads an emulated RWW EEPROM page of data from the emulated RWW EEPROM memory space.

Table 29-7. Parameters
Data directionParameter nameDescription

[in]

logical_page

Logical RWW 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.

Table 29-8. Return Values
Return valueDescription

STATUS_OK

If the page was successfully read

STATUS_ERR_NOT_INITIALIZED

If the RWW EEPROM emulator is not initialized

STATUS_ERR_BAD_ADDRESS

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

STATUS_ERR_BAD_FORMAT

Page data checksum is not correct, maybe data is damaged