ixp425I2c.h
资源名称:ixp425BSP.rar [点击查看]
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- /* ixp425I2c.h - Intel IXP425 I2c header file */
- /* Copyright 2002 Wind River Systems, Inc. */
- /*
- modification history
- --------------------
- 01a,05jun02,jb initial version...
- */
- #ifndef __INCixp425I2ch
- #define __INCixp425I2ch
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define IXP425_I2C_READ_FLAG 0x1 /* Read from slave */
- #define IXP425_I2C_WRITE_MSK 0xFE /* Write to slave */
- #define IXP425_I2C_ACK_RTY 5 /* Acknowledge Receive retry count */
- /* Function Declarations */
- STATUS ixp425I2CStart ();
- void ixp425I2CStop ();
- void ixp425I2CAckSend ();
- STATUS ixp425I2CAckReceive ();
- void ixp425I2CByteTransmit (unsigned char dataByte);
- void ixp425I2CByteReceive (unsigned char *dataByte);
- STATUS ixp425I2CWriteTransfer (UINT8 devAddr, UINT8 *buffer, UINT32 num, UINT8 offset);
- STATUS ixp425I2CReadTransfer (UINT8 devAddr, UINT8 *buffer, UINT32 num, UINT8 offset);
- #ifdef __cplusplus
- }
- #endif
- #endif /* __INCixp425I2ch */