Main Page | Modules | Data Structures | File List | Data Fields | Globals | Examples

eeprom.h File Reference


Detailed Description

EEPROM functions.

Author:
Adam Dunkels <adam@sics.se>

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

void eeprom_write (eeprom_addr_t addr, unsigned char *buf, int size)
 Write a buffer into EEPROM.

void eeprom_read (eeprom_addr_t addr, unsigned char *buf, int size)
 Read data from the EEPROM.


Function Documentation

void eeprom_read eeprom_addr_t  addr,
unsigned char *  buf,
int  size
 

Read data from the EEPROM.

This function reads a number of bytes from the specified address in EEPROM and into a buffer in memory.

Parameters:
addr The address in EEPROM from which the data should be read.
buf A pointer to the buffer to which the data should be stored.
size The number of bytes to read.

void eeprom_write eeprom_addr_t  addr,
unsigned char *  buf,
int  size
 

Write a buffer into EEPROM.

This function writes a buffer of the specified size into EEPROM.

Parameters:
addr The address in EEPROM to which the buffer should be written.
buf A pointer to the buffer from which data is to be read.
size The number of bytes to write into EEPROM.


Generated on Wed Jul 6 01:19:01 2005 for Contiki/ESB by doxygen 1.3.6