?? 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 + -