![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
.
Fork of rtc_func by
RTC8563.h@4:357c5386a78c, 2015-04-22 (annotated)
- Committer:
- Deixi
- Date:
- Wed Apr 22 19:31:07 2015 +0000
- Revision:
- 4:357c5386a78c
- Parent:
- 3:f75062350241
..; ;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bulmecisco | 3:f75062350241 | 1 | // |
bulmecisco | 3:f75062350241 | 2 | // @ Project : RTC8563 |
bulmecisco | 3:f75062350241 | 3 | // @ File Name : RTC8563.h |
bulmecisco | 3:f75062350241 | 4 | // @ Date : 06.04.2015 |
bulmecisco | 3:f75062350241 | 5 | // @ Author : Franz Pucher |
bulmecisco | 3:f75062350241 | 6 | // @ Copyright : pe@bulme.at |
bulmecisco | 3:f75062350241 | 7 | // |
bulmecisco | 3:f75062350241 | 8 | #include "mbed.h" |
bulmecisco | 3:f75062350241 | 9 | #include "const.h" |
bulmecisco | 3:f75062350241 | 10 | |
bulmecisco | 3:f75062350241 | 11 | #if !defined(_RTC8563_H) |
bulmecisco | 3:f75062350241 | 12 | #define _RTC8563_H |
bulmecisco | 3:f75062350241 | 13 | |
bulmecisco | 3:f75062350241 | 14 | class RTC8563 |
bulmecisco | 3:f75062350241 | 15 | { |
bulmecisco | 3:f75062350241 | 16 | public: |
bulmecisco | 3:f75062350241 | 17 | RTC8563(); // delete void |
bulmecisco | 3:f75062350241 | 18 | RTC8563(PinName sda, PinName scl); |
bulmecisco | 3:f75062350241 | 19 | char rtc_read(char address); |
bulmecisco | 3:f75062350241 | 20 | void rtc_write(char address, char value); |
bulmecisco | 3:f75062350241 | 21 | void rtc_init(); |
bulmecisco | 3:f75062350241 | 22 | void rtc_alarm(); |
bulmecisco | 3:f75062350241 | 23 | protected: |
bulmecisco | 3:f75062350241 | 24 | I2C i2c; |
bulmecisco | 3:f75062350241 | 25 | }; |
bulmecisco | 3:f75062350241 | 26 | #endif //_RTC8563_H |