C:/usr/src/avr/plotter/hpgl.c File Reference

#include <stdio.h>
#include <inttypes.h>
#include <math.h>
#include <avr/pgmspace.h>
#include "shvars.h"
#include "hpgl.h"
#include "scale.h"

Go to the source code of this file.

Functions

void hpgl_init ()
 Initialize the scanner.
int8_t hpgl_char (char c, STEPPER_COORD *x, STEPPER_COORD *y, uint8_t *lb)

Variables

int8_t pstate
int8_t nstate
uint8_t etxchar
 End of text, default ^C.


Function Documentation

int8_t hpgl_char ( char  c,
STEPPER_COORD x,
STEPPER_COORD y,
uint8_t *  lb 
)

Handle next character from the input. When action is determined, return one of the _hpgl_command values. Pass target coordinates in x and y.

Parameters:
c input char
x output: destination x (returns -1 if no data)
y output: destination y (returns -1 if no data)
lb output: next label character (see CMD_LB)
Returns:
_hpgl_command

Definition at line 21 of file hpgl.c.

void hpgl_init (  ) 

Initialize the scanner.

Definition at line 16 of file hpgl.c.


Variable Documentation

uint8_t etxchar

End of text, default ^C.

Definition at line 14 of file hpgl.c.

int8_t nstate

Definition at line 12 of file hpgl.c.

int8_t pstate

Definition at line 12 of file hpgl.c.


Generated on Sat Jul 4 05:27:39 2009 for motori by  doxygen 1.5.9