ixp425Eeprom.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- /* ixp425Eeprom.h - Philips PCF8582C-2T/03 256byte I2C EEPROM driver header file */
- /* Copyright 2002 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01b,05sep02,jb3 Merge in changes from w/ t2.1 ongiong development
- 01b,22aug02,jb Adding 512 byte eeprom support
- 01a,05jun02,jb initial version...
- */
- #ifndef __INCixp425Eepromh
- #define __INCixp425Eepromh
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define IXP425_EEPROM_ADDR 0xA0
- #define IXP425_EEPROM_SIZE 512 /* 256byte EEPROM */
- /* Macros used by vxWorks NVRAM driver */
- #define NV_RAM_READ(x) (ixp425EepromByteRead (x))
- #define NV_RAM_WRITE(x,y) (ixp425EepromByteWrite (x, y))
- int ixp425EepromRead (UINT8 *buf, UINT32 num, UINT32 offset);
- int ixp425EepromWrite (UINT8 *buf, UINT32 num, UINT32 offset);
- char ixp425EepromByteRead (UINT32 offset);
- void ixp425EepromByteWrite (UINT32 offset, char data);
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCixp425Eepromh */