⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 i2c_extern.h

📁 此压缩包为杰得开发得z228的BSP的源代码,可以实现很多功能,尤其是视频解码有很好的效果.
💻 H
字号:
/********************************************/
/* I2CFunc.c: the APB_I2C_tvIn API.         */
/* Author   : DQ							*/
/* Time     : 2005-12-15					*/
/********************************************/

#ifndef I2C_H
#define I2C_H

#ifdef __cplusplus
extern "C"
{
#endif

typedef unsigned int U32;

void I2C_PinMask(  U32 enable );

/* brief : Initialize the I2C module */
extern void InitI2C(void);

extern void DeleteI2C(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
*/ 
extern int TransmitData(const int threhold, const unsigned char *buffer, const unsigned short target);

extern int ReadData(const int threhold, const unsigned char buffer[], const unsigned short target);

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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