Fraise  2.1
FRAmework for Interfacing Software and Electronics
eeparams.h
Go to the documentation of this file.
1 /*********************************************************************
2  *
3  * Fraise eeprom stored parameters library
4  *
5  *********************************************************************
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software Foundation,
18  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 
20  *********************************************************************
21  * Copyright (c) Antoine Rousseau nov 2011 - 2014
22  ********************************************************************/
23 
24 #ifndef EEPARAMS_H
25 #define EEPARAMS_H
26 
28 #include "core.h"
67 void EEreadMain();
69 void EEwriteMain();
76 void EEdeclareMain();
77 
78 // EEdeclareMain() is definded with a sequence of :
81 void EEdeclareChar(unsigned char *data);
84 void EEdeclareInt(unsigned int *data);
87 void EEdeclareLong(unsigned long *data);
89 
91 
92 
93 
94 #endif //EEPARAMS_H
EEwriteMain
void EEwriteMain()
Save all the parameters values to EEPROM.
EEdeclareMain
void EEdeclareMain()
User may define this function, with a list of char/int/long declarations.
EEdeclareChar
void EEdeclareChar(unsigned char *data)
Declare a 8 bit integer in EEdeclareMain().
EEreadMain
void EEreadMain()
Load all the parameters values from EEPROM ; you may call it at setup()
EEdeclareInt
void EEdeclareInt(unsigned int *data)
Declare a 16 bit integer in EEdeclareMain().
EEdeclareLong
void EEdeclareLong(unsigned long *data)
Declare a 32 bit integer in EEdeclareMain().