grblHAL core  20250320
ngc_expr.h
Go to the documentation of this file.
1 /* ngc_expr.h */
2 
3 #ifndef _NGC_EXPR_H_
4 #define _NGC_EXPR_H_
5 
6 status_code_t ngc_read_name (char *line, uint_fast8_t *pos, char *buffer);
7 status_code_t ngc_read_real_value (char *line, uint_fast8_t *pos, float *value);
8 status_code_t ngc_read_integer_value(char *line, uint_fast8_t *pos, int32_t *value);
9 status_code_t ngc_read_integer_unsigned (char *line, uint_fast8_t *pos, uint32_t *value);
10 status_code_t ngc_read_parameter (char *line, uint_fast8_t *pos, float *value, bool check);
11 status_code_t ngc_eval_expression (char *line, uint_fast8_t *pos, float *value);
12 char *ngc_substitute_parameters (char *line);
13 char *ngc_process_comment (char *comment);
14 
15 #endif
status_code_t
Definition: errors.h:30
status_code_t ngc_read_name(char *line, uint_fast8_t *pos, char *buffer)
Reads the name of a parameter out of the line starting at the index given by the pos offset.
Definition: ngc_expr.c:592
status_code_t ngc_eval_expression(char *line, uint_fast8_t *pos, float *value)
Evaluate expression and set result if successful.
Definition: ngc_expr.c:884
status_code_t ngc_read_integer_unsigned(char *line, uint_fast8_t *pos, uint32_t *value)
Reads explicit unsigned (positive) integer out of the line, starting at the index given by the pos of...
Definition: ngc_expr.c:842
char * ngc_process_comment(char *comment)
Process gcode comment string. Returns string with substituted parameter references if starts with DEB...
Definition: ngc_expr.c:1075
status_code_t ngc_read_real_value(char *line, uint_fast8_t *pos, float *value)
Reads a real value out of the line, starting at the index given by the pos offset....
Definition: ngc_expr.c:796
status_code_t ngc_read_integer_value(char *line, uint_fast8_t *pos, int32_t *value)
Reads an integer (positive, negative or zero) out of the line, starting at the index given by the pos...
Definition: ngc_expr.c:861
char * ngc_substitute_parameters(char *line)
Substitute references to parameters in a string with their values.
Definition: ngc_expr.c:994
status_code_t ngc_read_parameter(char *line, uint_fast8_t *pos, float *value, bool check)
Reads the value out of a parameter of the line, starting at the index given by the pos offset.
Definition: ngc_expr.c:637