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