Prusa MINI Firmware overview
safety_timer.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4  *
5  * Based on Sprinter and grbl.
6  * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 #pragma once
23 
24 #include "../HAL/HAL.h"
25 #include "../core/utility.h"
26 
27 /**
28  * Set the interval after which the safety timer will expire
29  * and reset the timer. If set to zero (default), the safety
30  * timer is disabled.
31  */
33 
34 /**
35  * Whether the safety timer is expired.
36  */
38 
39 /**
40  * Reset the internal counter of the safety timer.
41  */
42 void safety_timer_reset();
safety_timer_reset
void safety_timer_reset()
Definition: safety_timer.cpp:15
safety_timer_is_expired
bool safety_timer_is_expired()
Definition: safety_timer.cpp:11
safety_timer_set_interval
void safety_timer_set_interval(millis_t ms)
Definition: safety_timer.cpp:6
millis
uint32_t millis(void)
Definition: wiring_time.c:29
safety_timer_reset
void safety_timer_reset()
Definition: safety_timer.cpp:15
safety_timer_is_expired
bool safety_timer_is_expired()
Definition: safety_timer.cpp:11
ELAPSED
#define ELAPSED(NOW, SOON)
Definition: millis_t.h:29
safety_timer_interval
static millis_t safety_timer_interval
Definition: safety_timer.cpp:3
last_reset
static millis_t last_reset
Definition: safety_timer.cpp:4
safety_timer.h
safety_timer_set_interval
void safety_timer_set_interval(millis_t ms)
Definition: safety_timer.cpp:6
millis_t
uint32_t millis_t
Definition: millis_t.h:26