added GetDay() GetYear() GetWeek()

Dependencies:   mbed

Fork of rtc_class by Josef Kager

RTC8563.h

Committer:
KagerJ
Date:
2015-04-30
Revision:
3:75f5352b387d
Parent:
2:ce174a86d215

File content as of revision 3:75f5352b387d:

//
//  @ Project : RTC8563
//  @ File Name : RTC8563.h
//  @ Date : 06.04.2015
//  @ Author : Franz Pucher
//  @ Copyright : pe@bulme.at
//
#include "mbed.h"
#include "const.h"
 
#if !defined(_RTC8563_H)
#define _RTC8563_H
 
class RTC8563
{
public:
    RTC8563();          // delete void
    RTC8563(PinName sda, PinName scl);
    char rtc_read(char address);
    void rtc_write(char address, char value);
    void rtc_init();
    void rtc_alarm();
protected:
    I2C i2c;
};
 
#endif  //_RTC8563_H