gnea\grbl-Mega  1.0f
Source Code Documentation ( Internal Workings )
eeprom.h
Go to the documentation of this file.
1 /*
2  eeprom.h - EEPROM methods
3  Part of Grbl
4 
5  Copyright (c) 2009-2011 Simen Svale Skogsrud
6 
7  Grbl is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  Grbl is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with Grbl. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
21 #ifndef eeprom_h
22 #define eeprom_h
23 
24 unsigned char eeprom_get_char(unsigned int addr);
25 void eeprom_put_char(unsigned int addr, unsigned char new_value);
26 void memcpy_to_eeprom_with_checksum(unsigned int destination, char *source, unsigned int size);
27 int memcpy_from_eeprom_with_checksum(char *destination, unsigned int source, unsigned int size);
28 
29 #endif
void memcpy_to_eeprom_with_checksum(unsigned int destination, char *source, unsigned int size)
Extensions added as part of Grbl.
Definition: eeprom.c:129
int memcpy_from_eeprom_with_checksum(char *destination, unsigned int source, unsigned int size)
Definition: eeprom.c:139
unsigned char eeprom_get_char(unsigned int addr)
Read byte from EEPROM.
Definition: eeprom.c:49
void eeprom_put_char(unsigned int addr, unsigned char new_value)
Write byte to EEPROM.
Definition: eeprom.c:74