#ifndef EMCGLB_H
#define EMCGLB_H
#include "config.h"
#include "math.h"
#include "emcmotcfg.h"
#include "debugflags.h"
#ifdef __cplusplus
extern "C" {
#endif
extern char emc_inifile[LINELEN];
extern char emc_nmlfile[LINELEN];
#define DEFAULT_RS274NGC_STARTUP_CODE ""
extern char rs274ngc_startup_code[LINELEN];
extern int emc_debug;
extern double emc_task_cycle_time;
extern double emc_io_cycle_time;
extern int emc_task_interp_max_len;
extern char tool_table_file[LINELEN];
extern struct EmcPose tool_change_position;
extern unsigned char have_tool_change_position;
extern int taskplanopen;
extern int emcGetArgs(int argc, char *argv[]);
typedef struct JointConfig_t {
int Inited;
unsigned char Type; double Units;
double MaxVel;
double MaxAccel;
double MinLimit;
double MaxLimit;
} JointConfig_t;
typedef struct AxisConfig_t {
int Inited;
unsigned char Type;
double MaxVel;
double MaxAccel;
double Home;
double MinLimit;
double MaxLimit;
} AxisConfig_t;
typedef struct TrajConfig_t {
int Inited; int Joints;
int Spindles;
double MaxAccel;
double MaxVel;
int DeprecatedAxes;
int AxisMask;
double LinearUnits;
double AngularUnits;
int MotionId;
} TrajConfig_t;
#ifdef __cplusplus
}
#endif
#endif