![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
rtc_class2
Fork of rtc_class by
Date.h@4:a4d39c018c65, 2015-04-20 (annotated)
- Committer:
- bulmecisco
- Date:
- Mon Apr 20 08:35:58 2015 +0000
- Revision:
- 4:a4d39c018c65
- Parent:
- 3:c6081814064d
- Child:
- 5:fc8c66a7c87a
to_String added to class Date
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bulmecisco | 3:c6081814064d | 1 | #include "mbed.h" |
bulmecisco | 3:c6081814064d | 2 | #include "const.h" |
bulmecisco | 3:c6081814064d | 3 | #include "RTC8563.h" |
bulmecisco | 4:a4d39c018c65 | 4 | #include "string" |
bulmecisco | 3:c6081814064d | 5 | |
bulmecisco | 3:c6081814064d | 6 | #ifndef DATE_H |
bulmecisco | 3:c6081814064d | 7 | #define DATE_H |
bulmecisco | 3:c6081814064d | 8 | class Date : public RTC8563 // Date abgeleitet von RTC8563 |
bulmecisco | 3:c6081814064d | 9 | { |
bulmecisco | 3:c6081814064d | 10 | private: |
bulmecisco | 3:c6081814064d | 11 | uint8_t bcdToUint(uint8_t const nybbles); // private Methode |
bulmecisco | 4:a4d39c018c65 | 12 | string toString(uint8_t value); |
bulmecisco | 4:a4d39c018c65 | 13 | |
bulmecisco | 3:c6081814064d | 14 | public: |
bulmecisco | 3:c6081814064d | 15 | Date() // Standard Konstruktor |
bulmecisco | 3:c6081814064d | 16 | {} |
bulmecisco | 3:c6081814064d | 17 | uint8_t GetDay(); // Methode |
bulmecisco | 3:c6081814064d | 18 | }; |
bulmecisco | 3:c6081814064d | 19 | #endif |