Prusa MINI Firmware overview
marlin_events.h File Reference
#include "variant8.h"

Go to the source code of this file.

Classes

union  _marlin_events_t
 
struct  _marlin_mesh_t
 

Macros

#define MARLIN_EVT_Startup   0x00
 
#define MARLIN_EVT_Idle   0x01
 
#define MARLIN_EVT_PrinterKilled   0x02
 
#define MARLIN_EVT_MediaInserted   0x03
 
#define MARLIN_EVT_MediaError   0x04
 
#define MARLIN_EVT_MediaRemoved   0x05
 
#define MARLIN_EVT_PlayTone   0x06
 
#define MARLIN_EVT_PrintTimerStarted   0x07
 
#define MARLIN_EVT_PrintTimerPaused   0x08
 
#define MARLIN_EVT_PrintTimerStopped   0x09
 
#define MARLIN_EVT_FilamentRunout   0x0a
 
#define MARLIN_EVT_UserConfirmRequired   0x0b
 
#define MARLIN_EVT_StatusChanged   0x0c
 
#define MARLIN_EVT_FactoryReset   0x0d
 
#define MARLIN_EVT_LoadSettings   0x0e
 
#define MARLIN_EVT_StoreSettings   0x0f
 
#define MARLIN_EVT_MeshUpdate   0x10
 
#define MARLIN_EVT_HostPrompt   0x11
 
#define MARLIN_EVT_StartProcessing   0x12
 
#define MARLIN_EVT_StopProcessing   0x13
 
#define MARLIN_EVT_Busy   0x14
 
#define MARLIN_EVT_Ready   0x15
 
#define MARLIN_EVT_Error   0x16
 
#define MARLIN_EVT_CommandBegin   0x17
 
#define MARLIN_EVT_CommandEnd   0x18
 
#define MARLIN_EVT_SafetyTimerExpired   0x19
 
#define MARLIN_EVT_Message   0x1a
 
#define MARLIN_EVT_Reheat   0x1b
 
#define MARLIN_EVT_Acknowledge   0x1c
 
#define MARLIN_EVT_MAX   MARLIN_EVT_Acknowledge
 
#define MARLIN_EVT_MSK(e_id)   ((uint64_t)1 << (e_id))
 
#define MARLIN_EVT_MSK_DEF
 
#define MARLIN_EVT_MSK_ALL
 
#define MARLIN_CMD_NONE   0
 
#define MARLIN_CMD_G   (((uint32_t)'G') << 16)
 
#define MARLIN_CMD_M   (((uint32_t)'M') << 16)
 
#define MARLIN_CMD_G28   (MARLIN_CMD_G + 28)
 
#define MARLIN_CMD_G29   (MARLIN_CMD_G + 29)
 
#define MARLIN_CMD_M109   (MARLIN_CMD_M + 109)
 
#define MARLIN_CMD_M190   (MARLIN_CMD_M + 190)
 
#define MARLIN_CMD_M600   (MARLIN_CMD_M + 600)
 
#define MARLIN_CMD_M701   (MARLIN_CMD_M + 701)
 
#define MARLIN_CMD_M702   (MARLIN_CMD_M + 702)
 
#define MARLIN_MAX_MESH_POINTS   (4 * 4)
 

Typedefs

typedef union _marlin_events_t marlin_events_t
 
typedef struct _marlin_mesh_t marlin_mesh_t
 

Functions

const char * marlin_events_get_name (uint8_t evt_id)
 

Macro Definition Documentation

◆ MARLIN_EVT_Startup

#define MARLIN_EVT_Startup   0x00

◆ MARLIN_EVT_Idle

#define MARLIN_EVT_Idle   0x01

◆ MARLIN_EVT_PrinterKilled

#define MARLIN_EVT_PrinterKilled   0x02

◆ MARLIN_EVT_MediaInserted

#define MARLIN_EVT_MediaInserted   0x03

◆ MARLIN_EVT_MediaError

#define MARLIN_EVT_MediaError   0x04

◆ MARLIN_EVT_MediaRemoved

#define MARLIN_EVT_MediaRemoved   0x05

◆ MARLIN_EVT_PlayTone

#define MARLIN_EVT_PlayTone   0x06

◆ MARLIN_EVT_PrintTimerStarted

#define MARLIN_EVT_PrintTimerStarted   0x07

◆ MARLIN_EVT_PrintTimerPaused

#define MARLIN_EVT_PrintTimerPaused   0x08

◆ MARLIN_EVT_PrintTimerStopped

#define MARLIN_EVT_PrintTimerStopped   0x09

◆ MARLIN_EVT_FilamentRunout

#define MARLIN_EVT_FilamentRunout   0x0a

◆ MARLIN_EVT_UserConfirmRequired

#define MARLIN_EVT_UserConfirmRequired   0x0b

◆ MARLIN_EVT_StatusChanged

#define MARLIN_EVT_StatusChanged   0x0c

◆ MARLIN_EVT_FactoryReset

#define MARLIN_EVT_FactoryReset   0x0d

◆ MARLIN_EVT_LoadSettings

#define MARLIN_EVT_LoadSettings   0x0e

◆ MARLIN_EVT_StoreSettings

#define MARLIN_EVT_StoreSettings   0x0f

◆ MARLIN_EVT_MeshUpdate

#define MARLIN_EVT_MeshUpdate   0x10

◆ MARLIN_EVT_HostPrompt

#define MARLIN_EVT_HostPrompt   0x11

◆ MARLIN_EVT_StartProcessing

#define MARLIN_EVT_StartProcessing   0x12

◆ MARLIN_EVT_StopProcessing

#define MARLIN_EVT_StopProcessing   0x13

◆ MARLIN_EVT_Busy

#define MARLIN_EVT_Busy   0x14

◆ MARLIN_EVT_Ready

#define MARLIN_EVT_Ready   0x15

◆ MARLIN_EVT_Error

#define MARLIN_EVT_Error   0x16

◆ MARLIN_EVT_CommandBegin

#define MARLIN_EVT_CommandBegin   0x17

◆ MARLIN_EVT_CommandEnd

#define MARLIN_EVT_CommandEnd   0x18

◆ MARLIN_EVT_SafetyTimerExpired

#define MARLIN_EVT_SafetyTimerExpired   0x19

◆ MARLIN_EVT_Message

#define MARLIN_EVT_Message   0x1a

◆ MARLIN_EVT_Reheat

#define MARLIN_EVT_Reheat   0x1b

◆ MARLIN_EVT_Acknowledge

#define MARLIN_EVT_Acknowledge   0x1c

◆ MARLIN_EVT_MAX

#define MARLIN_EVT_MAX   MARLIN_EVT_Acknowledge

◆ MARLIN_EVT_MSK

#define MARLIN_EVT_MSK (   e_id)    ((uint64_t)1 << (e_id))

◆ MARLIN_EVT_MSK_DEF

◆ MARLIN_EVT_MSK_ALL

◆ MARLIN_CMD_NONE

#define MARLIN_CMD_NONE   0

◆ MARLIN_CMD_G

#define MARLIN_CMD_G   (((uint32_t)'G') << 16)

◆ MARLIN_CMD_M

#define MARLIN_CMD_M   (((uint32_t)'M') << 16)

◆ MARLIN_CMD_G28

#define MARLIN_CMD_G28   (MARLIN_CMD_G + 28)

◆ MARLIN_CMD_G29

#define MARLIN_CMD_G29   (MARLIN_CMD_G + 29)

◆ MARLIN_CMD_M109

#define MARLIN_CMD_M109   (MARLIN_CMD_M + 109)

◆ MARLIN_CMD_M190

#define MARLIN_CMD_M190   (MARLIN_CMD_M + 190)

◆ MARLIN_CMD_M600

#define MARLIN_CMD_M600   (MARLIN_CMD_M + 600)

◆ MARLIN_CMD_M701

#define MARLIN_CMD_M701   (MARLIN_CMD_M + 701)

◆ MARLIN_CMD_M702

#define MARLIN_CMD_M702   (MARLIN_CMD_M + 702)

◆ MARLIN_MAX_MESH_POINTS

#define MARLIN_MAX_MESH_POINTS   (4 * 4)

Typedef Documentation

◆ marlin_events_t

◆ marlin_mesh_t

typedef struct _marlin_mesh_t marlin_mesh_t

Function Documentation

◆ marlin_events_get_name()

const char* marlin_events_get_name ( uint8_t  evt_id)
40  {
41  if (evt_id <= MARLIN_EVT_MAX)
42  return __evt_name[evt_id];
43  return "";
44 }
Here is the caller graph for this function:
MARLIN_EVT_Startup
#define MARLIN_EVT_Startup
Definition: marlin_events.h:8
MARLIN_EVT_SafetyTimerExpired
#define MARLIN_EVT_SafetyTimerExpired
Definition: marlin_events.h:35
MARLIN_EVT_MediaError
#define MARLIN_EVT_MediaError
Definition: marlin_events.h:12
MARLIN_EVT_LoadSettings
#define MARLIN_EVT_LoadSettings
Definition: marlin_events.h:22
MARLIN_EVT_MediaInserted
#define MARLIN_EVT_MediaInserted
Definition: marlin_events.h:11
MARLIN_EVT_PrintTimerStopped
#define MARLIN_EVT_PrintTimerStopped
Definition: marlin_events.h:17
__evt_name
const char * __evt_name[]
Definition: marlin_events.c:7
MARLIN_EVT_Reheat
#define MARLIN_EVT_Reheat
Definition: marlin_events.h:37
MARLIN_EVT_PrinterKilled
#define MARLIN_EVT_PrinterKilled
Definition: marlin_events.h:10
MARLIN_EVT_StoreSettings
#define MARLIN_EVT_StoreSettings
Definition: marlin_events.h:23
MARLIN_EVT_CommandEnd
#define MARLIN_EVT_CommandEnd
Definition: marlin_events.h:34
MARLIN_EVT_PrintTimerPaused
#define MARLIN_EVT_PrintTimerPaused
Definition: marlin_events.h:16
MARLIN_EVT_StopProcessing
#define MARLIN_EVT_StopProcessing
Definition: marlin_events.h:29
MARLIN_EVT_CommandBegin
#define MARLIN_EVT_CommandBegin
Definition: marlin_events.h:33
MARLIN_EVT_Message
#define MARLIN_EVT_Message
Definition: marlin_events.h:36
MARLIN_EVT_MeshUpdate
#define MARLIN_EVT_MeshUpdate
Definition: marlin_events.h:24
MARLIN_EVT_HostPrompt
#define MARLIN_EVT_HostPrompt
Definition: marlin_events.h:26
MARLIN_EVT_FactoryReset
#define MARLIN_EVT_FactoryReset
Definition: marlin_events.h:21
MARLIN_EVT_StatusChanged
#define MARLIN_EVT_StatusChanged
Definition: marlin_events.h:20
MARLIN_EVT_Ready
#define MARLIN_EVT_Ready
Definition: marlin_events.h:31
MARLIN_EVT_StartProcessing
#define MARLIN_EVT_StartProcessing
Definition: marlin_events.h:28
MARLIN_EVT_Idle
#define MARLIN_EVT_Idle
Definition: marlin_events.h:9
MARLIN_EVT_PlayTone
#define MARLIN_EVT_PlayTone
Definition: marlin_events.h:14
MARLIN_EVT_Error
#define MARLIN_EVT_Error
Definition: marlin_events.h:32
MARLIN_EVT_MediaRemoved
#define MARLIN_EVT_MediaRemoved
Definition: marlin_events.h:13
MARLIN_EVT_MSK
#define MARLIN_EVT_MSK(e_id)
Definition: marlin_events.h:42
MARLIN_EVT_MAX
#define MARLIN_EVT_MAX
Definition: marlin_events.h:39
MARLIN_EVT_Busy
#define MARLIN_EVT_Busy
Definition: marlin_events.h:30
MARLIN_EVT_Acknowledge
#define MARLIN_EVT_Acknowledge
Definition: marlin_events.h:38
MARLIN_EVT_PrintTimerStarted
#define MARLIN_EVT_PrintTimerStarted
Definition: marlin_events.h:15
MARLIN_EVT_FilamentRunout
#define MARLIN_EVT_FilamentRunout
Definition: marlin_events.h:18
MARLIN_EVT_UserConfirmRequired
#define MARLIN_EVT_UserConfirmRequired
Definition: marlin_events.h:19