mirror of
https://github.com/technik-gegg/SMuFF-1.1.git
synced 2026-02-20 01:41:28 +01:00
79 lines
3.4 KiB
C
79 lines
3.4 KiB
C
/**
|
|
* SMuFF Firmware
|
|
* Copyright (C) 2019 Technik Gegg
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
#ifndef _GCODES_H
|
|
#define _GCODES_H
|
|
|
|
#include <stdlib.h>
|
|
#include <Arduino.h>
|
|
|
|
typedef struct {
|
|
int code;
|
|
bool (*func)(const char* msg, String buf, int serial);
|
|
} GCodeFunctions;
|
|
|
|
extern unsigned int currentLine;
|
|
|
|
extern bool dummy(const char* msg, String buf, int serial);
|
|
extern bool M17(const char* msg, String buf, int serial);
|
|
extern bool M18(const char* msg, String buf, int serial);
|
|
extern bool M20(const char* msg, String buf, int serial);
|
|
extern bool M42(const char* msg, String buf, int serial);
|
|
extern bool M98(const char* msg, String buf, int serial);
|
|
extern bool M106(const char* msg, String buf, int serial);
|
|
extern bool M107(const char* msg, String buf, int serial);
|
|
extern bool M110(const char* msg, String buf, int serial);
|
|
extern bool M111(const char* msg, String buf, int serial);
|
|
extern bool M114(const char* msg, String buf, int serial);
|
|
extern bool M115(const char* msg, String buf, int serial);
|
|
extern bool M117(const char* msg, String buf, int serial);
|
|
extern bool M119(const char* msg, String buf, int serial);
|
|
extern bool M122(const char* msg, String buf, int serial);
|
|
extern bool M150(const char* msg, String buf, int serial);
|
|
extern bool M201(const char* msg, String buf, int serial);
|
|
extern bool M203(const char* msg, String buf, int serial);
|
|
extern bool M205(const char* msg, String buf, int serial);
|
|
extern bool M206(const char* msg, String buf, int serial);
|
|
extern bool M250(const char* msg, String buf, int serial);
|
|
extern bool M280(const char* msg, String buf, int serial);
|
|
extern bool M300(const char* msg, String buf, int serial);
|
|
extern bool M350(const char* msg, String buf, int serial);
|
|
extern bool M412(const char* msg, String buf, int serial);
|
|
extern bool M500(const char* msg, String buf, int serial);
|
|
extern bool M503(const char* msg, String buf, int serial);
|
|
extern bool M569(const char* msg, String buf, int serial);
|
|
extern bool M575(const char* msg, String buf, int serial);
|
|
extern bool M700(const char* msg, String buf, int serial);
|
|
extern bool M701(const char* msg, String buf, int serial);
|
|
extern bool M906(const char* msg, String buf, int serial);
|
|
extern bool M914(const char* msg, String buf, int serial);
|
|
extern bool M999(const char* msg, String buf, int serial);
|
|
extern bool M2000(const char* msg, String buf, int serial);
|
|
extern bool M2001(const char* msg, String buf, int serial);
|
|
|
|
extern bool G0(const char* msg, String buf, int serial);
|
|
extern bool G1(const char* msg, String buf, int serial);
|
|
extern bool G4(const char* msg, String buf, int serial);
|
|
extern bool G12(const char* msg, String buf, int serial);
|
|
extern bool G28(const char* msg, String buf, int serial);
|
|
extern bool G90(const char* msg, String buf, int serial);
|
|
extern bool G91(const char* msg, String buf, int serial);
|
|
|
|
#endif
|