![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Functions from rtc_func are programmed in a class
Fork of rtc_class by
Date.h
- Committer:
- Cartillius
- Date:
- 2015-04-22
- Revision:
- 0:1df9d38ebe29
File content as of revision 0:1df9d38ebe29:
#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