00001 /* 00002 * $Id: Ramtron.h,v 1 2006/28/05 10:05:00 BorisK Exp $ 00003 * 00004 * Copyright (C) 2006 ONTRACK s.r.o. 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00019 * 02111-1307, USA. 00020 * 00021 * [1] Ramtron FM24C256ds_r3.1.pdf 00022 * Written by Boris Kralik <kralikbo@yahoo.com>, 2006 00023 * 00024 */ 00025 #ifndef RAMTRON_H 00026 #define RAMTRON_H 00027 00028 #define FRAM_R 0xA1 00029 #define FRAM_W 0xA0 00030 00031 00032 #include "./include/types.h" 00033 #include "./include/lpc229x.h" 00034 #include "I2C.h" 00035 00036 uint8_t RamtronWriteByte(uint8_t,uint8_t); 00037 unsigned char *RamtronWriteString(uint8_t,unsigned char *); 00038 uint8_t RamtronInit(void); 00039 unsigned char RamtronReadByte(uint8_t); 00040 00041 #endif
1.4.7