Fraise
2.1
FRAmework for Interfacing Software and Electronics
Main Page
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Typedefs
Groups
eeparams.h
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
27
28
// User EEPROM routines (parameters save/load) :
29
#define EEUSER 28 // first free eeprom address
30
31
/*extern int eeaddress;
32
33
#define EE_RD 0
34
#define EE_WR 1
35
extern char eeoperation;
36
37
#define EE_READBYTE_NEXT() (ee_read_byte((char)(eeaddress++)))
38
#define EE_WRITEBYTE_NEXT(data) ee_write_byte((char)(eeaddress++),data)
39
void EEsetaddress(int address); // init eeaddress if address>=EEUSER;
40
41
char EELoadChar();
42
int EELoadInt();
43
long EELoadLong();
44
45
void EESaveChar(unsigned char data);
46
void EESaveInt(int data);
47
void EESaveLong(long data);*/
48
49
//User defined main input entries :
50
void
EEdeclareMain();
51
52
// EEdeclareMain() is definded with a sequence of :
53
void
EEdeclareChar(
unsigned
char
*data);
54
void
EEdeclareInt(
unsigned
int
*data);
55
void
EEdeclareLong(
unsigned
long
*data);
56
57
58
//Functions to store/load all params set :
59
void
EEwriteMain();
60
void
EEreadMain();
61
62
63
#endif //EEPARAMS_H
eeparams
eeparams.h
Generated on Mon Jan 18 2016 00:28:53 for Fraise by
1.8.6