i2c.h
来自「昆腾电容触摸按键的开发程序,keil环境下,51单片机控制」· C头文件 代码 · 共 27 行
H
27 行
/*============================================================================
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 + =
减小字号Ctrl + -
显示快捷键?