AN2302 Freescale Semiconductor / Motorola, AN2302 Datasheet - Page 12

no-image

AN2302

Manufacturer Part Number
AN2302
Description
EEPROM Emulation for the MC9S12C32
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2302/D
EE_Emulation.c
ReadEeprom
12
Parameters:
Prototype:
Example:
Return:
The file EE_Emulation contains the functions required for Eeprom emulation of
non-volatile data variables which are executed from Flash. All functions in this
file are located in the DEFAULT code segment. The user should not modify this
file.
The ReadEeprom function is used to obtain the current value of a non-volatile
data variable. This is the only way to obtain the current value, accessing the
data variable directly will NOT generally result in the current value being read.
InitEeprom must have been called once before this function is called.
void ReadEeprom(void *srcAddr, void *destAddr, UINT16 size)
srcAddr
destAddr pointer to a RAM location to copy the read value to.
size
void
ReadEeprom(&EepromVar1, ReadBuffer, sizeof(EepromVar1));
Freescale Semiconductor, Inc.
For More Information On This Product,
EEPROM Emulation for the MC9S12C32
pointer to the non-volatile data variable to be read.
size in bytes of the non-volatile data variable to be read.
Go to: www.freescale.com
MOTOROLA

Related parts for AN2302