vererbung

Dependencies:   RTC8563 mbed

Revision:
0:b65c5f2413b0
diff -r 000000000000 -r b65c5f2413b0 Date.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Date.h	Thu Apr 30 10:13:44 2015 +0000
@@ -0,0 +1,47 @@
+/***********************************
+name:   date.h    Version: 0.2
+author: PE HTL BULME
+email:  pe@bulme.at
+description:
+    Real Time Clock (RTC8563) on HIMBED M0 - LPC11U24 
+    class Date inherited from class RTC8563
+    Example methode GetDay implemented 
+ToDo: 
+    implement GetYear, GetMonth;
+    Constructor to initialize Date on RTC
+    Alarm methode
+***********************************/
+ 
+#include "mbed.h"
+#include "const.h"
+#include "RTC8563.h"
+#include "string"
+ 
+#ifndef DATE_H
+#define DATE_H
+class Date : public RTC8563 // Date abgeleitet von RTC8563
+{
+protected:
+    uint8_t bcdToUint(uint8_t const nybbles);   // private Methode
+    string toString(uint8_t value);
+ 
+public:
+    Date()  // Standard Konstruktor
+    {
+    }   
+    uint8_t GetDay();   // Methode
+    uint8_t GetDay(int value);   // überladene Methode
+    string GetDay(string str);   // überladene Methode
+};
+#endif
+            
+/*
+Ask a question Start a discussion
+Repository toolbox
+
+Embed:
+Import this program
+Export to desktop IDE
+Build repository
+Send Pull Request from here
+*/
\ No newline at end of file