iic.h

来自「这是DM642(EVM开发板)的视频采集和视频输出的一个很好的例子原代码,用CC」· C头文件 代码 · 共 41 行

H
41
字号
/***********************************************************/
/*  Copyright 2003 by SSD Incorporated.				   */
/*  All rights reserved. Property of SSD Incorporated.    */ 
/*  											           */
/***********************************************************/
#ifndef _IIC_H  
#define _IIC_H

#include <std.h>
#include <csl_stdinc.h>
#include <csl_i2c.h>

#ifdef __cplusplus
extern "C" {
#endif

extern I2C_Handle DM642_I2C_hI2C;

void _IIC_write(I2C_Handle hI2C,
              Uint8   devAddress,
              Uint32  subAddress,
              Uint8   data
              );
/*
 * ======== _IIC_read ========
 * This function performs read from operation via I2C bus.
 */

void _IIC_read(I2C_Handle hI2C,
              Uint8 devAddress,
              Uint32  subAddress,
              Uint8 data
              );

#ifdef __cplusplus
}
#endif

#endif

⌨️ 快捷键说明

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