Functions from rtc_func are programmed in a class

Dependencies:   RTC8563 mbed

Fork of rtc_class by Johannes Mayerhofer

Date.h

Committer:
Cartillius
Date:
2015-04-30
Revision:
2:254db37497ac
Parent:
0:1df9d38ebe29

File content as of revision 2:254db37497ac:

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

#ifndef DATE_H
#define DATE_H
class Date : public RTC8563
{
private:
    uint8_t bcdToUint(uint8_t const nybbles);
public:
    uint8_t GetDay();
    uint8_t GetMonth();
    uint8_t GetYear();
    uint8_t GetSecond();
    uint8_t GetMinute();
    uint8_t GetHour();
    uint8_t GetWeek();
};

#endif