/**
* @brief Reads a block of data from the EEPROM.
* @param pBuffer : pointer to the buffer that receives the data read from
* the EEPROM.
* @param ReadAddr : EEPROM's internal address to start reading from.
* @param NumByteToRead : pointer to the variable holding number of bytes to
* be read from the EEPROM.
*
* @note The variable pointed by NumByteToRead is reset to 0 when all the
* data are read from the EEPROM. Application should monitor this
* variable in order to know when the transfer is complete.
*
* @note This function ensures data reading from EEPROM, it assumes that I2C is
* used with polling or its interrupt priority is not the highest in the
* application.
* Method 2 transfer sequence is implemented in this function(refer to RM0016
* for more details). 3 bytes, 2bytes and 1 byte reception cases are handled.
*
* @retval sEE_OK (0) if operation is correctly performed, else return value
* different from sEE_OK (0) or the timeout user callback.
*/
đang được dịch, vui lòng đợi..
