library

Dependents:   RTC_class

Committer:
matthiaskosch
Date:
Thu Apr 30 10:11:49 2015 +0000
Revision:
0:b5f59b23bbef
RTC_class

Who changed what in which revision?

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