![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
my programm rtc_class with functions in Date.cpp
Fork of rtc_func by
Date.h@3:75f5352b387d, 2015-04-30 (annotated)
- Committer:
- KagerJ
- Date:
- Thu Apr 30 10:53:00 2015 +0000
- Revision:
- 3:75f5352b387d
- Parent:
- 2:ce174a86d215
added GetDay() GetYear() GetWeek()
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 | 3:75f5352b387d | 15 | uint8_t GetWeek(); |
KagerJ | 2:ce174a86d215 | 16 | }; |
KagerJ | 2:ce174a86d215 | 17 | |
KagerJ | 2:ce174a86d215 | 18 | #endif |