EEPROM API
[Device driver APIs]

The EEPROM API defines a common interface for EEPROM access on Contiki platforms. More...

Files

file  eeprom.h
 

EEPROM functions.


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.
void eeprom_init (void)
 Initialize the EEPROM module.

Detailed Description

The EEPROM API defines a common interface for EEPROM access on Contiki platforms.

A platform with EEPROM support must implement this API.


Function Documentation

void eeprom_init ( void   ) 

Initialize the EEPROM module.

This function initializes the EEPROM module and is called from the bootup code.

Definition at line 142 of file menu.c.

Referenced by main().

void eeprom_read ( unsigned short  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.

Definition at line 50 of file eeprom.c.

Referenced by cfs_read().

void eeprom_write ( unsigned short  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.

Definition at line 43 of file eeprom.c.

Referenced by cfs_write().


Generated on Mon Apr 11 14:23:51 2011 for Contiki 2.5 by  doxygen 1.6.1