functions from rtc_func transferred to class RTC8563

Dependencies:   RTC8563 mbed

Fork of rtc_func by HIMBED_3AHELI

Goto Inhalt

Date.h

Committer:
Gm_070
Date:
2015-04-30
Revision:
11:83c6939656e5
Parent:
9:83be0e4edb52

File content as of revision 11:83c6939656e5:

#include "mbed.h"
#include "const.h"
#include "RTC8563.h"
#include "string"

#ifndef DATE_H
#define DATE_H
class Date : public RTC8563
{
protected:
    uint8_t bcdToUint(uint8_t const nybbles);
    string toString(uint8_t value);

public:
    Date()
    {
    }   
    uint8_t GetDay();
    uint8_t GetDay(int value);
    string GetDay(string str);
};
#endif