Prusa MINI Firmware overview
|
Go to the source code of this file.
◆ MARLIN_VAR_MOTION
#define MARLIN_VAR_MOTION 0x00 |
◆ MARLIN_VAR_GQUEUE
#define MARLIN_VAR_GQUEUE 0x01 |
◆ MARLIN_VAR_PQUEUE
#define MARLIN_VAR_PQUEUE 0x02 |
◆ MARLIN_VAR_IPOS_X
#define MARLIN_VAR_IPOS_X 0x03 |
◆ MARLIN_VAR_IPOS_Y
#define MARLIN_VAR_IPOS_Y 0x04 |
◆ MARLIN_VAR_IPOS_Z
#define MARLIN_VAR_IPOS_Z 0x05 |
◆ MARLIN_VAR_IPOS_E
#define MARLIN_VAR_IPOS_E 0x06 |
◆ MARLIN_VAR_POS_X
#define MARLIN_VAR_POS_X 0x07 |
◆ MARLIN_VAR_POS_Y
#define MARLIN_VAR_POS_Y 0x08 |
◆ MARLIN_VAR_POS_Z
#define MARLIN_VAR_POS_Z 0x09 |
◆ MARLIN_VAR_POS_E
#define MARLIN_VAR_POS_E 0x0a |
◆ MARLIN_VAR_TEMP_NOZ
#define MARLIN_VAR_TEMP_NOZ 0x0b |
◆ MARLIN_VAR_TEMP_BED
#define MARLIN_VAR_TEMP_BED 0x0c |
◆ MARLIN_VAR_TTEM_NOZ
#define MARLIN_VAR_TTEM_NOZ 0x0d |
◆ MARLIN_VAR_TTEM_BED
#define MARLIN_VAR_TTEM_BED 0x0e |
◆ MARLIN_VAR_Z_OFFSET
#define MARLIN_VAR_Z_OFFSET 0x0f |
◆ MARLIN_VAR_FANSPEED
#define MARLIN_VAR_FANSPEED 0x10 |
◆ MARLIN_VAR_PRNSPEED
#define MARLIN_VAR_PRNSPEED 0x11 |
◆ MARLIN_VAR_FLOWFACT
#define MARLIN_VAR_FLOWFACT 0x12 |
◆ MARLIN_VAR_WAITHEAT
#define MARLIN_VAR_WAITHEAT 0x13 |
◆ MARLIN_VAR_WAITUSER
#define MARLIN_VAR_WAITUSER 0x14 |
◆ MARLIN_VAR_SD_PRINT
#define MARLIN_VAR_SD_PRINT 0x15 |
◆ MARLIN_VAR_SD_PDONE
#define MARLIN_VAR_SD_PDONE 0x16 |
◆ MARLIN_VAR_DURATION
#define MARLIN_VAR_DURATION 0x17 |
◆ MARLIN_VAR_MAX
◆ MARLIN_VAR_MSK
#define MARLIN_VAR_MSK |
( |
|
v_id | ) |
((uint64_t)1 << (v_id)) |
◆ MARLIN_VAR_MSK_IPOS_XYZE
#define MARLIN_VAR_MSK_IPOS_XYZE |
◆ MARLIN_VAR_MSK_POS_XYZE
#define MARLIN_VAR_MSK_POS_XYZE |
◆ MARLIN_VAR_MSK_TEMP_CURR
#define MARLIN_VAR_MSK_TEMP_CURR |
◆ MARLIN_VAR_MSK_TEMP_TARG
#define MARLIN_VAR_MSK_TEMP_TARG |
◆ MARLIN_VAR_MSK_TEMP_ALL
#define MARLIN_VAR_MSK_TEMP_ALL |
◆ MARLIN_VAR_MSK_DEF
#define MARLIN_VAR_MSK_DEF |
◆ MARLIN_VAR_MSK_ALL
#define MARLIN_VAR_MSK_ALL |
◆ MARLIN_USR8_VAR_FLG
#define MARLIN_USR8_VAR_FLG 0x80 |
◆ MARLIN_USR8_MSK_ID
#define MARLIN_USR8_MSK_ID 0x7f |
◆ MARLINE_VAR_NAME_MAX
#define MARLINE_VAR_NAME_MAX 16 |
◆ MARLIN_VAR_INDEX_X
#define MARLIN_VAR_INDEX_X 0 |
◆ MARLIN_VAR_INDEX_Y
#define MARLIN_VAR_INDEX_Y 1 |
◆ MARLIN_VAR_INDEX_Z
#define MARLIN_VAR_INDEX_Z 2 |
◆ MARLIN_VAR_INDEX_E
#define MARLIN_VAR_INDEX_E 3 |
◆ MARLIN_VAR_MOTION_MSK_X
◆ MARLIN_VAR_MOTION_MSK_Y
◆ MARLIN_VAR_MOTION_MSK_Z
◆ MARLIN_VAR_MOTION_MSK_E
◆ marlin_vars_t
◆ marlin_changes_t
◆ marlin_vars_get_name()
◆ marlin_vars_get_id_by_name()
int marlin_vars_get_id_by_name |
( |
const char * |
var_name | ) |
|
◆ marlin_vars_get_var()
◆ marlin_vars_set_var()
◆ marlin_vars_value_to_str()
187 sprintf(str,
"%u", (
unsigned int)(vars->
motion));
190 sprintf(str,
"%u", (
unsigned int)(vars->
gqueue));
193 sprintf(str,
"%u", (
unsigned int)(vars->
pqueue));
211 sprintf(str,
"%.1f", (
double)(vars->
temp_bed));
217 sprintf(str,
"%.1f", (
double)(vars->
target_bed));
220 sprintf(str,
"%.4f", (
double)(vars->
z_offset));
223 sprintf(str,
"%u", (
unsigned int)(vars->
fan_speed));
226 sprintf(str,
"%u", (
unsigned int)(vars->
print_speed));
229 sprintf(str,
"%u", (
unsigned int)(vars->
flow_factor));
232 sprintf(str,
"%u", (
unsigned int)(vars->
wait_heat));
235 sprintf(str,
"%u", (
unsigned int)(vars->
wait_user));
238 sprintf(str,
"%u", (
unsigned int)(vars->
sd_printing));
◆ marlin_vars_str_to_value()
256 ret = sscanf(str,
"%hhu", &(vars->
motion));
259 ret = sscanf(str,
"%hhu", &(vars->
gqueue));
262 ret = sscanf(str,
"%hhu", &(vars->
pqueue));
280 ret = sscanf(str,
"%f", &(vars->
temp_bed));
289 ret = sscanf(str,
"%f", &(vars->
z_offset));
292 ret = sscanf(str,
"%hhu", &(vars->
fan_speed));
295 ret = sscanf(str,
"%hu", (
unsigned short *)&(vars->
print_speed));
298 ret = sscanf(str,
"%hu", (
unsigned short *)&(vars->
flow_factor));
301 ret = sscanf(str,
"%hhu", &(vars->
wait_heat));
304 ret = sscanf(str,
"%hhu", &(vars->
wait_user));
#define MARLIN_VAR_IPOS_E
Definition: marlin_vars.h:14
variant8_t variant8_ui8(uint8_t ui8)
Definition: variant8.c:18
#define MARLIN_VAR_TEMP_BED
Definition: marlin_vars.h:20
uint16_t ui16
Definition: variant8.h:34
#define MARLIN_VAR_FLOWFACT
Definition: marlin_vars.h:26
#define MARLIN_VAR_POS_X
Definition: marlin_vars.h:15
#define MARLIN_VAR_MOTION
Definition: marlin_vars.h:8
float z_offset
Definition: marlin_vars.h:87
#define MARLIN_VAR_IPOS_X
Definition: marlin_vars.h:11
#define MARLIN_VAR_SD_PDONE
Definition: marlin_vars.h:30
uint8_t ui8
Definition: variant8.h:36
#define MARLIN_VAR_FANSPEED
Definition: marlin_vars.h:24
uint8_t i
Definition: screen_test_graph.c:72
uint8_t pqueue
Definition: marlin_vars.h:80
#define MARLIN_VAR_TTEM_BED
Definition: marlin_vars.h:22
variant8_t variant8_ui16(uint16_t ui16)
Definition: variant8.c:30
#define MARLIN_VAR_WAITUSER
Definition: marlin_vars.h:28
float temp_nozzle
Definition: marlin_vars.h:83
#define MARLIN_VAR_IPOS_Y
Definition: marlin_vars.h:12
float flt
Definition: variant8.h:31
#define MARLIN_VAR_TEMP_NOZ
Definition: marlin_vars.h:19
#define MARLIN_VAR_MSK_IPOS_XYZE
Definition: marlin_vars.h:37
#define MARLIN_VAR_PQUEUE
Definition: marlin_vars.h:10
#define MARLIN_VAR_GQUEUE
Definition: marlin_vars.h:9
const char * __var_name[]
Definition: marlin_vars.c:8
uint8_t wait_heat
Definition: marlin_vars.h:91
float target_nozzle
Definition: marlin_vars.h:85
#define MARLIN_VAR_WAITHEAT
Definition: marlin_vars.h:27
#define MARLIN_VAR_POS_Z
Definition: marlin_vars.h:17
#define MARLIN_VAR_POS_E
Definition: marlin_vars.h:18
uint8_t wait_user
Definition: marlin_vars.h:92
float temp_bed
Definition: marlin_vars.h:84
variant8_t variant8_empty(void)
Definition: variant8.c:10
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
#define MARLIN_VAR_MSK_TEMP_ALL
Definition: marlin_vars.h:49
#define MARLIN_VAR_PRNSPEED
Definition: marlin_vars.h:25
#define MARLIN_VAR_SD_PRINT
Definition: marlin_vars.h:29
uint16_t print_speed
Definition: marlin_vars.h:89
#define MARLIN_VAR_DURATION
Definition: marlin_vars.h:31
variant8_t variant8_ui32(uint32_t ui32)
Definition: variant8.c:42
uint32_t print_duration
Definition: marlin_vars.h:95
uint8_t sd_percent_done
Definition: marlin_vars.h:94
#define MARLIN_VAR_MSK_POS_XYZE
Definition: marlin_vars.h:40
uint16_t flow_factor
Definition: marlin_vars.h:90
uint8_t gqueue
Definition: marlin_vars.h:79
variant8_t variant8_i32(int32_t i32)
Definition: variant8.c:36
#define MARLIN_VAR_IPOS_Z
Definition: marlin_vars.h:13
#define MARLIN_VAR_POS_Y
Definition: marlin_vars.h:16
float pos[4]
Definition: marlin_vars.h:82
#define MARLIN_VAR_TTEM_NOZ
Definition: marlin_vars.h:21
uint32_t ui32
Definition: variant8.h:32
variant8_t variant8_flt(float flt)
Definition: variant8.c:48
uint8_t sd_printing
Definition: marlin_vars.h:93
float target_bed
Definition: marlin_vars.h:86
int32_t ipos[4]
Definition: marlin_vars.h:81
#define MARLIN_VAR_MAX
Definition: marlin_vars.h:32
#define MARLIN_VAR_Z_OFFSET
Definition: marlin_vars.h:23
uint8_t motion
Definition: marlin_vars.h:78
uint8_t fan_speed
Definition: marlin_vars.h:88
int32_t i32
Definition: variant8.h:33