Patrick Lackner
/
rtc_classneu
rtc_class
Fork of rtc_class by
Date.h@3:c6081814064d, 2015-04-20 (annotated)
- Committer:
- bulmecisco
- Date:
- Mon Apr 20 05:53:40 2015 +0000
- Revision:
- 3:c6081814064d
- Child:
- 4:a4d39c018c65
class Date inherited from class RTC8563; Example methode GetDay implemented
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 | 3:c6081814064d | 4 | |
bulmecisco | 3:c6081814064d | 5 | #ifndef DATE_H |
bulmecisco | 3:c6081814064d | 6 | #define DATE_H |
bulmecisco | 3:c6081814064d | 7 | class Date : public RTC8563 // Date abgeleitet von RTC8563 |
bulmecisco | 3:c6081814064d | 8 | { |
bulmecisco | 3:c6081814064d | 9 | private: |
bulmecisco | 3:c6081814064d | 10 | uint8_t bcdToUint(uint8_t const nybbles); // private Methode |
bulmecisco | 3:c6081814064d | 11 | public: |
bulmecisco | 3:c6081814064d | 12 | Date() // Standard Konstruktor |
bulmecisco | 3:c6081814064d | 13 | {} |
bulmecisco | 3:c6081814064d | 14 | uint8_t GetDay(); // Methode |
bulmecisco | 3:c6081814064d | 15 | }; |
bulmecisco | 3:c6081814064d | 16 | #endif |