📄 i2c.h
字号:
/*****************************************************************************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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -