Date Library
Date.h@0:d2f9a55f0e6d, 2015-04-23 (annotated)
- Committer:
- wolpra98
- Date:
- Thu Apr 23 09:38:00 2015 +0000
- Revision:
- 0:d2f9a55f0e6d
Date library;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
wolpra98 | 0:d2f9a55f0e6d | 1 | #include "mbed.h" |
wolpra98 | 0:d2f9a55f0e6d | 2 | #include "const.h" |
wolpra98 | 0:d2f9a55f0e6d | 3 | #include "RTC8563.h" |
wolpra98 | 0:d2f9a55f0e6d | 4 | |
wolpra98 | 0:d2f9a55f0e6d | 5 | #ifndef DATE_H |
wolpra98 | 0:d2f9a55f0e6d | 6 | #define DATE_H |
wolpra98 | 0:d2f9a55f0e6d | 7 | class Date : public RTC8563 |
wolpra98 | 0:d2f9a55f0e6d | 8 | { |
wolpra98 | 0:d2f9a55f0e6d | 9 | private: |
wolpra98 | 0:d2f9a55f0e6d | 10 | uint8_t bcdToUint(uint8_t const nybbles); |
wolpra98 | 0:d2f9a55f0e6d | 11 | public: |
wolpra98 | 0:d2f9a55f0e6d | 12 | uint8_t GetDay(); |
wolpra98 | 0:d2f9a55f0e6d | 13 | public: |
wolpra98 | 0:d2f9a55f0e6d | 14 | uint8_t GetMonth(); |
wolpra98 | 0:d2f9a55f0e6d | 15 | public: |
wolpra98 | 0:d2f9a55f0e6d | 16 | uint8_t GetYear(); |
wolpra98 | 0:d2f9a55f0e6d | 17 | }; |
wolpra98 | 0:d2f9a55f0e6d | 18 | |
wolpra98 | 0:d2f9a55f0e6d | 19 | |
wolpra98 | 0:d2f9a55f0e6d | 20 | #endif |