|
static void | reset () |
|
static FORCE_INLINE bool | valid_signless (const char *const p) |
|
static FORCE_INLINE bool | valid_float (const char *const p) |
|
static bool | seen (const char c) |
|
static bool | seen_any () |
|
static bool | seen (const char *const str) |
|
static bool | seen_axis () |
|
static void | parse (char *p) |
|
static FORCE_INLINE bool | has_value () |
|
static bool | seenval (const char c) |
|
static float | value_float () |
|
static int32_t | value_long () |
|
static uint32_t | value_ulong () |
|
static millis_t | value_millis () |
|
static millis_t | value_millis_from_seconds () |
|
static int16_t | value_int () |
|
static uint16_t | value_ushort () |
|
static uint8_t | value_byte () |
|
static bool | value_bool () |
|
static float | mm_to_linear_unit (const float mm) |
|
static float | mm_to_volumetric_unit (const float mm) |
|
static float | linear_value_to_mm (const float v) |
|
static float | axis_value_to_mm (const AxisEnum, const float v) |
|
static float | per_axis_value (const AxisEnum, const float v) |
|
static float | value_linear_units () |
|
static float | value_axis_units (const AxisEnum axis) |
|
static float | value_per_axis_units (const AxisEnum axis) |
|
static float | value_celsius () |
|
static float | value_celsius_diff () |
|
static feedRate_t | value_feedrate () |
|
static float | floatval (const char c, const float dval=0.0) |
|
static bool | boolval (const char c, const bool dval=false) |
|
static uint8_t | byteval (const char c, const uint8_t dval=0) |
|
static int16_t | intval (const char c, const int16_t dval=0) |
|
static uint16_t | ushortval (const char c, const uint16_t dval=0) |
|
static int32_t | longval (const char c, const int32_t dval=0) |
|
static uint32_t | ulongval (const char c, const uint32_t dval=0) |
|
static float | linearval (const char c, const float dval=0) |
|
static float | celsiusval (const char c, const float dval=0) |
|
Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. parser.h - Parser for a GCode line, providing a parameter interface. Codes like M149 control the way the GCode parser behaves, so settings for these codes are located in this class. GCode parser
- Parse a single gcode line for its letter, code, subcode, and parameters
- FASTER_GCODE_PARSER:
- Flags existing params (1 bit each)
- Stores value offsets (1 byte each)
- Provide accessors for parameters:
- Parameter exists
- Parameter has value
- Parameter value in different units and types
bool GCodeParser::volumetric_enabled |
|
static |
Marlin 3D Printer Firmware Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
Based on Sprinter and grbl. Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. parser.cpp - Parser for a GCode line, providing a parameter interface.