Prusa MINI Firmware overview
marlin_errors.h File Reference
#include <inttypes.h>

Go to the source code of this file.

Macros

#define MARLIN_ERR_TMCDriverError   0x00
 
#define MARLIN_ERR_ProbingFailed   0x01
 
#define MARLIN_ERR_MAX   MARLIN_ERR_ProbingFailed
 
#define MARLIN_ERR_MSK(e_id)   ((uint64_t)1 << (e_id))
 
#define MARLIN_ERR_MSK_ALL
 

Functions

const char * marlin_errors_get_name (uint8_t err_id)
 

Macro Definition Documentation

◆ MARLIN_ERR_TMCDriverError

#define MARLIN_ERR_TMCDriverError   0x00

◆ MARLIN_ERR_ProbingFailed

#define MARLIN_ERR_ProbingFailed   0x01

◆ MARLIN_ERR_MAX

#define MARLIN_ERR_MAX   MARLIN_ERR_ProbingFailed

◆ MARLIN_ERR_MSK

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

◆ MARLIN_ERR_MSK_ALL

#define MARLIN_ERR_MSK_ALL

Function Documentation

◆ marlin_errors_get_name()

const char* marlin_errors_get_name ( uint8_t  err_id)
13  {
14  if (err_id <= MARLIN_ERR_MAX)
15  return __err_name[err_id];
16  return "";
17 }
MARLIN_ERR_MSK
#define MARLIN_ERR_MSK(e_id)
Definition: marlin_errors.h:13
__err_name
const char * __err_name[]
Definition: marlin_errors.c:7
MARLIN_ERR_ProbingFailed
#define MARLIN_ERR_ProbingFailed
Definition: marlin_errors.h:9
MARLIN_ERR_MAX
#define MARLIN_ERR_MAX
Definition: marlin_errors.h:10
MARLIN_ERR_TMCDriverError
#define MARLIN_ERR_TMCDriverError
Definition: marlin_errors.h:8