1.3.1.4.8 EMU_EEPROM_BufferWrite Function
1.3.1.4.8 C
EMU_EEPROM_STATUS EMU_EEPROM_BufferWrite(
const uint16_t offset,
const uint8_t *const data,
const uint16_t length
);
1.3.1.4.8 Summary
Writes a buffer of data to the emulated EEPROM memory space.
1.3.1.4.8 Description
Writes a buffer of data to a section of emulated EEPROM memory space. The source buffer may be of any size, and the destination may lie outside of an emulated EEPROM page boundary.
1.3.1.4.8 Precondition
Function EMU_EEPROM_Initialize should have been called before calling this function.
1.3.1.4.8 Parameters
| Parameters | Description |
|---|---|
| offset | Starting byte offset to write to, in emulated EEPROM memory space |
| data | Pointer to the data buffer containing source data to write |
| length | Length of the data to write, in bytes |
1.3.1.4.8 Returns
EMU_EEPROM_STATUS - Enum of type EMU_EEPROM_STATUS. Status code indicating the status of the operation.
1.3.1.4.8 Example
uint8_t my_buffer[5]; EMU_EEPROM_BufferWrite(0, my_buffer, 5);
1.3.1.4.8 Remarks
Data stored in pages may be cached in volatile RAM memory; to commit any cached data to physical NVM, the EMU_EEPROM_CachedDataCommit() function should be called.
