i2c_extern.h
来自「此压缩包为杰得开发得z228的BSP的源代码,可以实现很多功能,尤其是视频解码有」· C头文件 代码 · 共 39 行
H
39 行
/********************************************/
/* 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 + =
减小字号Ctrl + -
显示快捷键?