gnea\grbl-Mega  1.0f
Source Code Documentation ( Internal Workings )
coolant_control.h
Go to the documentation of this file.
1 /*
2  coolant_control.h - spindle control methods
3  Part of Grbl
4 
5  Copyright (c) 2012-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 coolant_control_h
22 #define coolant_control_h
23 
24 #define COOLANT_NO_SYNC false
25 #define COOLANT_FORCE_SYNC true
26 
27 #define COOLANT_STATE_DISABLE 0
28 #define COOLANT_STATE_FLOOD bit(0)
29 #define COOLANT_STATE_MIST bit(1)
30 
32 void coolant_init();
34 uint8_t coolant_get_state();
36 void coolant_stop();
38 void coolant_set_state(uint8_t mode);
40 void coolant_sync(uint8_t mode);
41 
42 #endif
void coolant_set_state(uint8_t mode)
Sets the coolant pins according to state specified.
void coolant_init()
Initializes coolant control pins.
uint8_t coolant_get_state()
Returns current coolant output state. Overrides may alter it from programmed state.
void coolant_stop()
Immediately disables coolant pins.
void coolant_sync(uint8_t mode)
G-code parser entry-point for setting coolant states. Checks for and executes additional conditions...