BSP_EEPROM_WritePage() function
Writes more than one byte to the EEPROM with a single WRITE cycle.
Arguments
pBuffer
pointer to the buffer containing the data to be written to the EEPROM.
WriteAddr
EEPROM's internal address to write to.
NumByteToWrite
pointer to the variable holding number of bytes to be written into the EEPROM.
Return value
EEPROM_OK (0) if operation is correctly performed, else return value different from EEPROM_OK (0) or the timeout user callback.
Notes
The number of bytes (combined to write start address) must not cross the EEPROM page boundary. This function can only write into the boundaries of an EEPROM page. This function doesn't check on boundaries condition (in this driver the function BSP_EEPROM_WriteBuffer() which calls BSP_EEPROM_WritePage() is responsible of checking on Page boundaries). The variable pointed by NumByteToWrite is reset to 0 when all the data are written to the EEPROM. Application should monitor this variable in order know when the transfer is complete. This function just configure the communication and enable the DMA channel to transfer data. Meanwhile, the user application may perform other tasks in parallel.