real time clock...Marcel Reath

Dependencies:   RTC8563 mbed

Fork of rtc_func by HIMBED_3AHELI

Date.h

Committer:
MarcelReath
Date:
2015-04-22
Revision:
5:22c2676c8acf
Parent:
4:f3adf7e6dd40

File content as of revision 5:22c2676c8acf:

#include "mbed.h"
#include "const.h"
#include "RTC8563.h"
#include "string"
 
#ifndef DATE_H
#define DATE_H
class Date : public RTC8563 // Date abgeleitet von RTC8563
{
private:
    uint8_t bcdToUint(uint8_t const nybbles);   // private Methode
    string toString(uint8_t value);
 
public:
    Date()  // Standard Konstruktor
    {}   
    uint8_t GetDay();   // Methode
    uint8_t GetMonth();
    uint8_t GetYear();
};
#endif