blob: 33fe0957681ddf5c7cc66d04424cf72d6044b434 [file] [log] [blame]
Luigi Santivetti69972f92019-11-12 22:55:40 +00001/*
2 limits.h - code pertaining to limit-switches and performing the homing cycle
3 Part of Grbl
4
5 Copyright (c) 2012-2016 Sungeun K. Jeon for Gnea Research LLC
6 Copyright (c) 2009-2011 Simen Svale Skogsrud
7
8 Grbl 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 Grbl 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 Grbl. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#ifndef limits_h
23#define limits_h
24
25
26// Initialize the limits module
27void limits_init();
28
29// Disables hard limits.
30void limits_disable();
31
32// Returns limit state as a bit-wise uint8 variable.
33uint8_t limits_get_state();
34
35// Perform one portion of the homing cycle based on the input settings.
36void limits_go_home(uint8_t cycle_mask);
37
38// Check for soft limit violations
39void limits_soft_check(float *target);
40
41#endif