/** * @file * @author 3d-gussner */ /** \ingroup eeprom_table */ //! _This is a EEPROM table of currently implemented in Prusa firmware (dynamically generated from doxygen)._ #ifndef EEPROM_H #define EEPROM_H #include #define MAX_SHEETS 8 #define MAX_SHEET_NAME_LENGTH 7 typedef struct { char name[MAX_SHEET_NAME_LENGTH]; //!< Can be null terminated, doesn't need to be null terminated int16_t z_offset; //!< Z_BABYSTEP_MIN .. Z_BABYSTEP_MAX = Z_BABYSTEP_MIN*2/1000 [mm] .. Z_BABYSTEP_MAX*2/1000 [mm] uint8_t bed_temp; //!< 0 .. 254 [°C] NOTE: currently only written-to and never used uint8_t pinda_temp; //!< 0 .. 254 [°C] NOTE: currently only written-to and never used } Sheet; typedef struct { Sheet s[MAX_SHEETS]; uint8_t active_sheet; } Sheets; // sizeof(Sheets). Do not change it unless EEPROM_Sheets_base is last item in EEPROM. // Otherwise it would move following items. #define EEPROM_SHEETS_SIZEOF 89 #ifdef __cplusplus static_assert(sizeof(Sheets) == EEPROM_SHEETS_SIZEOF, "Sizeof(Sheets) is not EEPROM_SHEETS_SIZEOF."); #endif /** @defgroup eeprom_table EEPROM Table * --------------------------------------------------------------------------------- EEPROM 8-bit Empty value = 0xFFh 255 EEPROM 16-bit Empty value = 0xFFFFh 65535 _Italic = unused or default_ __Bold = Status__ In Default/FactoryReset column the - __L__ Language - __S__ Statistics - __P__ Shipping prep - __M__ Service/Maintenance prep - __S/P__ Statistics and Shipping prep will overwrite existing values to 0 or default. A FactoryReset All Data will overwrite the whole EEPROM with ffh and some values will be initialized automatically, others need a reset / reboot. --------------------------------------------------------------------------------- How can you use the debug codes? - Serial terminal like Putty. - Octoprint does support D-codes - _Pronterface_ does __not__ support D-codes ### !!! D-codes are case sensitive so please don't use upper case A,C or X in the address you want to read !!! #### Useful tools/links: To convert hex to ascii https://www.rapidtables.com/convert/number/hex-to-ascii.html To convert hex to dec https://www.rapidtables.com/convert/number/hex-to-decimal.html Version: 1.0.2 --------------------------------------------------------------------------------- |Address begin|Bit/Type | Name | Valid values | Default/FactoryReset | Description |Gcode/Function| Debug code | :-- | :-- | :-- | :--: | :--: | :-- | :--: | :--: | 0x0FFF 4095 | uchar | EEPROM_SILENT | 00h 0 | ffh 255 | TMC Stealth mode: __off__ / miniRambo Power mode | LCD menu | D3 Ax0fff C1 | ^ | ^ | ^ | 01h 1 | ^ | TMC Stealth mode: __on__ / miniRambo Silent mode | ^ | ^ | ^ | ^ | ^ | 02h 2 | ^ | miniRambo Auto mode | ^ | ^ | 0x0FFE 4094 | uchar | EEPROM_LANG | 00h 0 | ffh 255 __L__ | English / LANG_ID_PRI | LCD menu | D3 Ax0ffe C1 | ^ | ^ | ^ | 01h 1 | ^ | Other language LANG_ID_SEC | ^ | ^ | 0x0FFC 4092 | uint16 | EEPROM_BABYSTEP_X | ??? | ff ffh 65535 | Babystep for X axis _unsued_ | ??? | D3 Ax0ffc C2 | 0x0FFA 4090 | uint16 | EEPROM_BABYSTEP_Y | ??? | ff ffh 65535 | Babystep for Y axis _unsued_ | ^ | D3 Ax0ffa C2 | 0x0FF8 4088 | uint16 | EEPROM_BABYSTEP_Z | ??? | ff ffh 65535 | Babystep for Z axis _lagacy_ | ^ | D3 Ax0ff8 C2 | ^ | ^ | ^ | ^ | ^ | multiple values stored now in EEPROM_Sheets_base | ^ | ^ | 0x0FF7 4087 | uint8 | EEPROM_CALIBRATION_STATUS_V1 | ffh 255 | ffh 255 | Calibration status (