📄 evmdm642_eeprom_i2c.h
字号:
/*
* Copyright 2003 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*/
/*
* ======== evmdm642_eeprom.h ========
*
* Interface for the CAT24WC256 I2C EEPROM on the EVMDM642 board
*/
#ifndef EVMDM642_EEPROM_
#define EVMDM642_EEPROM_
#ifdef __cplusplus
extern "C" {
#endif
#include <csl.h>
/* EEPROM definitions */
#define EVMDM642_EEPROM_SIZE 0x8000
#define EVMDM642_EEPROM_I2CADDR 0x50
extern I2C_Config myeepromRcvCfg;
extern I2C_Config myeepromXmtCfg;
extern Uint8 index;
extern Uint8 length;
extern Uint8 op; //used to decide to tansmmit address
extern Uint8 loop;
extern Uint32 addr[2];
extern Uint8 bufferR[64];
extern Uint8 bufferW[64];
/* Read data from a range in the EEPROM */
void EEPROM_read(Uint32 src, Uint32 dst, Uint32 length);
/* Write data to a data range in the EEPROM */
void EEPROM_write(Uint32 src, Uint32 dst, Uint32 length);
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -