1.3.1.4.9 EMU_EEPROM_BufferRead Function

C

EMU_EEPROM_STATUS EMU_EEPROM_BufferRead(
    const uint16_t offset,
    uint8_t *const data,
    const uint16_t length
);

Summary

Reads a buffer of data from the emulated EEPROM memory space

Description

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

Precondition

Function EMU_EEPROM_Initialize should have been called before calling this function.

Parameters

ParamDescription
offsetStarting byte offset to read from, in emulated EEPROM memory space
dataPointer to the destination data buffer to fill
lengthLength of the data to read, in bytes

Returns

EMU_EEPROM_STATUS - Enum of type EMU_EEPROM_STATUS. Status code indicating the status of the operation.

Example

uint8_t my_buffer[5];

EMU_EEPROM_BufferRead(0, my_buffer, 5);

Remarks

None }