![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
I'm Lorenz Gandalf a 18 year old programmer from Austria. I love humans ,Dyrus,Bjergsen and Santorin. GG WP
Fork of rtc_class by
RTC8563.h@2:f75062350241, 2015-04-16 (annotated)
- Committer:
- bulmecisco
- Date:
- Thu Apr 16 10:25:33 2015 +0000
- Revision:
- 2:f75062350241
rtc functions in class RTC8563 transferred
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bulmecisco | 2:f75062350241 | 1 | // |
bulmecisco | 2:f75062350241 | 2 | // @ Project : RTC8563 |
bulmecisco | 2:f75062350241 | 3 | // @ File Name : RTC8563.h |
bulmecisco | 2:f75062350241 | 4 | // @ Date : 06.04.2015 |
bulmecisco | 2:f75062350241 | 5 | // @ Author : Franz Pucher |
bulmecisco | 2:f75062350241 | 6 | // @ Copyright : pe@bulme.at |
bulmecisco | 2:f75062350241 | 7 | // |
bulmecisco | 2:f75062350241 | 8 | #include "mbed.h" |
bulmecisco | 2:f75062350241 | 9 | #include "const.h" |
bulmecisco | 2:f75062350241 | 10 | |
bulmecisco | 2:f75062350241 | 11 | #if !defined(_RTC8563_H) |
bulmecisco | 2:f75062350241 | 12 | #define _RTC8563_H |
bulmecisco | 2:f75062350241 | 13 | |
bulmecisco | 2:f75062350241 | 14 | class RTC8563 |
bulmecisco | 2:f75062350241 | 15 | { |
bulmecisco | 2:f75062350241 | 16 | public: |
bulmecisco | 2:f75062350241 | 17 | RTC8563(); // delete void |
bulmecisco | 2:f75062350241 | 18 | RTC8563(PinName sda, PinName scl); |
bulmecisco | 2:f75062350241 | 19 | char rtc_read(char address); |
bulmecisco | 2:f75062350241 | 20 | void rtc_write(char address, char value); |
bulmecisco | 2:f75062350241 | 21 | void rtc_init(); |
bulmecisco | 2:f75062350241 | 22 | void rtc_alarm(); |
bulmecisco | 2:f75062350241 | 23 | protected: |
bulmecisco | 2:f75062350241 | 24 | I2C i2c; |
bulmecisco | 2:f75062350241 | 25 | }; |
bulmecisco | 2:f75062350241 | 26 | #endif //_RTC8563_H |