Parses gcode commands sent over serial communication

Dependencies:   4DGL-uLCD-SE MODSERIAL mbed

gparser.h

Committer:
ajb88
Date:
2014-04-14
Revision:
0:fa0891ea897b

File content as of revision 0:fa0891ea897b:

#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