📄 davincievm_eeprom.h
字号:
/*
* Copyright 2005 by Spectrum Digital Incorporated.
* All rights reserved. Property of Spectrum Digital Incorporated.
*
* Not for distribution.
*/
/*
* ======== eeprom.h ========
*
* Controls the I2C EEPROM 16 Kbytes - 24WC256 - [U16]
* Automaticly handles page divisons
*/
#ifndef EEPROM_
#define EEPROM_
#ifdef __cplusplus
extern "C" {
#endif
#include "davincievm_i2c.h"
/* I2C Address */
#define EEPROM_I2C_ADDR 0x50
/* EEPROM specific settings */
#define EEPROM_PAGE_SIZE 64
#define EEPROM_PAGE_SIZE_POW2 6
#define EEPROM_MAX_BURST_LEN EEPROM_PAGE_SIZE
/* ------------------------------------------------------------------------ *
* EEPROM Prototypes *
* ------------------------------------------------------------------------ */
Int16 DAVINCIEVM_EEPROM_init ( );
Int16 DAVINCIEVM_EEPROM_read ( Uint32 src, Uint32 dst, Uint32 length );
Int16 DAVINCIEVM_EEPROM_write( Uint32 src, Uint32 dst, Uint32 length );
#ifdef __cplusplus
}
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -