![](/media/cache/group/HIMBED0.jpg.50x50_q85.jpg)
functions from rtc_func transferred to class RTC8563
Fork of rtc_func by
Goto Inhalt
Date.h
- Committer:
- wolpra98
- Date:
- 2015-04-30
- Revision:
- 10:83960ae8a0ee
- Parent:
- 5:fc8c66a7c87a
File content as of revision 10:83960ae8a0ee:
/*********************************** name: date.h Version: 0.2 author: PE HTL BULME email: pe@bulme.at description: Real Time Clock (RTC8563) on HIMBED M0 - LPC11U24 class Date inherited from class RTC8563 Example methode GetDay implemented ToDo: implement GetYear, GetMonth; Constructor to initialize Date on RTC Alarm methode ***********************************/ #include "mbed.h" #include "const.h" #include "RTC8563.h" #include "string" #ifndef DATE_H #define DATE_H class Date : public RTC8563 // Date abgeleitet von RTC8563 { protected: uint8_t bcdToUint(uint8_t const nybbles); // private Methode string toString(uint8_t value); public: Date() // Standard Konstruktor { } uint8_t GetDay(); // Methode uint8_t GetDay(int value); virtual string GetDay(string str); }; #endif