Josef Kager
/
rtc_class2
added GetDay() GetYear() GetWeek()
Fork of rtc_class by
Date.h@2:ce174a86d215, 2015-04-23 (annotated)
- Committer:
- KagerJ
- Date:
- Thu Apr 23 09:42:34 2015 +0000
- Revision:
- 2:ce174a86d215
- Child:
- 3:75f5352b387d
added GetWeek() GetDays() GetMonths() GetYears()
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
KagerJ | 2:ce174a86d215 | 1 | #include "mbed.h" |
KagerJ | 2:ce174a86d215 | 2 | #include "const.h" |
KagerJ | 2:ce174a86d215 | 3 | #include "RTC8563.h" |
KagerJ | 2:ce174a86d215 | 4 | |
KagerJ | 2:ce174a86d215 | 5 | #ifndef DATE.H |
KagerJ | 2:ce174a86d215 | 6 | #define DATE.H |
KagerJ | 2:ce174a86d215 | 7 | class Date : public RTC8563 |
KagerJ | 2:ce174a86d215 | 8 | { |
KagerJ | 2:ce174a86d215 | 9 | private: |
KagerJ | 2:ce174a86d215 | 10 | uint8_t bcdToUint(uint8_t const nybbles); |
KagerJ | 2:ce174a86d215 | 11 | public: |
KagerJ | 2:ce174a86d215 | 12 | uint8_t GetDay(); |
KagerJ | 2:ce174a86d215 | 13 | uint8_t GetMonth(); |
KagerJ | 2:ce174a86d215 | 14 | uint8_t GetYear(); |
KagerJ | 2:ce174a86d215 | 15 | }; |
KagerJ | 2:ce174a86d215 | 16 | |
KagerJ | 2:ce174a86d215 | 17 | #endif |