i2c_extern.h

来自「此压缩包为杰得开发得z228的BSP的源代码,可以实现很多功能,尤其是视频解码有」· C头文件 代码 · 共 38 行

H
38
字号
/********************************************/
/* 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 void I2C_PinMask(  u32 enable );
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?