rtc_class

Committer:
c0ld
Date:
Thu Apr 30 10:48:43 2015 +0000
Revision:
0:8c666c6f7483
rtc_class

Who changed what in which revision?

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