Netcruzer Library API
V2.03
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Macros
Groups
Pages
nz_xEeprom.h
Go to the documentation of this file.
1
61
#ifndef __XEEPROM_H
62
#define __XEEPROM_H
63
64
#include "HardwareProfile.h"
65
66
#if !defined(EEPROM_CS_TRIS)
67
#error "EEPROM_CS_TRIS is not defined!"
68
#endif
69
70
#if !defined(XEEPROM_SIZE)
71
#error "XEEPROM_SIZE not defined!"
72
#endif
73
#if !defined(XEEPROM_PAGE_SIZE)
74
#error "XEEPROM_PAGE_SIZE not defined!"
75
#endif
76
77
79
//Alternative function names, use by Microchip Stack
80
typedef
BOOL XEE_RESULT;
81
#define XEE_SUCCESS FALSE
82
#define XEEInit xeeInit
83
#define XEEBeginWrite xeeBeginWrite
84
#define XEEWrite xeeWrite
85
#define XEEWriteArray xeeWriteArray
86
#define XEEEndWrite xeeEndWrite
87
#define XEEBeginRead xeeBeginRead
88
#define XEERead xeeRead
89
#define XEEReadArray xeeReadArray
90
#define XEEEndRead xeeEndRead
91
#define XEEIsBusy xeeIsBusy
92
93
97
void
xeeInit
(
void
);
98
99
107
BOOL
xeeBeginWrite
(DWORD address);
108
109
121
BOOL
xeeWrite
(BYTE val);
122
123
138
void
xeeWriteArray
(BYTE *val, WORD wLen);
139
140
149
BOOL
xeeEndWrite
(
void
);
150
151
159
BOOL
xeeBeginRead
(DWORD address);
160
161
169
BYTE
xeeRead
(
void
);
170
171
186
BOOL
xeeReadArray
(DWORD address, BYTE *buffer, WORD length);
187
188
194
#define xeeEndRead()
195
196
202
BOOL
xeeIsBusy
(
void
);
203
204
205
#endif
netcruzer
lib
nz_xEeprom.h
Generated on Tue Dec 9 2014 15:08:19 for Netcruzer Library API by
1.8.4