#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. | |
| 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.
| 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) |
1.5.9