seed_eeprom.h

来自「SEED的VPM642测试程序-板级支持库」· C头文件 代码 · 共 42 行

H
42
字号
/*
 *  Copyright 2005 by SEED.
 *  All rights reserved. Property of SEED.
 */
 
/*
 *  ======== seedvpm642_eeprom.h ========
 *
 *  Interface for the X126 I2C EEPROM on the VPM642 board
 */
#ifndef SEEDDM642_EEPROM_
#define SEEDDM642_EEPROM_

#ifdef __cplusplus
extern "C" {
#endif

#include <csl.h>

/* EEPROM definitions */
#define SEEDDM642_EEPROM_SIZE           0x1000
#define SEEDDM642_EEPROM_I2CADDR        0x57
 
/* Read data from a range in the EEPROM */
void SEEDDM642_EEPROM_write( I2C_Handle hI2C,
							Uint32 src, 
							Uint32 dst, 
							Uint32 length);

/* Write data to a data range in the EEPROM */
void SEEDDM642_EEPROM_read(I2C_Handle hI2C,
						  Uint32 src, 
						  Uint32 dst, 
						  Uint32 length);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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