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