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