grblHAL core  20241107
override.h
Go to the documentation of this file.
1 /*
2  override.h - An embedded CNC Controller with rs274/ngc (g-code) support
3 
4  Buffer handlers for real-time override commands
5 
6  Part of grblHAL
7 
8  Copyright (c) 2016-2023 Terje Io
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 _OVERRIDE_H_
25 #define _OVERRIDE_H_
26 
27 #ifndef OVERRIDE_BUFSIZE
28 #define OVERRIDE_BUFSIZE 16 // must be a power of 2
29 #endif
30 
32 void enqueue_feed_override (uint8_t cmd);
33 uint8_t get_feed_override (void);
34 void enqueue_spindle_override (uint8_t cmd);
35 uint8_t get_spindle_override (void);
36 void enqueue_coolant_override (uint8_t cmd);
37 uint8_t get_coolant_override (void);
38 
39 #endif
void flush_override_buffers()
Definition: override.c:107
uint8_t get_coolant_override(void)
Definition: override.c:94
void enqueue_spindle_override(uint8_t cmd)
Definition: override.c:59
uint8_t get_spindle_override(void)
Definition: override.c:70
void enqueue_coolant_override(uint8_t cmd)
Definition: override.c:83
uint8_t get_feed_override(void)
Definition: override.c:46
void enqueue_feed_override(uint8_t cmd)
Definition: override.c:35