grblHAL core  20220731
limits.h
Go to the documentation of this file.
1 /*
2  limits.h - code pertaining to limit-switches and performing the homing cycle
3 
4  Part of grblHAL
5 
6  Copyright (c) 2017-2018 Terje Io
7  Copyright (c) 2012-2015 Sungeun K. Jeon
8  Copyright (c) 2009-2011 Simen Svale Skogsrud
9 
10  Grbl is free software: you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation, either version 3 of the License, or
13  (at your option) any later version.
14 
15  Grbl is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with Grbl. If not, see <http://www.gnu.org/licenses/>.
22 */
23 
24 #ifndef _LIMITS_H_
25 #define _LIMITS_H_
26 
27 #include "nuts_bolts.h"
28 
29 // Perform one portion of the homing cycle based on the input settings.
30 bool limits_go_home(axes_signals_t cycle);
31 
32 // Check for soft limit violations
33 void limits_soft_check(float *target);
34 
35 // Check if homing is required.
36 bool limits_homing_required (void);
37 
38 // Set axes to be homed from settings.
39 void limits_set_homing_axes (void);
40 void limits_set_machine_positions (axes_signals_t cycle, bool add_pulloff);
41 
43 
45 
46 #endif
void limits_set_machine_positions(axes_signals_t cycle, bool add_pulloff)
Definition: limits.c:123
bool limits_go_home(axes_signals_t cycle)
Definition: limits.c:483
bool limits_homing_required(void)
Definition: limits.c:555
void limits_set_homing_axes(void)
Definition: limits.c:541
axes_signals_t limit_signals_merge(limit_signals_t signals)
Definition: limits.c:62
void limits_soft_check(float *target)
Definition: limits.c:520
void limit_interrupt_handler(limit_signals_t state)
Definition: limits.c:95
Limit switches struct, consists of four packed axes_signals_t structs.
Definition: nuts_bolts.h:145
Definition: nuts_bolts.h:119