ESP3D  3.0
Firmware for ESP boards connected to 3D Printer
boot_delay.h
Go to the documentation of this file.
1 /*
2  boot_delay.h - boot delay functions class
3 
4  Copyright (c) 2014 Luc Lebosse. All rights reserved.
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Lesser General Public
8  License as published by the Free Software Foundation; either
9  version 2.1 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public
17  License along with this library; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20 
21 
22 
23 #ifndef _BOOT_DELAY_H
24 #define _BOOT_DELAY_H
25 
26 typedef void (progress_t)(uint8_t percent);
27 
28 class BootDelay
29 {
30 public:
31  BootDelay();
32  ~BootDelay();
33  bool begin();
34  void end();
35  void handle();
36  bool started();
37 private:
38  bool _started;
39  uint32_t _startdelay;
40  uint32_t _totalduration;
41 };
42 
43 #endif //_BOOT_DELAY_H
44 
BootDelay
Definition: boot_delay.h:28
BootDelay::~BootDelay
~BootDelay()
Definition: boot_delay.cpp:32
progress_t
void() progress_t(uint8_t percent)
Definition: boot_delay.h:26
BootDelay::end
void end()
Definition: boot_delay.cpp:60
BootDelay::started
bool started()
Definition: boot_delay.cpp:37
BootDelay::handle
void handle()
Definition: boot_delay.cpp:64
BootDelay::begin
bool begin()
Definition: boot_delay.cpp:42
BootDelay::BootDelay
BootDelay()
Definition: boot_delay.cpp:26