RTC8563 library

Dependents:   rtc_class

Committer:
MarcelReath
Date:
Wed Apr 22 18:09:53 2015 +0000
Revision:
0:f11a8d59f4c8
Marcel Reath

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MarcelReath 0:f11a8d59f4c8 1 //
MarcelReath 0:f11a8d59f4c8 2 // @ Project : RTC8563
MarcelReath 0:f11a8d59f4c8 3 // @ File Name : RTC8563.h
MarcelReath 0:f11a8d59f4c8 4 // @ Date : 06.04.2015
MarcelReath 0:f11a8d59f4c8 5 // @ Author : Franz Pucher
MarcelReath 0:f11a8d59f4c8 6 // @ Copyright : pe@bulme.at
MarcelReath 0:f11a8d59f4c8 7 //
MarcelReath 0:f11a8d59f4c8 8 #include "mbed.h"
MarcelReath 0:f11a8d59f4c8 9 #include "const.h"
MarcelReath 0:f11a8d59f4c8 10
MarcelReath 0:f11a8d59f4c8 11 #if !defined(_RTC8563_H)
MarcelReath 0:f11a8d59f4c8 12 #define _RTC8563_H
MarcelReath 0:f11a8d59f4c8 13
MarcelReath 0:f11a8d59f4c8 14 class RTC8563
MarcelReath 0:f11a8d59f4c8 15 {
MarcelReath 0:f11a8d59f4c8 16 public:
MarcelReath 0:f11a8d59f4c8 17 RTC8563(); // delete void
MarcelReath 0:f11a8d59f4c8 18 RTC8563(PinName sda, PinName scl);
MarcelReath 0:f11a8d59f4c8 19 char rtc_read(char address);
MarcelReath 0:f11a8d59f4c8 20 void rtc_write(char address, char value);
MarcelReath 0:f11a8d59f4c8 21 void rtc_init();
MarcelReath 0:f11a8d59f4c8 22 void rtc_alarm();
MarcelReath 0:f11a8d59f4c8 23 protected:
MarcelReath 0:f11a8d59f4c8 24 I2C i2c;
MarcelReath 0:f11a8d59f4c8 25 };
MarcelReath 0:f11a8d59f4c8 26
MarcelReath 0:f11a8d59f4c8 27 #endif //_RTC8563_H