update

Dependencies:   mbed-STM32F103C8T6_new

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers eeprom.h Source File

eeprom.h

00001 #ifndef EEPROM_H
00002 #define EEPROM_H
00003 
00004 #define MCP24AA02_ADDR     (0xA0) // 24AA02 2K EEPROM using i2c Address
00005 #define WRITE              (0x00) // 24AA02 2K EEPROM using i2c Write bit
00006 #define READ               (0x01) // 24AA02 2K EEPROM using i2c Read bit
00007 #define MCP24AA02_MID      (0xFA) // Manufacturer ID Address (Read Only 0x29==Microchip)
00008 #define MCP24AA02_DID      (0xFB) // Device ID Adress (Read Only 0x41==4 is i2c family and 1 is 2K device)
00009 
00010 void readID(int addy);
00011 
00012 void readEE(int addy);
00013 
00014 void writeEE(int addy,int data);
00015 
00016 void eraseEE(void);
00017 
00018 #endif