Prusa3d Marlin fork
Functions
eeprom.cpp File Reference

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...
 
static void eeprom_byte_notify (uint8_t *dst, uint8_t previous_value, uint8_t value, bool write)
 
static void eeprom_word_notify (uint16_t *dst, uint16_t previous_value, uint16_t value, bool write)
 
static void eeprom_dword_notify (uint32_t *dst, uint32_t previous_value, uint32_t value, bool write)
 
static void eeprom_float_notify (float *dst, float previous_value, float value, bool write)
 
static void eeprom_block_notify (void *dst, const uint8_t *previous_values, const uint8_t *values, size_t size, bool write)
 
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.
 

Detailed Description

Date
Jun 20, 2019
Author
Marek Běl

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