hi_i2c.h
来自「华为 HI3510 BOOTLOADER HIBOOT 源码包」· C头文件 代码 · 共 58 行
H
58 行
/****************************************************************************** Copyright (C), 2001-2011, Hisilicon Tech. Co., Ltd. ****************************************************************************** File Name : hi_i2c.h Version : Initial Draft Author : Hisilicon multimedia software group Created : Last Modified : 2005/6/22 Description : Function List : History : 1.Date : 2005/6/22 Author : yuanyabin Modification: Created file******************************************************************************/#ifndef __HI_INC_I2C_H__#define __HI_INC_I2C_H__#ifdef __cplusplus#if __cplusplusextern "C"{#endif#endif /* __cplusplus */struct i2c_client { char name[32]; int id; unsigned int flags; /* div., see below */ unsigned int addr; /* chip write address */ /* read address is write address | 1 .*/ void *data; /* for the clients */};UINT8 I2C_Read(IN struct i2c_client *pstClient, IN UINT8 u8Address);HI_RET I2C_Write(IN struct i2c_client *client, IN UINT8 u8Address, IN UINT8 u8Data);void I2C_Init (void);UINT8 I2C_SerialRead(IN UINT8 u8DevAddress, IN UINT8 u8Address);HI_RET I2C_SerialWrite(IN int devAddress, IN int address, IN int data);#ifdef __cplusplus#if __cplusplus}#endif#endif /* __cplusplus */#endif /* End of #ifndef __HI_INC_I2C_H__*/
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?