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