iic.h

来自「samsung 最新芯片2450 的测试程序.」· C头文件 代码 · 共 45 行

H
45
字号
;/*********************************************************************
;* Project Name : mDirac III
;*
;* Copyright 2005 by Samsung Electronics, Inc.
;* All rights reserved.
;*
;* Project Description :
;* This software is only for verifying functions of the mDirac III
;* Anybody can use this code without our permission.
;**********************************************************************
;*
;*	Description	:	Code for the basic function for IIC.
;*					It can support write and read mode with 7-bit addresses
;*					Can make the 10-bit address write and read mode
;*					with assemble these functions.
;*	
;*	History
;*			R0.0 (2005.9.30) : Y.C.Kwon draft
;*
;**********************************************************************/

#ifndef __IIC_H__
#define __IIC_H__

#ifdef __cplusplus
extern "C" {
#endif

void IIC_open( unsigned int);
void IIC_close( void);
void IIC_Write( unsigned char, char *, unsigned int);
void IIC_Read( unsigned char, char *, unsigned int);
void IIC_Wait( void);
unsigned char IIC_Status( void);

void Test_IIC( void);
void Test_IIC_Int( void);
void Test_IIC_Pol( void);

#ifdef __cplusplus                                                             
}
#endif                                                                         

#endif    //__IIC_H__

⌨️ 快捷键说明

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