Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

EEPROM Parameter Storage Library (param.c)
[Drivers (for AVR peripherals)]


Detailed Description

 #include "param.h" 
Description
The "Param" library provide two simple functions for loading and storing blocks of parameters out of and into internal EEPROM.


Functions

void paramStore (u08 *parameters, u08 *memaddr, u16 sizebytes)
u08 paramLoad (u08 *parameters, u08 *memaddr, u16 sizebytes)


Function Documentation

u08 paramLoad u08 *  parameters,
u08 *  memaddr,
u16  sizebytes
 

paramLoad loads a block of data/parameters into RAM from EEPROM, and performs an 8-bit checksum to validate it.

Parameters:
parameters pointer to SRAM location into which parameters should be loaded
memaddr pointer to EEPROM memory address parameters are stored
sizebytes size of parameter block in bytes
Returns:
TRUE if load successful and checksum matched, FALSE otherwise

Definition at line 19 of file param.c.

void paramStore u08 *  parameters,
u08 *  memaddr,
u16  sizebytes
 

paramStore saves a block of data/parameters into EEPROM from RAM, and performs an 8-bit checksum, stored in EEPROM immediately after the data block.

Parameters:
parameters pointer to SRAM location where parameters are stored
memaddr pointer to EEPROM memory address where parameters should be written
sizebytes size of parameter block in bytes

Definition at line 41 of file param.c.


Generated on Sun Oct 29 03:41:09 2006 for Procyon AVRlib by  doxygen 1.4.2