vererbung

Dependencies:   RTC8563 mbed

Date.h

Committer:
matthiaskosch
Date:
2015-04-30
Revision:
0:b65c5f2413b0

File content as of revision 0:b65c5f2413b0:

/***********************************
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);   // überladene Methode
    string GetDay(string str);   // überladene Methode
};
#endif
            
/*
Ask a question Start a discussion
Repository toolbox

Embed:
Import this program
Export to desktop IDE
Build repository
Send Pull Request from here
*/