gcode_parse.c File Reference

Parse received G-Codes. More...

#include "gcode_parse.h"
#include <string.h>
#include "serial.h"
#include "sermsg.h"
#include "dda_queue.h"
#include "debug.h"
#include "sersendf.h"
#include "gcode_process.h"

Defines

#define DECFLOAT_EXP_MAX   3
#define DECFLOAT_MANT_MM_MAX   4289967
#define DECFLOAT_MANT_IN_MAX   164093

Functions

decfloat read_digit __attribute__ ((__section__(".bss")))
 crude floating point data storage
void gcode_init (void)
void gcode_parse_char (uint8_t c)
 Character Received - add it to our command.

Variables

uint8_t last_field = 0
 current or previous gcode word for working out what to do with data just received
const uint32_t powers []
 list of powers of ten, used for dividing down decimal numbers for sending, and also for our crude floating point algorithm

Detailed Description

Parse received G-Codes.


Function Documentation

decfloat read_digit __attribute__ ( (__section__(".bss"))   ) 

crude floating point data storage

this is where we store all the data for the current command before we work out what to do with it

void gcode_parse_char ( uint8_t  c  ) 

Character Received - add it to our command.

accept the next character and process it

Parameters:
c the next character to process

Referenced by main().

 All Data Structures Files Functions Variables Defines
Generated on Mon Jul 30 16:33:58 2012 for Teacup by  doxygen 1.6.3