davincievm_eeprom.h

来自「LED contorl source in CCS 3.3 TI DSP c5」· C头文件 代码 · 共 44 行

H
44
字号
/*
 *  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 + =
减小字号Ctrl + -
显示快捷键?