gnea\grbl-Mega  1.0f
Source Code Documentation ( Internal Workings )
limits.h
Go to the documentation of this file.
1 /*
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 
26 void limits_init();
28 void limits_disable();
30 uint8_t limits_get_state();
32 void limits_go_home(uint8_t cycle_mask);
34 void limits_soft_check(float *target);
35 
36 #endif
void limits_init()
Initialize the limits module.
Definition: limits.c:32
void limits_soft_check(float *target)
Check for soft limit violations.
Definition: limits.c:342
uint8_t limits_get_state()
Returns limit state as a bit-wise uint8 variable.
Definition: limits.c:66
void limits_go_home(uint8_t cycle_mask)
Perform one portion of the homing cycle based on the input settings.
Definition: limits.c:145
void limits_disable()
Disables hard limits.
Definition: limits.c:57