Prusa3d Marlin fork
Classes | Enumerations | Functions | Variables
eeprom.h File Reference

Go to the source code of this file.

Classes

struct  Sheet
 
struct  Sheets
 
struct  SheetName
 

Enumerations

enum  { EEPROM_MMU_CUTTER_ENABLED_enabled = 1 , EEPROM_MMU_CUTTER_ENABLED_always = 2 }
 

Functions

void eeprom_init ()
 
void eeprom_adjust_bed_reset ()
 
void eeprom_default_sheet_name (uint8_t index, SheetName &sheetName)
 Get default sheet name for index. More...
 
int8_t eeprom_next_initialized_sheet (int8_t sheet)
 Get next initialized sheet. More...
 
void eeprom_switch_to_next_sheet ()
 
bool eeprom_is_sheet_initialized (uint8_t sheet_num)
 
bool eeprom_is_initialized_block (const void *__p, size_t __n)
 
void eeprom_update_block_P (const void *__src, void *__dst, size_t __n)
 
void eeprom_toggle (uint8_t *__p)
 
void eeprom_increment_byte (uint8_t *__p)
 
void eeprom_increment_word (uint16_t *__p)
 
void eeprom_increment_dword (uint32_t *__p)
 
void eeprom_add_byte (uint8_t *__p, uint8_t add)
 
void eeprom_add_word (uint16_t *__p, uint16_t add)
 
void eeprom_add_dword (uint32_t *__p, uint32_t add)
 
uint8_t eeprom_init_default_byte (uint8_t *__p, uint8_t def)
 
uint16_t eeprom_init_default_word (uint16_t *__p, uint16_t def)
 
uint32_t eeprom_init_default_dword (uint32_t *__p, uint32_t def)
 
void eeprom_init_default_float (float *__p, float def)
 
void eeprom_init_default_block (void *__p, size_t __n, const void *def)
 
void eeprom_init_default_block_P (void *__p, size_t __n, const void *def)
 
void eeprom_write_byte_notify (uint8_t *dst, uint8_t value)
 Updates eeprom byte and notifies the changed eeprom address (just the address!) onto the serial line.
 
void eeprom_update_byte_notify (uint8_t *dst, uint8_t value)
 
void eeprom_write_word_notify (uint16_t *dst, uint16_t value)
 
void eeprom_update_word_notify (uint16_t *dst, uint16_t value)
 
void eeprom_write_dword_notify (uint32_t *dst, uint32_t value)
 
void eeprom_update_dword_notify (uint32_t *dst, uint32_t value)
 
void eeprom_write_float_notify (float *dst, float value)
 
void eeprom_update_float_notify (float *dst, float value)
 
void eeprom_write_block_notify (const void *__src, void *__dst, size_t __size)
 
void eeprom_update_block_notify (const void *__src, void *__dst, size_t __size)
 
void eeprom_write_byte_notify (uint8_t *dst, uint8_t value, bool active=true)
 
void eeprom_update_byte_notify (uint8_t *dst, uint8_t value, bool active=true)
 
void eeprom_write_word_notify (uint16_t *dst, uint16_t value, bool active=true)
 
void eeprom_update_word_notify (uint16_t *dst, uint16_t value, bool active=true)
 
void eeprom_write_dword_notify (uint32_t *dst, uint32_t value, bool active=true)
 
void eeprom_update_dword_notify (uint32_t *dst, uint32_t value, bool active=true)
 
void eeprom_write_float_notify (float *dst, float value, bool active=true)
 
void eeprom_update_float_notify (float *dst, float value, bool active=true)
 
void eeprom_write_block_notify (const void *__src, void *__dst, size_t __size, bool active=true)
 
void eeprom_update_block_notify (const void *__src, void *__dst, size_t __size, bool active=true)
 

Variables

static Sheets *const EEPROM_Sheets_base = (Sheets*)(EEPROM_SHEETS_BASE)
 
static M500_conf *const EEPROM_M500_base = reinterpret_cast<M500_conf*>(20)
 

Detailed Description

Author
3d-gussner

Function Documentation

◆ eeprom_default_sheet_name()

void eeprom_default_sheet_name ( uint8_t  index,
SheetName sheetName 
)
index sheetName
0 Smooth1
1 Smooth2
2 Textur1
3 Textur2
4 Satin
5 NylonPA
6 Custom1
7 Custom2
Parameters
[in]index
[out]sheetName

◆ eeprom_next_initialized_sheet()

int8_t eeprom_next_initialized_sheet ( int8_t  sheet)

If current sheet is the only sheet initialized, current sheet is returned.

Parameters
sheetCurrent sheet
Returns
next initialized sheet
Return values
-1no sheet is initialized