grblHAL core
20250320
probe.h
Go to the documentation of this file.
1
/*
2
probe.h - An embedded CNC Controller with rs274/ngc (g-code) support
3
4
Part of grblHAL
5
6
Copyright (c) 2020-2025 Terje Io
7
8
grblHAL 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
grblHAL 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 grblHAL. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef _PROBE_H_
23
#define _PROBE_H_
24
25
// Values that define the probing state machine.
26
27
typedef
enum
{
28
Probing_Off
= 0,
29
Probing_Active
30
}
probing_state_t
;
31
32
typedef
union
{
33
uint8_t
value
;
34
struct
{
35
uint8_t
triggered
:1,
36
connected
:1,
37
inverted
:1,
38
is_probing
:1,
39
irq_enabled
:1,
40
tls_triggered
:1,
41
unassigned
:2;
42
};
43
}
probe_state_t
;
44
45
#endif
probing_state_t
probing_state_t
Definition:
probe.h:27
Probing_Off
@ Probing_Off
0
Definition:
probe.h:28
Probing_Active
@ Probing_Active
1
Definition:
probe.h:29
probe_state_t
Definition:
probe.h:32
probe_state_t::unassigned
uint8_t unassigned
Definition:
probe.h:41
probe_state_t::tls_triggered
uint8_t tls_triggered
Set to true when toolsetter is triggered.
Definition:
probe.h:40
probe_state_t::triggered
uint8_t triggered
Set to true when probe or toolsetter is triggered.
Definition:
probe.h:35
probe_state_t::value
uint8_t value
Definition:
probe.h:33
probe_state_t::irq_enabled
uint8_t irq_enabled
For driver use.
Definition:
probe.h:39
probe_state_t::connected
uint8_t connected
Set to true when probe is connected. Always set to true if the driver does not have a probe connected...
Definition:
probe.h:36
probe_state_t::inverted
uint8_t inverted
For driver use.
Definition:
probe.h:37
probe_state_t::is_probing
uint8_t is_probing
For driver use.
Definition:
probe.h:38
STM
grblHAL Driver STM32F756
grbl
probe.h
Generated by
1.9.1