Repetier-Firmware
0.91
|
00001 /* 00002 This file is part of Repetier-Firmware. 00003 00004 Repetier-Firmware is free software: you can redistribute it and/or modify 00005 it under the terms of the GNU General Public License as published by 00006 the Free Software Foundation, either version 3 of the License, or 00007 (at your option) any later version. 00008 00009 Repetier-Firmware is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 GNU General Public License for more details. 00013 00014 You should have received a copy of the GNU General Public License 00015 along with Repetier-Firmware. If not, see <http://www.gnu.org/licenses/>. 00016 00017 This firmware is a nearly complete rewrite of the sprinter firmware 00018 by kliment (https://github.com/kliment/Sprinter) 00019 which based on Tonokip RepRap firmware rewrite based off of Hydra-mmm firmware. 00020 00021 Functions in this file are used to communicate using ascii or repetier protocol. 00022 */ 00023 00024 #ifndef COMMANDS_H_INCLUDED 00025 #define COMMANDS_H_INCLUDED 00026 00027 class Commands 00028 { 00029 public: 00030 static void commandLoop(); 00031 static void checkForPeriodicalActions(); 00032 static void executeGCode(GCode *com); 00033 static void waitUntilEndOfAllMoves(); 00034 static void printCurrentPosition(); 00035 static void printTemperatures(bool showRaw = false); 00036 static void setFanSpeed(int speed,bool wait); 00037 static void changeFeedrateMultiply(int factorInPercent); 00038 static void changeFlowateMultiply(int factorInPercent); 00039 static void reportPrinterUsage(); 00040 static void emergencyStop(); 00041 static void checkFreeMemory(); 00042 static void writeLowestFreeRAM(); 00043 private: 00044 static int lowestRAMValue; 00045 static int lowestRAMValueSend; 00046 }; 00047 00048 #endif // COMMANDS_H_INCLUDED