You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
466 B
30 lines
466 B
#ifndef _MODULE_RTC_h
|
|
#define _MODULE_RTC_h
|
|
|
|
#include "watchos_consts.h"
|
|
#include "watchos_types.h"
|
|
|
|
#include "Task.h"
|
|
#include "IRunnable.h"
|
|
|
|
class Module_RTC : public Task, public IRunnable
|
|
{
|
|
void refresh();
|
|
|
|
public:
|
|
Module_RTC();
|
|
void initialize();
|
|
void start();
|
|
void suspend();
|
|
void tick();
|
|
|
|
int getHour();
|
|
int getMinute();
|
|
int getSecond();
|
|
int getYear();
|
|
int getMonth();
|
|
int getDay();
|
|
char* getDayOfWeek();
|
|
};
|
|
|
|
#endif
|
|
|