RTC Lib & Output

Dependencies:   LM75B RTC8563 mbed

Date.cpp

Committer:
EmilMcDuck
Date:
2015-04-23
Revision:
3:08812f743fea
Parent:
2:101ad0c50fe1

File content as of revision 3:08812f743fea:

#include "Date.h"
#include "const.h"
#include "mbed.h"

// Date
uint8_t Date::getDay()
{
    return read(DAYS);
}
uint8_t Date::getMonth()
{
    return read(MONTHS);
}
uint8_t Date::getYear()
{
    return read(YEARS);
}
uint8_t Date::getWeekday()
{
    return read(WEEKDAYS);
}

// Time
uint8_t Date::getHours()
{
    return read(HOURS);
}
uint8_t Date::getMinutes()
{
    return read(MINUTES);
}
uint8_t Date::getSeconds()
{
    return read(SECONDS);
}