functions from rtc_func transferred to class RTC8563

Dependencies:   RTC8563 mbed

Fork of rtc_func by HIMBED_3AHELI

Goto Inhalt

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?

UserRevisionLine numberNew 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