![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Read GCODE from a laptop and parse it into usable structures.
Fork of gCodeParser by
Diff: gparser.h
- Revision:
- 0:fa0891ea897b
- Child:
- 1:7818b02dde4b
diff -r 000000000000 -r fa0891ea897b gparser.h --- /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