1.3.1.4.9 EMU_EEPROM_BufferRead Function
1.3.1.4.9 C
EMU_EEPROM_STATUS EMU_EEPROM_BufferRead(
const uint16_t offset,
uint8_t *const data,
const uint16_t length
);
1.3.1.4.9 Summary
Reads a buffer of data from the emulated EEPROM memory space.
1.3.1.4.9 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.
1.3.1.4.9 Precondition
Function EMU_EEPROM_Initialize should have been called before calling this function.
1.3.1.4.9 Parameters
| Parameters | Description |
|---|---|
| offset | Starting byte offset to read from, in emulated EEPROM memory space |
| data | Pointer to the destination data buffer to fill |
| length | Length of the data to read, in bytes |
1.3.1.4.9 Returns
EMU_EEPROM_STATUS - Enum of type EMU_EEPROM_STATUS. Status code indicating the status of the operation.
1.3.1.4.9 Example
uint8_t my_buffer[5]; EMU_EEPROM_BufferRead(0, my_buffer, 5);
1.3.1.4.9 Remarks
None.
