Read GCODE from a laptop and parse it into usable structures.

Dependencies:   MODSERIAL mbed

Dependents:   DrawBot

Fork of gCodeParser by Alejandro Jimenez

Revision:
0:fa0891ea897b
Child:
1:7818b02dde4b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gparser.h	Mon Apr 14 05:03:29 2014 +0000
@@ -0,0 +1,26 @@
+#ifndef PARSER_H
+#define PARSER_H
+
+#include "MODSERIAL.h"
+
+#define CMD_BUFFER_SIZE 200
+#define CMD_LIST_SIZE 512
+
+// struct to hold a Gcode command
+typedef struct {
+    int G;
+    float X;
+    float Y;
+    float Z;
+    float F;
+    float I;
+    float J;
+}G_cmd;
+
+
+void parseGcode();
+void parserInit();
+G_cmd* fillInCmdList();
+void cmd_Received(MODSERIAL_IRQ_INFO *q);
+
+#endif