⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eeprom.h

📁 sonata2standardsourcedriver的EEProm读写方案
💻 H
字号:
#ifndef _eeprom_H#define _eeprom_H//============================================================================//  File Name: eeprom.h////  (c) Copyright [2002] Cirrus Logic Inc. All rights reserved////  This source code is Cirrus Logic, Inc. proprietary and confidential//  information////  Description://      This unit defines generic functions to interface to board specific//      EEPROM chips.////  Modification History://      $Id: eeprom.h,v 1.5 2004/01/12 19:15:37 jsu Exp $//      $Log: eeprom.h,v $//      Revision 1.5  2004/01/12 19:15:37  jsu//      Bugzilla #12987//      Save System Param, Channel Table, Schedule Recording into EEPROM////      Revision 1.4  2003/11/20 21:32:16  matthieu//      Remove the //Perl skip lines...////      Revision 1.3  2003/11/20 08:42:09  akipnis//      Renamed CLASI functions and responses to follow naming conventions////      Revision 1.2  2003/11/05 01:54:58  haluk//      9898 finialized eeprom////      Revision 1.1  2003/09/11 00:55:02  matthieu//      Initial Sonata 2 tree////      Revision 1.1.1.1  2003/06/27 03:14:12  jalves//      initial check in////      Revision 1.1.1.1  2003/06/06 20:59:06  matthieu//      LG code//      Initial code from sonata tree with tag  : MATT_20030606////      Revision 1.4  2003/03/06 20:28:33  matthieu//      to get the dvd code (target cdb98200) to compile...////      Revision 1.3  2003/02/07 21:27:01  yingc//      eeprom read/write added////      Revision 1.2  2003/01/29 18:37:26  matthieu//      merging branch with Y14_20030103 code (new atapi driver)////      Revision 1.1.2.1  2003/01/09 01:49:34  matthieu//      merging Y14 code up to Y14-20021115 tag//      has got audio and stability issues////      Revision 1.2  2002/11/15 22:28:29  jtodd//      Integration  of Bug #182 and #234.////      Revision 1.1.2.1  2002/11/14 13:41:16  mlese//      Initial check in for board specific control of I2C bus.////============================================================================#include "apitypes.h"int EEPROM_Write8( Uint32 addr, Byte data );int EEPROM_Write32( Uint32 addr, Uint32 data );int EEPROM_Write(Uint32 addr,void * bufPtr,Uint32 length);int EEPROM_WritePage(Uint32 addr,void * bufPtr,Uint32 length);int EEPROM_BufWrite( Uint32 addr, void * bufPtr, Uint32 length );int EEPROM_Read(Uint32 addr, void * bufPtr, Uint32 length );int EEPROM_ReadPage(Uint32 addr, void * bufPtr, Uint32 length );int EEPROM_GetSize(Uint32 *size);#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -