/* Writes more than one byte to the EEPROM with a single WRITE cycle (Page WRITE sequence).  */
uint32_t sEE_WritePage(uint8_t *pBuffer, uint16_t WriteAddr, uint16_t *NumByteToWrite)
/* Writes more than one byte to the EEPROM with a single WRITE cycle (Page WRITE sequence).  */
uint32_t sEE_WritePage(uint8_t *pBuffer, uint16_t WriteAddr, uint16_t *NumByteToWrite)
{
  sEE_WriteEnable();
  sEE_CS_LOW();
  sEE_SendByte(sEE_CMD_WRITE);
  sEE_SendByte((WriteAddr & 0xFF0000) >> 16);
  sEE_SendByte((WriteAddr & 0xFF00) >> 8);
  sEE_SendByte(WriteAddr & 0xFF);
  while ((*NumByteToWrite)--)
  {
    sEE_SendByte(*pBuffer);
    pBuffer++;
  }
  sEE_CS_HIGH();
  sEE_WaitEepromStandbyState();
  sEE_WriteDisable();
  return 0;
}