Prusa MINI Firmware overview
menu_vars.h
Go to the documentation of this file.
1 // menu_vars.h - shared arrays to be used in menus
2 #ifndef _MENU_VARS_H
3 #define _MENU_VARS_H
4 #include "stdint.h"
5 
6 //-----------------------------------------------------------------------------
7 //stringize macros
8 #define QUOTE_ME(x) #x
9 #define STR(x) QUOTE_ME(x)
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif //__cplusplus
14 
15 // axis length [mm]
16 extern const int x_axis_len;
17 extern const int y_axis_len;
18 extern const int z_axis_len;
19 
20 // tolerance (common for all axes)
21 extern const int len_tol_abs; // length absolute tolerance (+-5mm)
22 extern const int len_tol_rev; // length tolerance in reversed direction (3mm)
23 
24 extern const float nozzle_to_probe[3];
25 
26 extern const float z_offset_step;
27 extern const float z_offset_min;
28 extern const float z_offset_max;
29 extern const float zoffset_fl_range[3];
30 extern const char *zoffset_fl_format;
31 extern const int32_t nozzle_range[3];
32 extern const int32_t heatbed_range[3];
33 extern const int32_t printfan_range[3];
34 extern const int32_t flowfact_range[3];
35 extern const int32_t feedrate_range[3];
36 extern const int32_t move_x[3];
37 extern const int32_t move_y[3];
38 extern const int32_t move_z[3];
39 extern const int32_t move_e[3];
40 extern const int32_t manual_feedrate[4];
41 extern const int32_t extrude_min_temp;
42 
43 extern const int32_t _noz_park[3];
44 extern const char *const gcode_nozzle_park;
45 
46 #define z_offset_def nozzle_to_probe[2]
47 
48 //If used with - Z safe homing is applyed
49 extern const char X_home_gcode[];
50 extern const char Y_home_gcode[];
51 extern const char Z_home_gcode[];
52 
53 extern const int32_t filament_change_slow_load_length;
54 extern const int32_t filament_change_fast_load_length;
55 extern const int32_t filament_change_full_load_length;
56 extern const int32_t filament_change_slow_purge_length;
57 extern const int32_t filament_change_full_purge_load_length;
58 extern const float filament_unload_mini_length;
59 
60 #ifdef __cplusplus
61 }
62 #endif //__cplusplus
63 
64 #endif //_MENU_VARS_H
filament_change_full_purge_load_length
const int32_t filament_change_full_purge_load_length
Definition: menu_vars.cpp:113
filament_change_fast_load_length
constexpr const int32_t filament_change_fast_load_length
Definition: menu_vars.cpp:108
printfan_range
const int32_t printfan_range[3]
Definition: menu_vars.cpp:33
Y_MIN_POS
#define Y_MIN_POS
Definition: Configuration_A3ides_2209_MINI.h:985
Z_home
constexpr const int Z_home
Definition: menu_vars.cpp:52
x_axis_len
const int x_axis_len
Definition: menu_vars.cpp:14
filament_change_fast_load_length
const int32_t filament_change_fast_load_length
Definition: menu_vars.cpp:108
X_home_gcode
constexpr const char X_home_gcode[]
Definition: menu_vars.cpp:54
manual_feedrate
const int32_t manual_feedrate[4]
Definition: menu_vars.cpp:41
z_offset_step
const float z_offset_step
Definition: menu_vars.cpp:26
LEN_TOL_REV
#define LEN_TOL_REV
Definition: gui_config_mini.h:12
nozzle_to_probe
const float nozzle_to_probe[3]
Definition: menu_vars.cpp:24
Z_LEN
#define Z_LEN
Definition: gui_config_mini.h:8
z_offset_min
const float z_offset_min
Definition: menu_vars.cpp:27
filament_change_slow_load_length
const int32_t filament_change_slow_load_length
Definition: menu_vars.cpp:107
Y_home_gcode
constexpr const char Y_home_gcode[]
Definition: menu_vars.cpp:71
len_tol_rev
const int len_tol_rev
Definition: menu_vars.cpp:20
Z_MIN_POS
#define Z_MIN_POS
Definition: Configuration_A3ides_2209_MINI.h:986
Y_LEN
#define Y_LEN
Definition: gui_config_mini.h:7
park_points
constexpr const int park_points[3]
Definition: menu_vars.cpp:46
filament_unload_mini_length
constexpr const float filament_unload_mini_length
Definition: menu_vars.cpp:110
x_axis_len
const int x_axis_len
Definition: menu_vars.cpp:14
len_tol_rev
const int len_tol_rev
Definition: menu_vars.cpp:20
Z_HOME_DIR
#define Z_HOME_DIR
Definition: Configuration_A3ides_2209_MINI.h:975
move_z
const int32_t move_z[3]
Definition: menu_vars.cpp:39
Configuration_A3ides_2209_MINI_adv.h
move_x
const int32_t move_x[3]
Definition: menu_vars.cpp:37
int_to_cstr.h
EXTRUDE_MINTEMP
#define EXTRUDE_MINTEMP
Definition: Configuration_A3ides_2209_MINI.h:517
BED_MAXTEMP
#define BED_MAXTEMP
Definition: Configuration_A3ides_2209_MINI.h:396
X_LEN
#define X_LEN
Definition: gui_config_mini.h:6
filament_change_full_load_length
constexpr const int32_t filament_change_full_load_length
Definition: menu_vars.cpp:112
Z_home_gcode
const char Z_home_gcode[]
Definition: menu_vars.cpp:88
y_axis_len
const int y_axis_len
Definition: menu_vars.cpp:15
len_tol_abs
const int len_tol_abs
Definition: menu_vars.cpp:19
extrude_min_temp
const int32_t extrude_min_temp
Definition: menu_vars.cpp:43
filament_change_full_load_length
const int32_t filament_change_full_load_length
Definition: menu_vars.cpp:112
gui_config_mini.h
z_axis_len
const int z_axis_len
Definition: menu_vars.cpp:16
Y_home_gcode
const char Y_home_gcode[]
Definition: menu_vars.cpp:71
z_offset_max
const float z_offset_max
Definition: menu_vars.cpp:28
X_home
constexpr const int X_home
Definition: menu_vars.cpp:50
X_MIN_POS
#define X_MIN_POS
Definition: Configuration_A3ides_2209_MINI.h:984
Z_home_gcode
constexpr const char Z_home_gcode[]
Definition: menu_vars.cpp:88
Z_MAX_POS
#define Z_MAX_POS
Definition: Configuration_A3ides_2209_MINI.h:989
filament_change_slow_load_length
constexpr const int32_t filament_change_slow_load_length
Definition: menu_vars.cpp:107
flowfact_range
const int32_t flowfact_range[3]
Definition: menu_vars.cpp:34
len_tol_abs
const int len_tol_abs
Definition: menu_vars.cpp:19
Y_MAX_POS
#define Y_MAX_POS
Definition: Configuration_A3ides_2209_MINI.h:988
move_e
const int32_t move_e[3]
Definition: menu_vars.cpp:40
printfan_range
const int32_t printfan_range[3]
Definition: menu_vars.cpp:33
feedrate_range
const int32_t feedrate_range[3]
Definition: menu_vars.cpp:35
menu_vars.h
filament_unload_mini_length
const float filament_unload_mini_length
Definition: menu_vars.cpp:110
nozzle_to_probe
const float nozzle_to_probe[3]
Definition: menu_vars.cpp:24
z_axis_len
const int z_axis_len
Definition: menu_vars.cpp:16
z_offset_step
const float z_offset_step
Definition: menu_vars.cpp:26
move_y
const int32_t move_y[3]
Definition: menu_vars.cpp:38
HEATER_0_MAXTEMP
#define HEATER_0_MAXTEMP
Definition: Configuration_A3ides_2209_MINI.h:390
nozzle_range
const int32_t nozzle_range[3]
Definition: menu_vars.cpp:31
axis_steps_per_unit
const int axis_steps_per_unit[]
Definition: menu_vars.cpp:22
z_offset_min
const float z_offset_min
Definition: menu_vars.cpp:27
_noz_park
const int32_t _noz_park[3]
z_offset_max
const float z_offset_max
Definition: menu_vars.cpp:28
MANUAL_FEEDRATE
#define MANUAL_FEEDRATE
Definition: Configuration_A3ides_2209_MINI_adv.h:521
manual_feedrate
const int32_t manual_feedrate[4]
Definition: menu_vars.cpp:41
move_e
const int32_t move_e[3]
Definition: menu_vars.cpp:40
X_home_gcode
const char X_home_gcode[]
Definition: menu_vars.cpp:54
extrude_min_temp
const int32_t extrude_min_temp
Definition: menu_vars.cpp:43
move_z
const int32_t move_z[3]
Definition: menu_vars.cpp:39
DEFAULT_AXIS_STEPS_PER_UNIT
#define DEFAULT_AXIS_STEPS_PER_UNIT
Definition: Configuration_A3ides_2209_MINI.h:677
X_MAX_POS
#define X_MAX_POS
Definition: Configuration_A3ides_2209_MINI.h:987
feedrate_range
const int32_t feedrate_range[3]
Definition: menu_vars.cpp:35
NOZZLE_TO_PROBE_OFFSET
#define NOZZLE_TO_PROBE_OFFSET
Definition: Configuration_A3ides_2209_MINI.h:858
zoffset_fl_format
const char * zoffset_fl_format
Definition: menu_vars.cpp:30
zoffset_fl_range
const float zoffset_fl_range[3]
Definition: menu_vars.cpp:29
filament_change_full_purge_load_length
constexpr const int32_t filament_change_full_purge_load_length
Definition: menu_vars.cpp:113
LEN_TOL_ABS
#define LEN_TOL_ABS
Definition: gui_config_mini.h:11
flowfact_range
const int32_t flowfact_range[3]
Definition: menu_vars.cpp:34
Y_HOME_DIR
#define Y_HOME_DIR
Definition: Configuration_A3ides_2209_MINI.h:974
filament_change_slow_purge_length
const int32_t filament_change_slow_purge_length
Definition: menu_vars.cpp:109
config.h
move_x
const int32_t move_x[3]
Definition: menu_vars.cpp:37
y_axis_len
const int y_axis_len
Definition: menu_vars.cpp:15
nth_char
constexpr char nth_char(int32_t i, size_t n)
Definition: int_to_cstr.h:49
nozzle_range
const int32_t nozzle_range[3]
Definition: menu_vars.cpp:31
Z_OFFSET_MIN
#define Z_OFFSET_MIN
Definition: gui_config_mini.h:15
move_y
const int32_t move_y[3]
Definition: menu_vars.cpp:38
X_HOME_DIR
#define X_HOME_DIR
Definition: Configuration_A3ides_2209_MINI.h:973
heatbed_range
const int32_t heatbed_range[3]
Definition: menu_vars.cpp:32
zoffset_fl_format
const char * zoffset_fl_format
Definition: menu_vars.cpp:30
filament_change_slow_purge_length
constexpr const int32_t filament_change_slow_purge_length
Definition: menu_vars.cpp:109
gcode_nozzle_park
const char *const gcode_nozzle_park
Z_OFFSET_MAX
#define Z_OFFSET_MAX
Definition: gui_config_mini.h:16
heatbed_range
const int32_t heatbed_range[3]
Definition: menu_vars.cpp:32
Y_home
constexpr const int Y_home
Definition: menu_vars.cpp:51
zoffset_fl_range
const float zoffset_fl_range[3]
Definition: menu_vars.cpp:29
EXTRUDE_MAXLENGTH
#define EXTRUDE_MAXLENGTH
Definition: Configuration_A3ides_2209_MINI.h:524