#include <math.h>
#include <string.h>
#include <stdlib.h>
#include "hal.h"
#include "motion_control.h"
#include "protocol.h"
#include "state_machine.h"
#include "ngc_params.h"
Data Structures | |
union | modal_groups_t |
struct | word_bit_t |
union | ijk_words_t |
Macros | |
#define | MAX_LINE_NUMBER 10000000 |
#define | MAX_TOOL_NUMBER 4294967294 |
#define | MACH3_SCALING |
#define | I_VALUE X_AXIS |
#define | J_VALUE Y_AXIS |
#define | K_VALUE Z_AXIS |
#define | FAIL(status) return(status); |
Enumerations | |
enum | axis_command_t { AxisCommand_None = 0 , AxisCommand_NonModal , AxisCommand_MotionMode , AxisCommand_ToolLengthOffset , AxisCommand_Scaling } |
Functions | |
parser_state_t * | gc_get_state (void) |
float * | gc_get_scaling (void) |
axes_signals_t | gc_get_g51_state (void) |
float | gc_get_offset (uint_fast8_t idx, bool real_time) |
void | gc_set_tool_offset (tool_offset_mode_t mode, uint_fast8_t idx, int32_t offset) |
plane_t * | gc_get_plane_data (plane_t *plane, plane_select_t select) |
void | gc_init (void) |
bool | gc_laser_ppi_enable (uint_fast16_t ppi, uint_fast16_t pulse_length) |
spindle_t * | gc_spindle_get (spindle_num_t spindle) |
void | gc_spindle_off (void) |
void | gc_coolant (coolant_state_t state) |
void | gc_output_message (char *message) |
parameter_words_t | gc_get_g65_arguments (void) |
bool | gc_modal_state_restore (gc_modal_t *copy) |
char * | gc_normalize_block (char *block, status_code_t *status, char **message) |
status_code_t | gc_execute_block (char *block) |
Variables | |
parser_state_t | gc_state |
#define FAIL | ( | status | ) | return(status); |
#define I_VALUE X_AXIS |
#define J_VALUE Y_AXIS |
#define K_VALUE Z_AXIS |
#define MACH3_SCALING |
#define MAX_LINE_NUMBER 10000000 |
#define MAX_TOOL_NUMBER 4294967294 |
enum axis_command_t |
void gc_coolant | ( | coolant_state_t | state | ) |
status_code_t gc_execute_block | ( | char * | block | ) |
axes_signals_t gc_get_g51_state | ( | void | ) |
parameter_words_t gc_get_g65_arguments | ( | void | ) |
float gc_get_offset | ( | uint_fast8_t | idx, |
bool | real_time | ||
) |
plane_t* gc_get_plane_data | ( | plane_t * | plane, |
plane_select_t | select | ||
) |
float* gc_get_scaling | ( | void | ) |
parser_state_t* gc_get_state | ( | void | ) |
void gc_init | ( | void | ) |
bool gc_laser_ppi_enable | ( | uint_fast16_t | ppi, |
uint_fast16_t | pulse_length | ||
) |
bool gc_modal_state_restore | ( | gc_modal_t * | copy | ) |
char* gc_normalize_block | ( | char * | block, |
status_code_t * | status, | ||
char ** | message | ||
) |
void gc_output_message | ( | char * | message | ) |
void gc_set_tool_offset | ( | tool_offset_mode_t | mode, |
uint_fast8_t | idx, | ||
int32_t | offset | ||
) |
spindle_t* gc_spindle_get | ( | spindle_num_t | spindle | ) |
void gc_spindle_off | ( | void | ) |
parser_state_t gc_state |