Repetier-Firmware 0.2
Repetier/Eeprom.cpp File Reference
#include "Configuration.h"
#include "Reptier.h"
#include "Eeprom.h"

Functions

byte epr_get_byte (uint pos)
int epr_get_int (uint pos)
long epr_get_long (uint pos)
float epr_get_float (uint pos)
void epr_set_byte (uint pos, byte value)
void epr_set_int (uint pos, int value)
void epr_set_long (uint pos, long value)
void epr_set_float (uint pos, float value)
void epr_out_float (uint pos, PGM_P text)
void epr_out_long (uint pos, PGM_P text)
void epr_out_int (uint pos, PGM_P text)
void epr_out_byte (uint pos, PGM_P text)
void epr_data_to_eeprom ()
 Moves current settings to EEPROM.
void epr_eeprom_to_data ()
 Copy data from EEPROM to variables.
void epr_init_baudrate ()
void epr_init ()
void epr_output_settings ()
 Writes all eeprom settings to serial console.
void epr_update (GCode *com)

Function Documentation

void epr_data_to_eeprom ( )

Moves current settings to EEPROM.

The values the are currently set are used to fill the eeprom.

void epr_eeprom_to_data ( )

Copy data from EEPROM to variables.

byte epr_get_byte ( uint  pos) [inline]
float epr_get_float ( uint  pos) [inline]
int epr_get_int ( uint  pos) [inline]
long epr_get_long ( uint  pos) [inline]
void epr_init ( )
void epr_init_baudrate ( )
void epr_out_byte ( uint  pos,
PGM_P  text 
)
void epr_out_float ( uint  pos,
PGM_P  text 
)
void epr_out_int ( uint  pos,
PGM_P  text 
)
void epr_out_long ( uint  pos,
PGM_P  text 
)
void epr_output_settings ( )

Writes all eeprom settings to serial console.

For each value stored, this function generates one line with syntax

EPR: pos type value description

With

  • pos = Position in EEPROM, the data starts.
  • type = Value type: 0 = byte, 1 = int, 2 = long, 3 = float
  • value = The value currently stored
  • description = Definition of the value
void epr_set_byte ( uint  pos,
byte  value 
) [inline]
void epr_set_float ( uint  pos,
float  value 
) [inline]
void epr_set_int ( uint  pos,
int  value 
) [inline]
void epr_set_long ( uint  pos,
long  value 
) [inline]
void epr_update ( GCode com)
 All Data Structures Files Functions Variables Typedefs Friends Defines