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

eeprom.c File Reference


Detailed Description

EEPROM functions.

Author:
Adam Dunkels <adam@sics.se>

Definition in file eeprom.c.

#include <msp430x14x.h>
#include <io.h>
#include "dev/eeprom.h"

Go to the source code of this file.

Defines

#define EEPROMADDRESS   (0x00)
#define EEPROMPAGEMASK   (0x7F)
#define SDA_HIGH   (P5OUT |= 0x04)
 EEPROM data line high.
#define SDA_LOW   (P5OUT &= 0xFB)
 EEPROM data line low.
#define SCL_HIGH   (P5OUT |= 0x08)
 EEPROM clock line high.
#define SCL_LOW   (P5OUT &= 0xF7)
 EEPROM clock line low.

Functions

void eeprom_read (unsigned short addr, unsigned char *buf, int size)
 Read data from the EEPROM.
void eeprom_write (unsigned short addr, unsigned char *buf, int size)
 Write a buffer into EEPROM.


Generated on Thu Jun 22 17:45:43 2006 for Contiki 2.x by  doxygen 1.4.4