![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Functions from rtc_func are programmed in a class
Fork of rtc_class by
Diff: Date.h
- Revision:
- 0:1df9d38ebe29
diff -r 000000000000 -r 1df9d38ebe29 Date.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Date.h Wed Apr 22 19:46:49 2015 +0000 @@ -0,0 +1,21 @@ +#include "mbed.h" +#include "const.h" +#include "RTC8563.h" + +#ifndef DATE_H +#define DATE_H +class Date : public RTC8563 +{ +private: + uint8_t bcdToUint(uint8_t const nybbles); +public: + uint8_t GetDay(); + uint8_t GetMonth(); + uint8_t GetYear(); + uint8_t GetSecond(); + uint8_t GetMinute(); + uint8_t GetHour(); + uint8_t GetWeek(); +}; + +#endif \ No newline at end of file