Class to provide simple access to I2C EEPROM chiles like Microchip's 24LC range or AMTELS AT24C range. Chips up to 64Kb in size are directly supported. Updated to Mbed OS v 5.1

Dependents:   storage_test

Revision:
11:c3609e691623
Parent:
10:3824e507953c
Child:
12:d9a44fb3b9a6
--- a/I2CEeprom.h	Sat Mar 28 16:42:13 2020 +0000
+++ b/I2CEeprom.h	Sat Mar 28 17:01:58 2020 +0000
@@ -99,7 +99,7 @@
 
     /// Write multiple bytes to EEprom
     /// Note that in this implementation, the write is split into chunks
-    /// of up to pageSize and for each chunk a buffer of up to pageSize +2   
+    /// of up to pageSize and for each chunk a buffer of up to pageSize + 2   
     /// is temporarily allocated on the heap while the write is in progress.
     /// @param address Start EEprom address.
     /// @param buffer Buffer holding the bytes to write.
@@ -109,6 +109,7 @@
 
     /// Serialise an object of type T.
     /// @param address EEprom write start address.
+    /// @param value Object to be serialised.
     /// @returns Number of bytes written.
     template<typename T> size_t write(size_t address, const T &value) {
         return write(address, reinterpret_cast<const char *>(&value), sizeof(T));