gnea\grbl-Mega  1.0f
Source Code Documentation ( Internal Workings )
probe.h
Go to the documentation of this file.
1 /*
2  probe.h - code pertaining to probing methods
3  Part of Grbl
4 
5  Copyright (c) 2014-2016 Sungeun K. Jeon for Gnea Research LLC
6 
7  Grbl is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Grbl is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Grbl. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef probe_h
22 #define probe_h
23 #define PROBE_OFF 0
25 #define PROBE_ACTIVE 1
26 void probe_init();
28 // appropriately set the pin logic according to setting for normal-high/normal-low operation
30 // and the probing cycle modes for toward-workpiece/away-from-workpiece.
31 void probe_configure_invert_mask(uint8_t is_probe_away);
33 uint8_t probe_get_state();
35 // stepper ISR per ISR tick.
36 void probe_state_monitor();
37 
38 #endif
void probe_state_monitor()
Monitors probe pin state and records the system position when detected. Called by the...
Definition: probe.c:55
uint8_t probe_get_state()
Returns probe pin state. Triggered = true. Called by gcode parser and probe state monitor...
Definition: probe.c:49
void probe_configure_invert_mask(uint8_t is_probe_away)
Called by probe_init() and the mc_probe() routines. Sets up the probe pin invert mask to...
Definition: probe.c:41