📄 i2c_extern.h
字号:
/********************************************/
/* I2CFunc.c: the APB_I2C_tvIn API. */
/* Author : DQ */
/* Time : 2005-12-15 */
/********************************************/
#ifndef I2C_H
#define I2C_H
typedef unsigned int u32;
/* brief : Initialize the I2C module */
extern void InitI2C(void);
/* brief: This API is used to transmit data
** para : length -- the length of the buffer
** para : buffer -- the pointer of data
** para : target -- the address of the target
*/
/************************************************************************************************
参数说明: threhold:要写入的字节数
buffer:要写入的数据内容
target:7位设备地址
************************************************************************************************/
extern int TransmitData(const int threhold, const unsigned char *buffer, const unsigned short target);
/************************************************************************************************
参数说明: threhold:要写入的字节数
buffer:要写入的数据内容
target:7位设备地址
************************************************************************************************/
extern int ReadData(const int threhold, const unsigned char buffer[], const unsigned short target);
extern unsigned int PinMask( int device , int enable );
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -