29.6.3.3.2 Function rww_eeprom_emulator_read_buffer()

Reads a buffer of data from the emulated RWW EEPROM memory space.

enum status_code rww_eeprom_emulator_read_buffer( const uint16_t offset, uint8_t *const data, const uint16_t length)

Reads a buffer of data from a section of emulated RWW EEPROM memory space. The destination buffer may be of any size, and the source may lie outside of an emulated RWW EEPROM page boundary.

Table 29-11. Parameters
Data directionParameter nameDescription

[in]

offset

Starting byte offset to read from, in emulated RWW EEPROM memory space

[out]

data

Pointer to the data buffer containing source data to read

[in]

length

Length of the data to read, in bytes

Returns

Status code indicating the status of the operation.

Table 29-12. 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