?? i2c.h
字號:
/*============================================================================
Project QT60xx0 Example code
File i2c.h
Function Header file for QT60xx0 I2C driver
Requires
Originated D Spokes
(c) Quantum Research Group
============================================================================*/
/* Multiple inclusion protection for headers */
#ifndef _I2C_H
#define _I2C_H
/* driver status byte bits */
#define I2C_ERROR_NO_ACK 1
#define I2C_ERROR_SCL_STUCK 2
#define I2C_ERROR_SDA_STUCK 4
UINT8 InitI2c ( void );
UINT8 I2cWrite( UINT8 I2cAddress, UINT8 DeviceAddress, UINT8 *Data, UINT8 ByteCount);
UINT8 I2cRead( UINT8 I2cAddress, UINT8 DeviceAddress, UINT8 *Data, UINT8 ByteCount);
#endif /* _I2C_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -