LTlib LaurTec Library
4.0.1
Open Source C Library for Microchip Microcontrollers based on XC8 Compiler
Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
module_EEPROM.h
Go to the documentation of this file.
1
/*******************************************************************************
2
3
Autore : Mauro Laurenti
4
Versione : 1.1
5
6
Created on Date : 02/10/2010
7
Last update : 24/10/2015
8
9
CopyRight 2006-2015 all rights are reserved
10
11
********************************************************
12
SOFTWARE LICENSE AGREEMENT
13
********************************************************
14
15
The usage of the supplied software imply the acceptance of the following license.
16
17
The software supplied herewith by Mauro Laurenti (the Author) is intended for
18
use solely and exclusively on Microchip PIC Microcontroller (registered mark).
19
The software is owned by the Author, and is protected under applicable
20
copyright laws. All rights are reserved.
21
Any use in violation of the foregoing restrictions may subject the
22
user to criminal sanctions under applicable laws, as well as to civil liability
23
for the breach of the terms and conditions of this license.
24
Commercial use is forbidden without a written acknowledgement with the Author.
25
Personal or educational use is allowed if the application containing the
26
following software doesn't aim to commercial use or monetary earning of any kind.
27
28
THIS SOFTWARE IS PROVIDED IN AN "AS IS" CONDITION. NO WARRANTIES,
29
WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
30
TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
31
PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE AUTHOR SHALL NOT,
32
IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
33
CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
34
35
********************************************************
36
PURPOSES
37
********************************************************
38
39
This library is written to support reading and writing the internal EEPROM
40
that many PIC microcontrollers have.
41
42
*******************************************************************************/
43
44
#ifndef LTLIB_EEPROM_MODULE_H
45
#define LTLIB_EEPROM_MODULE_H
46
47
#ifdef __XC8
48
#include <xc.h>
49
#endif
50
51
//*****************************************
52
// Library Test
53
//*****************************************
54
#include "
LTlib.h
"
55
56
#ifndef EEPROM_LIBRARY_SUPPORTED
57
#error (LTlib) The MCU you have selected is not supported by module_EEPROM library.
58
#endif
59
60
61
75
unsigned
char
EEPROM_write_byte
(
unsigned
char
address,
unsigned
char
data);
76
#define write_internal_EEPROM EEPROM_write_byte
77
#define internal_EEPROM_write EEPROM_write_byte
78
79
80
90
unsigned
char
EEPROM_read_byte
(
unsigned
char
address);
91
#define read_internal_EEPROM EEPROM_read_byte
92
#define internal_EEPROM_read EEPROM_read_byte
93
94
95
#endif
LTlib_v_4.0.1
inc
module_EEPROM.h
Generated on Sat Mar 12 2016 11:01:40 for LTlib LaurTec Library by
1.8.3.1