gnea\grbl-Mega  1.0f
Source Code Documentation ( Internal Workings )
protocol.h
Go to the documentation of this file.
1 /*
2  protocol.h - controls Grbl execution protocol and procedures
3  Part of Grbl
4 
5  Copyright (c) 2011-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 protocol_h
23 #define protocol_h
24 #ifndef LINE_BUFFER_SIZE
26  #define LINE_BUFFER_SIZE 256
27 #endif
28 // them as they complete. It is also responsible for finishing the initialization procedures.
30 void protocol_main_loop();
38 
39 #endif
void protocol_exec_rt_system()
Executes run-time commands, when required. This function primarily operates as Grbl's state...
Definition: protocol.c:223
void protocol_buffer_synchronize()
Block until all buffered steps are executed.
Definition: protocol.c:177
void protocol_execute_realtime()
Checks and executes a realtime command at various stop points in main program.
Definition: protocol.c:213
void protocol_main_loop()
Starts Grbl main loop. It handles all incoming characters from the serial port and executes...
Definition: protocol.c:37
void protocol_auto_cycle_start()
Executes the auto cycle feature, if enabled.
Definition: protocol.c:194