Prusa MINI Firmware overview
|
#include <inttypes.h>
Go to the source code of this file.
|
enum | host_prompt_type_t {
HOST_PROMPT_None = 0,
HOST_PROMPT_Paused,
HOST_PROMPT_FilamentRunout,
HOST_PROMPT_LoadFilament,
HOST_PROMPT_END
} |
|
enum | host_prompt_button_t {
HOST_PROMPT_BTN_None = 0,
HOST_PROMPT_BTN_Continue,
HOST_PROMPT_BTN_PurgeMore,
HOST_PROMPT_BTN_DisableRunout,
HOST_PROMPT_BTN_END
} |
|
enum | host_prompt_reason_t {
HOST_PROMPT_RSN_NOT_DEFINED,
HOST_PROMPT_RSN_FILAMENT_RUNOUT,
HOST_PROMPT_RSN_USER_CONTINUE,
HOST_PROMPT_RSN_FILAMENT_RUNOUT_REHEAT,
HOST_PROMPT_RSN_PAUSE_RESUME,
HOST_PROMPT_RSN_INFO
} |
|
◆ HOST_PROMPT_MAX_BUTTONS
#define HOST_PROMPT_MAX_BUTTONS 4 |
◆ MARLIN_HOSTPROMPT_LoadFilament
#define MARLIN_HOSTPROMPT_LoadFilament 0x01 |
◆ MARLIN_HOSTPROMPT_Paused
#define MARLIN_HOSTPROMPT_Paused 0x02 |
◆ MARLIN_HOSTPROMPT_BTN_Continue
#define MARLIN_HOSTPROMPT_BTN_Continue 0x01 |
◆ MARLIN_HOSTPROMPT_BTN_PurgeMore
#define MARLIN_HOSTPROMPT_BTN_PurgeMore 0x02 |
◆ marlin_host_prompt_t
◆ host_prompt_type_t
Enumerator |
---|
HOST_PROMPT_None | |
HOST_PROMPT_Paused | |
HOST_PROMPT_FilamentRunout | |
HOST_PROMPT_LoadFilament | |
HOST_PROMPT_END | |
◆ host_prompt_button_t
Enumerator |
---|
HOST_PROMPT_BTN_None | |
HOST_PROMPT_BTN_Continue | |
HOST_PROMPT_BTN_PurgeMore | |
HOST_PROMPT_BTN_DisableRunout | |
HOST_PROMPT_BTN_END | |
◆ host_prompt_reason_t
Enumerator |
---|
HOST_PROMPT_RSN_NOT_DEFINED | |
HOST_PROMPT_RSN_FILAMENT_RUNOUT | |
HOST_PROMPT_RSN_USER_CONTINUE | |
HOST_PROMPT_RSN_FILAMENT_RUNOUT_REHEAT | |
HOST_PROMPT_RSN_PAUSE_RESUME | |
HOST_PROMPT_RSN_INFO | |
◆ marlin_host_prompt_get_text()
◆ marlin_host_prompt_by_text()
◆ marlin_host_prompt_button_get_text()
◆ marlin_host_prompt_button_by_text()
◆ marlin_host_prompt_encode()
53 return ((uint32_t)prompt->
type & 0xf) | (((uint32_t)prompt->
button_count & 0xf) << 4) | (((uint32_t)prompt->
button[0] & 0xf) << 8) | (((uint32_t)prompt->
button[1] & 0xf) << 12) | (((uint32_t)prompt->
button[2] & 0xf) << 16) | (((uint32_t)prompt->
button[3] & 0xf) << 20);
◆ marlin_host_prompt_decode()
57 prompt->
type = ui32 & 0xf;
59 prompt->
button[0] = (ui32 >> 8) & 0xf;
60 prompt->
button[1] = (ui32 >> 12) & 0xf;
61 prompt->
button[2] = (ui32 >> 16) & 0xf;
62 prompt->
button[3] = (ui32 >> 20) & 0xf;
Definition: marlin_host.h:19
host_prompt_button_t button[HOST_PROMPT_MAX_BUTTONS]
Definition: marlin_host.h:49
host_prompt_type_t
Definition: marlin_host.h:17
uint8_t type
Definition: UsbCore.h:184
Definition: marlin_host.h:20
const char * __prompt_text[]
Definition: marlin_host.c:7
Definition: marlin_host.h:38
host_prompt_type_t type
Definition: marlin_host.h:47
Definition: marlin_host.h:28
const char * __prompt_button_text[]
Definition: marlin_host.c:15
Definition: marlin_host.h:18
Definition: marlin_host.h:36
Definition: marlin_host.h:26
uint8_t button_count
Definition: marlin_host.h:48
Definition: marlin_host.h:22
Definition: marlin_host.h:21
Definition: marlin_host.h:35
Definition: marlin_host.h:30
host_prompt_button_t
Definition: marlin_host.h:25
const uint8_t[]
Definition: 404_html.c:3
Definition: marlin_host.h:39
Definition: marlin_host.h:29
host_prompt_reason_t
Definition: marlin_host.h:34
Definition: marlin_host.h:37
Definition: marlin_host.h:27
Definition: marlin_host.h:40