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

📄 i2capi.h

📁 sonata2standardsourcedriver的EEProm读写方案
💻 H
字号:
#ifndef _i2capi_H#define _i2capi_H//============================================================================//  File Name: i2capi.h////  (c) Copyright [2002] Cirrus Logic Inc. All rights reserved////  This source code is Cirrus Logic, Inc. proprietary and confidential//  information////  Description://      This unit provides generic functions to manipulate the I2C pins.  The//      I/O pins are board specific and are defined in the body unit that//      matches this header.////  Modification History://      $Id: i2capi.h,v 1.3 2003/11/20 21:32:16 matthieu Exp $//      $Log: i2capi.h,v $//      Revision 1.3  2003/11/20 21:32:16  matthieu//      Remove the //Perl skip lines...////      Revision 1.2  2003/11/20 08:42:09  akipnis//      Renamed CLASI functions and responses to follow naming conventions////      Revision 1.1  2003/09/11 00:55:02  matthieu//      Initial Sonata 2 tree////      Revision 1.1.1.1  2003/06/27 03:14:12  jalves//      initial check in////      Revision 1.1.1.1  2003/06/06 20:59:06  matthieu//      LG code//      Initial code from sonata tree with tag  : MATT_20030606////      Revision 1.2  2003/01/29 18:37:27  matthieu//      merging branch with Y14_20030103 code (new atapi driver)////      Revision 1.1.2.1  2003/01/09 01:49:34  matthieu//      merging Y14 code up to Y14-20021115 tag//      has got audio and stability issues////      Revision 1.2  2002/11/15 22:28:29  jtodd//      Integration  of Bug #182 and #234.////      Revision 1.1.2.1  2002/11/14 13:41:16  mlese//      Initial check in for board specific control of I2C bus.////============================================================================#include "basetype.h"		////-------------------------------------------------------------------------//  Modifiers.//-------------------------------------------------------------------------void I2C_SetClkBit(void);void I2C_SetDataBit(void);void I2C_SetClkTriStateEnableBit(void);void I2C_SetDataTriStateEnableBit(void);void I2C_ClearClkBit(void);void I2C_ClearDataBit(void);void I2C_ClearClkTriStateEnableBit(void);void I2C_ClearDataTriStateEnableBit(void);Boolean I2C_GetClkBit(void);Boolean I2C_GetDataBit(void);//-------------------------------------------------------------------------//  Mode register setup.//-------------------------------------------------------------------------Boolean I2C_UsesModeRegister(void);Uint32  I2C_GetModeRegister(void);void    I2C_ConfigurePort(Boolean bForI2C);//-------------------------------------------------------------------------//  Semaphore protection.//-------------------------------------------------------------------------// Call these to lock/unlock the bus for use.  Protection uses a// hardware semaphore.void I2C_ProtectionStart(void);void I2C_ProtectionEnd(void);#endif

⌨️ 快捷键说明

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