Dani Hevi / RTC8563

Dependents:   rtc_class2

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RTC8563.h Source File

RTC8563.h

00001 //
00002 //  @ Project : RTC8563
00003 //  @ File Name : RTC8563.h
00004 //  @ Date : 16.04.2015
00005 //  @ Author : Daniel Hevesy
00006 //  @ Copyright : daniel.hevesy-szetty@bulme.at
00007 //
00008 #include "mbed.h"
00009 #include "const.h"
00010  
00011 #if !defined(_RTC8563_H)
00012 #define _RTC8563_H
00013  
00014 class RTC8563
00015 {
00016 public:
00017     RTC8563();          // delete void
00018     RTC8563(PinName sda, PinName scl);
00019     char rtc_read(char address);
00020     void rtc_write(char address, char value);
00021     void rtc_init();
00022     void rtc_alarm();
00023 protected:
00024     I2C i2c;
00025 };
00026  
00027 #endif  //_RTC8563_H