i2c.h

来自「这是DVB tuner驱动部分和其它相关的源码和一些技术资料文档.」· C头文件 代码 · 共 51 行

H
51
字号
/*****************************************************************************File Name   : i2c.hDescription : I2C wrapper layer to STI2C.Copyright (C) 2000 STMicroelectronicsRevision History    :Reference           :*****************************************************************************//* Define to prevent recursive inclusion */#ifndef __I2C_H#define __I2C_H/* Includes --------------------------------------------------------------- */#include "stddefs.h"/* Exported Constants ----------------------------------------------------- *//* Exported Variables ----------------------------------------------------- *//* Exported Types --------------------------------------------------------- *//* DEMOD error code */typedef enum{    I2C_READ,                           /* Read only */    I2C_WRITE,                          /* Write only */    I2C_SUBADDR_READ,                   /* Read with prefix subaddress */    I2C_SUBADDR_WRITE                   /* Write with prefix subaddress */} I2C_Operation_t;/* Exported Macros -------------------------------------------------------- *//* Exported Functions ----------------------------------------------------- */ST_ErrorCode_t I2C_Transfer(void *Handle,                            I2C_Operation_t Operation,                            U8 SubAddr,                            U8 *Data,                            U32 TransferSize,                            U32 Timeout);#endif /* __I2C_H *//* End of i2c.h */

⌨️ 快捷键说明

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