MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / ushortval

Method ushortval

Marlin/src/gcode/parser.h:428–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 static uint8_t byteval(const char c, const uint8_t dval=0) { return seenval(c) ? value_byte() : dval; }
427 static int16_t intval(const char c, const int16_t dval=0) { return seenval(c) ? value_int() : dval; }
428 static uint16_t ushortval(const char c, const uint16_t dval=0) { return seenval(c) ? value_ushort() : dval; }
429 static int32_t longval(const char c, const int32_t dval=0) { return seenval(c) ? value_long() : dval; }
430 static uint32_t ulongval(const char c, const uint32_t dval=0) { return seenval(c) ? value_ulong() : dval; }
431 static float linearval(const char c, const float dval=0) { return seenval(c) ? value_linear_units() : dval; }

Callers 8

DMethod · 0.80
M34Method · 0.80
M300Method · 0.80
M92Method · 0.80
G27Method · 0.80
M708Method · 0.80
G12Method · 0.80
M908Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected