Skip to content. | Skip to navigation

Personal tools

parse.h

parse.h

parse.h

/////////////////////////////////////////////////////////////////////////////
// PARSE.H
//
//  Last updated: 7/14/1999
//
//  Part of the source code for the Vane End Actuator Control System
//
// This file contains the functions that parse serial and keyboard input,
// and execute the appropriate functions to carry out the commands.
/////////////////////////////////////////////////////////////////////////////

// Buffers for keyboard and serial input
char kbline[80] = "",serline[80] = "";

int HelpFlag = 0;  // Set to 1 while the help screen is being displayed
int HostComErr = 0; // Count host (TCS) communication errors
int HostTimer;			// Time since last successful communication with host

// This is the maximum allowable manual move via the IA and IR commands
int MaxManualMove;

/////////////////////////////////////////////////////////////////////////////
// ParseKB: Parse a keyboard command line
int ParseKB(char *line,int SerialCommand,char *errmsg);
// This routine parses a keyboard command-line, and executes the
// appropriate code to accomplish the command.
// Returns a 0 if OK, >= 1 on a parse error
// SerialCommand = 1 if this is a free-form serial line we're parsing,
// SerialCommand = 0 if this is a local keyboard command.
// errmsg is filled with an error message to send to upstream computers.

/////////////////////////////////////////////////////////////////////////////
// ParseSer: Parse a serial command line
void ParseSer(char line[80]);
// This routine parses a command line from the serial port, and executes the
// appropriate code to accomplish the command.

/////////////////////////////////////////////////////////////////////////////
// Parse: Checks for keyboard and serial input
void Parse();

Generated by GNU Enscript 1.6.5.2.
Document Actions