Functions from rtc_func are programmed in a class

Dependencies:   RTC8563 mbed

Fork of rtc_class by Johannes Mayerhofer

Revision:
0:1df9d38ebe29
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Date.h	Wed Apr 22 19:46:49 2015 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "const.h"
+#include "RTC8563.h"
+
+#ifndef DATE_H
+#define DATE_H
+class Date : public RTC8563
+{
+private:
+    uint8_t bcdToUint(uint8_t const nybbles);
+public:
+    uint8_t GetDay();
+    uint8_t GetMonth();
+    uint8_t GetYear();
+    uint8_t GetSecond();
+    uint8_t GetMinute();
+    uint8_t GetHour();
+    uint8_t GetWeek();
+};
+
+#endif
\ No newline at end of file