Sming Framework API
()
Toggle main menu visibility
Sming
Platform
WDT.h
Go to the documentation of this file.
1
/****
2
* Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3
* Created 2015 by Skurydin Alexey
4
* http://github.com/SmingHub/Sming
5
* All files of the Sming Core are provided under the LGPL v3 license.
6
*
7
* WDT.h
8
*
9
* Created on: 06 ���. 2015 �.
10
* Author: Anakod
11
*
12
****/
13
21
#pragma once
22
23
#include "
System.h
"
24
30
class
WDTClass
:
protected
ISystemReadyHandler
31
{
32
public
:
36
void
enable
(
bool
enableWatchDog);
37
42
void
alive
();
43
44
protected
:
45
void
onSystemReady
()
override
;
46
47
void
internalApplyEnabled
();
48
49
private
:
50
bool
enabled =
true
;
51
};
52
59
extern
WDTClass
WDT
;
60
System.h
ISystemReadyHandler
Interface class implemented by classes to support on-ready callback.
Definition:
System.h:56
WDTClass
Definition:
WDT.h:31
WDTClass::onSystemReady
void onSystemReady() override
Handle system ready events.
WDTClass::alive
void alive()
Keep watchdog timer alive.
WDTClass::enable
void enable(bool enableWatchDog)
Enable or disable watchdog timer.
WDTClass::internalApplyEnabled
void internalApplyEnabled()
WDT
WDTClass WDT
Global instance of watchdog timer object.
Generated by
1.9.1