Prusa MINI Firmware overview
marlin_errors.h
Go to the documentation of this file.
1 // marlin_errors.h
2 #ifndef _MARLIN_ERRORS_H
3 #define _MARLIN_ERRORS_H
4 
5 #include <inttypes.h>
6 
7 // Marlin errors
8 #define MARLIN_ERR_TMCDriverError 0x00 //
9 #define MARLIN_ERR_ProbingFailed 0x01 //
10 #define MARLIN_ERR_MAX MARLIN_ERR_ProbingFailed
11 
12 // error masks
13 #define MARLIN_ERR_MSK(e_id) ((uint64_t)1 << (e_id))
14 #define MARLIN_ERR_MSK_ALL ( \
15  MARLIN_ERR_MSK(MARLIN_ERR_TMCDriverError) | MARLIN_ERR_MSK(MARLIN_ERR_ProbingFailed))
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif //__cplusplus
20 
21 extern const char *marlin_errors_get_name(uint8_t err_id);
22 
23 #ifdef __cplusplus
24 }
25 #endif //__cplusplus
26 
27 #endif //_MARLIN_ERRORS_H
eeprom_write_byte
void eeprom_write_byte(uint8_t *pos, unsigned char value)
Definition: Marlin_eeprom.cpp:20
__err_name
const char * __err_name[]
Definition: marlin_errors.c:7
st25dv64k_user_read_bytes
void st25dv64k_user_read_bytes(uint16_t address, void *pdata, uint8_t size)
Definition: st25dv64k.c:111
IWDG_HandleTypeDef
IWDG Handle Structure definition.
Definition: stm32f4xx_hal_iwdg.h:76
data
uint8_t data[8]
Definition: masstorage.h:49
DBG
#define DBG
Definition: Marlin_eeprom.cpp:12
hiwdg
IWDG_HandleTypeDef hiwdg
Definition: watchdog.h:24
dbg.h
st25dv64k_user_write
void st25dv64k_user_write(uint16_t address, uint8_t data)
Definition: st25dv64k.c:103
HAL_IWDG_Refresh
HAL_StatusTypeDef HAL_IWDG_Refresh(IWDG_HandleTypeDef *hiwdg)
st25dv64k_user_write_bytes
void st25dv64k_user_write_bytes(uint16_t address, void *pdata, uint8_t size)
Definition: st25dv64k.c:119
eeprom_update_block
void eeprom_update_block(const void *__src, void *__dst, size_t __n)
Definition: Marlin_eeprom.cpp:41
eeprom_read_block
void eeprom_read_block(void *__dst, const void *__src, size_t __n)
Definition: Marlin_eeprom.cpp:37
MARLIN_ERR_MAX
#define MARLIN_ERR_MAX
Definition: marlin_errors.h:10
uint8_t
const uint8_t[]
Definition: 404_html.c:3
marlin_errors_get_name
const char * marlin_errors_get_name(uint8_t err_id)
Definition: marlin_errors.c:13
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
marlin_errors.h
eeprom_read_byte
uint8_t eeprom_read_byte(uint8_t *pos)
Definition: Marlin_eeprom.cpp:29
marlin_errors_get_name
const char * marlin_errors_get_name(uint8_t err_id)
Definition: marlin_errors.c:13
st25dv64k_user_read
uint8_t st25dv64k_user_read(uint16_t address)
Definition: st25dv64k.c:93
st25dv64k.h