Do you mean Marlin?
get_available_commands() is the main get gcodes routine, either from serial or spooled from SD
get_sdcard_commands() fills the command buffer with commands
gcode_get_destination() decodes the position from the gcode command (ie Set XYZE destination and feedrate from the current GCode command)
Im somewhat worried though... this is the easy stuff from the firmware...
I would skim read threw Marlin_main.cpp, get an idea of how it works. Start at void setup() and void loop() the standard arduino main program.
Edited 2 time(s). Last edit at 10/05/2017 05:57AM by Dust.