-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlarmWorks.h
More file actions
51 lines (46 loc) · 729 Bytes
/
Copy pathAlarmWorks.h
File metadata and controls
51 lines (46 loc) · 729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* AlarmWorks.h
*
* Created: 2018-06-28 ¿ÀÀü 8:56:47
* Author: Cakeng (PARK JONG SEOK)
*
* NO LICENCE INCLUDED
* Contact cakeng@naver.com to
* use, modify, or share the software for any purpose.
*
*/
#ifndef _ALARMWORKS_CAKENG_H
#define _ALARMWORKS_CAKENG_H
#include <avr/io.h>
#include "ClockWorks.h"
#include "MCP7940N_RTC.h"
class AlarmWorks: public ClockWorks
{
private:
bool alarmTriggered;
bool alarmSet;
public:
AlarmWorks();
bool checkAlarm(ClockWorks& clockWork);
bool isTriggered()
{
return alarmTriggered;
}
void unTriggerAlarm()
{
alarmTriggered = false;
}
bool isSet()
{
return alarmSet;
}
void setAlarm()
{
alarmSet = true;
}
void unSetAlarm()
{
alarmSet = false;
}
};
#endif