Library for Maxim DS3232M super-accurate, I2C based Real Time Clock chip with 234 bytes of user RAM. Library includes user RAM read/write operations along with CRC routines for accessing the user RAM area.

Dependents:   ds3232m_HelloWorld

Revision:
4:b5acccb6c3d1
Parent:
3:e9c5025ba2ca
--- a/ds3232m.h	Wed Mar 11 19:16:37 2015 +0000
+++ b/ds3232m.h	Tue Apr 28 22:27:21 2015 +0000
@@ -8,6 +8,20 @@
 and 236 bytes of user defined battery-backed RAM.
 */
 
+#if(defined(TARGET_KL25Z) )//|| defined(TARGET_K64F))
+
+    #define DS3232i2cLOWLEVEL   1           //if the use of low-level I2C routines is needed
+    #warning "DS3232M using low level I2C routines"
+    
+#endif
+
+//possible error returns from getUserRAM()
+#define DS3232_NOERROR          0x00        //ok, no error   
+#define DS3232_OVERFLOWERROR    0x01        //length + offset is over the highest user RAM location
+#define DS3232_OFFSETERROR      0x02        //offset < 0x14, those registers are not in the user RAM area
+#define DS3232_LENZEROERROR     0x04        //length = 0
+#define DS3232_CRCERROR         0x08        //crc error
+
 /** Class ds3232m implements the real time clock
  *
  *