a copy of PCF8583_rtc lib with some modification

Fork of PCF8583_rtc by Dennis Smith

Revision:
2:3291c1f0b986
Parent:
1:eaba89d6e5d8
Child:
3:c267167e379e
--- a/PCF8583_rtc.h	Sun Feb 23 21:27:24 2014 +0000
+++ b/PCF8583_rtc.h	Tue Feb 25 23:41:08 2014 +0000
@@ -136,18 +136,21 @@
 * @param address "TIME" = read the time, "ALARM" = read the alarm 
 * @param dti a DateTime_t structure containing the time or alarm data 
 */
-  void   write(const char address, DateTime_t dti);
+  void write(const char address, DateTime_t dti);
 
-  void   FormatDateTime(char *dest, char *format);
+  void FormatDateTime(char *dest, char *format);
 
-  bool   WriteNVram(char address, char * value, char num);
+  bool WriteNVram(char address, char * value, char num);
 
-  bool   ReadNVram(char address, char * dest, char num);
+  bool ReadNVram(char address, char * dest, char num);
 
-  void   SetDateTime(DateTime_t dti);
+  void SetDateTime(DateTime_t dti);
 
   char bin2bcd(char value);
   
+  void configureAlarmReg(char alarm);
+  void configureControlReg(char control);
+
 private:
   struct DateTime_t dt;
   char   _I2cAddress;
@@ -157,8 +160,6 @@
   void pauseCounting(void);
   char readByte(char address);
   void writeByte(char address, char d);
-  void configureAlarmReg(char alarm);
-  void configureControlReg(char control);
 };
 
 /** PCF8583_rtc class.