![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
.
Fork of rtc_func by
Date.h@4:357c5386a78c, 2015-04-22 (annotated)
- Committer:
- Deixi
- Date:
- Wed Apr 22 19:31:07 2015 +0000
- Revision:
- 4:357c5386a78c
..; ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Deixi | 4:357c5386a78c | 1 | #include "mbed.h" |
Deixi | 4:357c5386a78c | 2 | #include "const.h" |
Deixi | 4:357c5386a78c | 3 | #include "RTC8563.h" |
Deixi | 4:357c5386a78c | 4 | #include "string" |
Deixi | 4:357c5386a78c | 5 | |
Deixi | 4:357c5386a78c | 6 | #ifndef DATE_H |
Deixi | 4:357c5386a78c | 7 | #define DATE_H |
Deixi | 4:357c5386a78c | 8 | class Date : public RTC8563 // Date abgeleitet von RTC8563 |
Deixi | 4:357c5386a78c | 9 | { |
Deixi | 4:357c5386a78c | 10 | private: |
Deixi | 4:357c5386a78c | 11 | uint8_t bcdToUint(uint8_t const nybbles); // private Methode |
Deixi | 4:357c5386a78c | 12 | string toString(uint8_t value); |
Deixi | 4:357c5386a78c | 13 | |
Deixi | 4:357c5386a78c | 14 | public: |
Deixi | 4:357c5386a78c | 15 | Date() // Standard Konstruktor |
Deixi | 4:357c5386a78c | 16 | {} |
Deixi | 4:357c5386a78c | 17 | uint8_t GetDay(); // Methode |
Deixi | 4:357c5386a78c | 18 | uint8_t GetMonth(); |
Deixi | 4:357c5386a78c | 19 | uint8_t GetYear(); |
Deixi | 4:357c5386a78c | 20 | uint8_t GetMinute(); |
Deixi | 4:357c5386a78c | 21 | uint8_t GetHour(); |
Deixi | 4:357c5386a78c | 22 | uint8_t GetSecond(); |
Deixi | 4:357c5386a78c | 23 | }; |
Deixi | 4:357c5386a78c | 24 | #endif |